Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
75125c5d
Commit
75125c5d
authored
Jul 10, 2024
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix(ymt,elevator):大屏-应急统计修改
parent
8909826c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
18 deletions
+14
-18
AlertStatisticsMapper.java
...oot/module/elevator/api/mapper/AlertStatisticsMapper.java
+1
-1
StatisticsController.java
.../module/elevator/biz/controller/StatisticsController.java
+6
-13
AlertStatisticsServiceImpl.java
...elevator/biz/service/impl/AlertStatisticsServiceImpl.java
+5
-2
ESEquipmentCategory.java
...oin/amos/boot/module/ymt/biz/dao/ESEquipmentCategory.java
+1
-1
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/mapper/AlertStatisticsMapper.java
View file @
75125c5d
...
...
@@ -14,5 +14,5 @@ public interface AlertStatisticsMapper extends BaseMapper<AlertStatistics> {
AlertStatistics
getStatisticsMessage
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
AlertStatistics
statisticsInfoByRegionAndDate
(
@Param
(
"regionCode"
)
String
regionCode
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
AlertStatistics
statisticsInfoByRegionAndDate
(
@Param
(
"regionCode"
)
Integer
regionCode
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
}
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/controller/StatisticsController.java
View file @
75125c5d
...
...
@@ -12,10 +12,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
...
@@ -24,11 +21,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
javax.servlet.http.HttpServletResponse
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.*
;
@RestController
...
...
@@ -350,9 +343,9 @@ public class StatisticsController extends BaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@
GetMapping
(
value
=
"/region/info"
)
@ApiOperation
(
httpMethod
=
"
GE
T"
,
value
=
"查询区域统计信息"
,
notes
=
"查询区域统计信息"
)
public
ResponseModel
<
JSONArray
>
statisticsRegionInfo
(
@Request
Param
(
value
=
"cityCode"
)
String
regionCode
,
@RequestParam
(
value
=
"startDate"
,
required
=
false
)
LocalDate
startDate
,
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
LocalDate
endDate
)
{
return
ResponseHelper
.
buildResponse
(
alertStatisticsService
.
statisticInfoByRegionAndDate
(
regionCode
,
startDate
,
endDate
));
@
PostMapping
(
value
=
"/region/info"
)
@ApiOperation
(
httpMethod
=
"
POS
T"
,
value
=
"查询区域统计信息"
,
notes
=
"查询区域统计信息"
)
public
ResponseModel
<
JSONArray
>
statisticsRegionInfo
(
@Request
Body
Map
<
String
,
Object
>
queryParams
)
{
return
ResponseHelper
.
buildResponse
(
alertStatisticsService
.
statisticInfoByRegionAndDate
(
queryParams
));
}
}
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertStatisticsServiceImpl.java
View file @
75125c5d
...
...
@@ -165,9 +165,12 @@ public class AlertStatisticsServiceImpl extends BaseService<AlertStatisticsDto,
}
@Override
public
JSONArray
statisticInfoByRegionAndDate
(
String
regionCode
,
LocalDate
startDate
,
LocalDate
endDate
)
{
public
JSONArray
statisticInfoByRegionAndDate
(
Map
<
String
,
Object
>
params
)
{
LocalDate
today
=
LocalDate
.
now
();
if
(
ObjectUtils
.
isEmpty
(
startDate
)
||
ObjectUtils
.
isEmpty
(
endDate
))
{
LocalDate
startDate
=
(
LocalDate
)
params
.
get
(
"startDate"
);
LocalDate
endDate
=
(
LocalDate
)
params
.
get
(
"endDate"
);
Integer
regionCode
=
(
Integer
)
params
.
get
(
"cityCode"
);
if
(
ObjectUtils
.
isEmpty
(
params
.
get
(
"startDate"
))
||
ObjectUtils
.
isEmpty
(
params
.
get
(
"endDate"
)))
{
startDate
=
today
.
minusDays
(
6
);
endDate
=
today
;
}
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/dao/ESEquipmentCategory.java
View file @
75125c5d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
biz
.
dao
;
import
com.yeejoin.amos.boot.module.
ymt
.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.
common
.api.dto.ESEquipmentCategoryDto
;
import
org.springframework.data.repository.PagingAndSortingRepository
;
import
org.springframework.stereotype.Repository
;
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
75125c5d
...
...
@@ -10,7 +10,7 @@ import com.google.common.collect.Lists;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.
ymt
.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.
common
.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.EquipExportDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentMessageDto
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment