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
7017d4f0
Commit
7017d4f0
authored
Jul 19, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改大屏代码提交
1.使用办理的设备数量情况统计 2.施工告知的设备数办理情况统计
parent
444a8266
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
417 additions
and
2 deletions
+417
-2
DPStatisticsMapper.java
...in/amos/boot/module/jg/api/mapper/DPStatisticsMapper.java
+20
-0
DPStatisticsMapper.xml
...e-jg-api/src/main/resources/mapper/DPStatisticsMapper.xml
+155
-0
DPStatisticsController.java
...boot/module/jg/biz/controller/DPStatisticsController.java
+12
-1
DPStatisticsServiceImpl.java
...t/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
+230
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/DPStatisticsMapper.java
View file @
7017d4f0
...
...
@@ -36,4 +36,24 @@ public interface DPStatisticsMapper {
List
<
Map
<
String
,
Object
>>
disableCount
(
@Param
(
"cityCode"
)
String
cityCode
);
List
<
Map
<
String
,
Object
>>
cancelCount
(
@Param
(
"cityCode"
)
String
cityCode
);
List
<
Map
<
String
,
Object
>>
installEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
maintenanceEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
reformEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
transferEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
useEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
changeReformEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
changeTransferEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
changeUnitEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
vehicleEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/DPStatisticsMapper.xml
View file @
7017d4f0
...
...
@@ -259,6 +259,161 @@
GROUP BY
sr.region_code
</select>
<select
id=
"installEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_installation_notice T ON T.use_unit_credit_code = bi.use_unit_code
AND T.notice_status = 6616
INNER JOIN tzs_jg_installation_notice_eq te ON te.equip_transfer_id = T.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and T.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
<select
id=
"maintenanceEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_maintain_notice tn ON tn.use_unit_credit_code = bi.use_unit_code
AND tn.notice_status = 6616
INNER JOIN tzs_jg_maintain_notice_eq te ON te.equip_transfer_id = tn.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and tn.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
<select
id=
"reformEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_reform_notice tn ON tn.use_unit_credit_code = bi.use_unit_code
AND tn.notice_status = 6616
INNER JOIN tzs_jg_reform_notice_eq te ON te.equip_transfer_id = tn.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and tn.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
<select
id=
"transferEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_transfer_notice tn ON tn.use_unit_credit_code = bi.use_unit_code
AND tn.notice_status = 6616
INNER JOIN tzs_jg_transfer_notice_eq te ON te.equip_transfer_id = tn.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and tn.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
<select
id=
"useEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_use_registration ur ON ur.use_unit_credit_code = bi.use_unit_code
AND ur.audit_status = '已完成'
INNER JOIN tzs_jg_use_registration_eq te ON te.equip_transfer_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
<select
id=
"changeReformEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_change_registration_reform ur ON ur.use_unit_credit_code = bi.use_unit_code
AND ur.audit_status = '已完成'
INNER JOIN tzs_jg_change_registration_reform_eq te ON te.equip_transfer_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
<select
id=
"changeTransferEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_change_registration_transfer ur ON ur.use_unit_credit_code = bi.use_unit_code
AND ur.audit_status = '已完成'
INNER JOIN tzs_jg_change_registration_transfer_eq te ON te.equip_transfer_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
<select
id=
"changeUnitEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_change_registration_unit ur ON ur.use_unit_credit_code = bi.use_unit_code
AND ur.status = '已完成'
INNER JOIN tzs_jg_change_registration_unit_eq te ON te.unit_change_registration_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
<select
id=
"vehicleEquCount"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
jri.equ_list AS equList,
jri.equ_category AS equCategory
FROM
privilege_company pc
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
INNER JOIN tzs_jg_vehicle_information ur ON ur.use_unit_credit_code = bi.use_unit_code
AND ur.audit_status = '已完成'
INNER JOIN tzs_jg_vehicle_information_eq te ON te.vehicle_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date
>
= #{startTime}
GROUP BY
jri.equ_category
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/DPStatisticsController.java
View file @
7017d4f0
...
...
@@ -182,7 +182,7 @@ public class DPStatisticsController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"监管大屏-
左侧获取业务类型"
,
notes
=
"监管大屏-左侧获取业务类型
"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"监管大屏-
右侧施工告知的设备数办理情况统计"
,
notes
=
"监管大屏-右侧施工告知的设备数办理情况统计
"
)
@PostMapping
(
value
=
"/getNoticeEquCount"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getNoticeEquCount
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
List
<
FieldError
>
fieldErrors
=
result
.
getFieldErrors
();
...
...
@@ -191,4 +191,15 @@ public class DPStatisticsController {
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getNoticeEquCount
(
dpFilterParamDto
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"监管大屏-右侧使用办理的设备数量情况统计"
,
notes
=
"监管大屏-右侧使用办理的设备数量情况统计"
)
@PostMapping
(
value
=
"/getRegEquCount"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getRegEquCount
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
List
<
FieldError
>
fieldErrors
=
result
.
getFieldErrors
();
if
(!
fieldErrors
.
isEmpty
())
{
throw
new
BadRequest
(
fieldErrors
.
get
(
0
).
getDefaultMessage
());
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getRegEquCount
(
dpFilterParamDto
));
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
View file @
7017d4f0
...
...
@@ -1044,8 +1044,237 @@ public class DPStatisticsServiceImpl {
}
public
Map
<
String
,
Object
>
getNoticeEquCount
(
DPFilterParamDto
dpFilterParamDto
)
{
String
startTime
=
LocalDate
.
now
().
minusDays
(
29
).
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
));
//安装告知
List
<
Map
<
String
,
Object
>>
installlist
=
dpStatisticsMapper
.
installEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
installCountMap
=
new
HashMap
<>();
countNoticEquList
(
installCountMap
,
installlist
);
//维修告知
List
<
Map
<
String
,
Object
>>
maintenancelist
=
dpStatisticsMapper
.
maintenanceEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
maintenanceCountMap
=
new
HashMap
<>();
countNoticEquList
(
maintenanceCountMap
,
maintenancelist
);
//改造告知
List
<
Map
<
String
,
Object
>>
reformlist
=
dpStatisticsMapper
.
reformEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
reformCountMap
=
new
HashMap
<>();
countNoticEquList
(
reformCountMap
,
reformlist
);
//移装告知
List
<
Map
<
String
,
Object
>>
transferlist
=
dpStatisticsMapper
.
transferEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
transferCountMap
=
new
HashMap
<>();
countNoticEquList
(
transferCountMap
,
transferlist
);
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
List
legendData
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
4
;
i
++){
Map
<
String
,
String
>
map
=
new
HashMap
<>();
if
(
i
==
0
){
map
.
put
(
"dataKey"
,
"installNotify"
);
map
.
put
(
"value"
,
"安装告知"
);
}
else
if
(
i
==
1
){
map
.
put
(
"dataKey"
,
"transformNotify"
);
map
.
put
(
"value"
,
"改造告知"
);
}
else
if
(
i
==
2
){
map
.
put
(
"dataKey"
,
"maintainNotify"
);
map
.
put
(
"value"
,
"维修告知"
);
}
else
if
(
i
==
3
){
map
.
put
(
"dataKey"
,
"transloadingNotify"
);
map
.
put
(
"value"
,
"移装告知"
);
}
legendData
.
add
(
map
);
}
resultMap
.
put
(
"legendData"
,
legendData
);
List
<
String
>
xDataList
=
Arrays
.
asList
(
"气瓶"
,
"电梯"
,
"压力容器"
,
"锅炉"
,
"起重机械"
,
"场(厂)内专用"
,
"大型游乐设施"
,
"压力管道"
,
"客运索道"
);
resultMap
.
put
(
"xdata"
,
xDataList
);
List
installNotify
=
new
ArrayList
<>();
List
transformNotify
=
new
ArrayList
<>();
List
maintainNotify
=
new
ArrayList
<>();
List
transloadingNotify
=
new
ArrayList
<>();
/**
* 2300 气瓶
* 3000 电梯
* 2000 压力容器
* 1000 锅炉
* 4000 起重机械
* 5000 场(厂)内专用机动车辆
* 6000 大型游乐设施
* 8000 压力管道
* 9000 客运索道
*/
for
(
int
i
=
0
;
i
<
xDataList
.
size
();
i
++){
if
(
i
==
0
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"2300"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"2300"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"2300"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"2300"
,
0
));
}
else
if
(
i
==
1
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"3000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"3000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"3000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"3000"
,
0
));
}
else
if
(
i
==
2
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"2000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"2000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"2000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"2000"
,
0
));
}
else
if
(
i
==
3
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"1000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"1000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"1000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"1000"
,
0
));
}
else
if
(
i
==
4
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"4000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"4000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"4000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"4000"
,
0
));
}
else
if
(
i
==
5
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"5000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"5000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"5000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"5000"
,
0
));
}
else
if
(
i
==
6
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"6000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"6000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"6000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"6000"
,
0
));
}
else
if
(
i
==
7
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"8000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"8000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"8000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"8000"
,
0
));
}
else
if
(
i
==
8
){
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"9000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"9000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"9000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"9000"
,
0
));
}
}
resultMap
.
put
(
"installNotify"
,
installNotify
);
resultMap
.
put
(
"transformNotify"
,
transformNotify
);
resultMap
.
put
(
"maintainNotify"
,
maintainNotify
);
resultMap
.
put
(
"transloadingNotify"
,
transloadingNotify
);
return
resultMap
;
}
private
void
countNoticEquList
(
Map
<
String
,
Integer
>
countMap
,
List
<
Map
<
String
,
Object
>>
list
)
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++){
if
(
"2300"
.
equals
(
list
.
get
(
i
).
get
(
"equCategory"
))){
if
(
null
==
countMap
.
get
(
"2300"
)){
countMap
.
put
(
"2300"
,
Integer
.
valueOf
(
list
.
get
(
i
).
get
(
"count"
)+
""
));
}
else
{
countMap
.
put
(
"2300"
,
countMap
.
get
(
"2300"
)+
Integer
.
valueOf
(
list
.
get
(
i
).
get
(
"count"
)+
""
));
}
}
else
{
if
(
null
==
countMap
.
get
(
list
.
get
(
i
).
get
(
"equList"
).
toString
())){
countMap
.
put
(
list
.
get
(
i
).
get
(
"equList"
).
toString
(),
Integer
.
valueOf
(
list
.
get
(
i
).
get
(
"count"
)+
""
));
}
else
{
countMap
.
put
(
list
.
get
(
i
).
get
(
"equList"
).
toString
(),
countMap
.
get
(
list
.
get
(
i
).
get
(
"equList"
).
toString
())+
Integer
.
valueOf
(
list
.
get
(
i
).
get
(
"count"
)+
""
));
}
}
}
}
public
Map
<
String
,
Object
>
getRegEquCount
(
DPFilterParamDto
dpFilterParamDto
)
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
String
startTime
=
LocalDate
.
now
().
minusDays
(
29
).
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
));
//使用登记
List
<
Map
<
String
,
Object
>>
uselist
=
dpStatisticsMapper
.
useEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
useCountMap
=
new
HashMap
<>();
countNoticEquList
(
useCountMap
,
uselist
);
//气瓶使用登记
List
<
Map
<
String
,
Object
>>
vehicleList
=
dpStatisticsMapper
.
vehicleEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
vehicleCountMap
=
new
HashMap
<>();
countNoticEquList
(
vehicleCountMap
,
vehicleList
);
//改造变更登记
List
<
Map
<
String
,
Object
>>
changeReformList
=
dpStatisticsMapper
.
changeReformEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
changeReformCountMap
=
new
HashMap
<>();
countNoticEquList
(
changeReformCountMap
,
changeReformList
);
//移装变更登记
List
<
Map
<
String
,
Object
>>
changeTransferList
=
dpStatisticsMapper
.
changeTransferEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
changeTransferCountMap
=
new
HashMap
<>();
countNoticEquList
(
changeTransferCountMap
,
changeTransferList
);
//单位变更登记
List
<
Map
<
String
,
Object
>>
changeUnitList
=
dpStatisticsMapper
.
changeUnitEquCount
(
dpFilterParamDto
.
getCityCode
(),
startTime
);
Map
<
String
,
Integer
>
changeUnitCountMap
=
new
HashMap
<>();
countNoticEquList
(
changeUnitCountMap
,
changeUnitList
);
List
legendData
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
4
;
i
++){
Map
<
String
,
String
>
map
=
new
HashMap
<>();
if
(
i
==
0
){
map
.
put
(
"dataKey"
,
"useRegistration"
);
map
.
put
(
"value"
,
"使用登记"
);
}
else
if
(
i
==
1
){
map
.
put
(
"dataKey"
,
"modificateModifyRegistration"
);
map
.
put
(
"value"
,
"改造变更登记"
);
}
else
if
(
i
==
2
){
map
.
put
(
"dataKey"
,
"transloadingModifyRegistration"
);
map
.
put
(
"value"
,
"移装变更登记"
);
}
else
if
(
i
==
3
){
map
.
put
(
"dataKey"
,
"unitModifyRegistration"
);
map
.
put
(
"value"
,
"单位变更登记"
);
}
legendData
.
add
(
map
);
}
resultMap
.
put
(
"legendData"
,
legendData
);
List
<
String
>
xDataList
=
Arrays
.
asList
(
"气瓶"
,
"电梯"
,
"压力容器"
,
"锅炉"
,
"起重机械"
,
"场(厂)内专用"
,
"大型游乐设施"
,
"压力管道"
,
"客运索道"
);
resultMap
.
put
(
"xdata"
,
xDataList
);
List
useRegistration
=
new
ArrayList
<>();
List
modificateModifyRegistration
=
new
ArrayList
<>();
List
transloadingModifyRegistration
=
new
ArrayList
<>();
List
unitModifyRegistration
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
xDataList
.
size
();
i
++){
if
(
i
==
0
){
useRegistration
.
add
(
vehicleCountMap
.
getOrDefault
(
"2300"
,
0
));
modificateModifyRegistration
.
add
(
changeReformCountMap
.
getOrDefault
(
"2300"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"2300"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"2300"
,
0
));
}
else
if
(
i
==
1
){
useRegistration
.
add
(
useCountMap
.
getOrDefault
(
"3000"
,
0
));
modificateModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"3000"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"3000"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"3000"
,
0
));
}
else
if
(
i
==
2
){
useRegistration
.
add
(
useCountMap
.
getOrDefault
(
"2000"
,
0
));
modificateModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"2000"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"2000"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"2000"
,
0
));
}
else
if
(
i
==
3
){
useRegistration
.
add
(
useCountMap
.
getOrDefault
(
"1000"
,
0
));
modificateModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"1000"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"1000"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"1000"
,
0
));
}
else
if
(
i
==
4
){
useRegistration
.
add
(
useCountMap
.
getOrDefault
(
"4000"
,
0
));
modificateModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"4000"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"4000"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"4000"
,
0
));
}
else
if
(
i
==
5
){
useRegistration
.
add
(
useCountMap
.
getOrDefault
(
"5000"
,
0
));
modificateModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"5000"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"5000"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"5000"
,
0
));
}
else
if
(
i
==
6
){
useRegistration
.
add
(
useCountMap
.
getOrDefault
(
"6000"
,
0
));
modificateModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"6000"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"6000"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"6000"
,
0
));
}
else
if
(
i
==
7
){
useRegistration
.
add
(
useCountMap
.
getOrDefault
(
"8000"
,
0
));
modificateModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"8000"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"8000"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"8000"
,
0
));
}
else
if
(
i
==
8
){
useRegistration
.
add
(
useCountMap
.
getOrDefault
(
"9000"
,
0
));
modificateModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"9000"
,
0
));
transloadingModifyRegistration
.
add
(
changeTransferCountMap
.
getOrDefault
(
"9000"
,
0
));
unitModifyRegistration
.
add
(
changeUnitCountMap
.
getOrDefault
(
"9000"
,
0
));
}
}
resultMap
.
put
(
"useRegistration"
,
useRegistration
);
resultMap
.
put
(
"modificateModifyRegistration"
,
modificateModifyRegistration
);
resultMap
.
put
(
"transloadingModifyRegistration"
,
transloadingModifyRegistration
);
resultMap
.
put
(
"unitModifyRegistration"
,
unitModifyRegistration
);
return
resultMap
;
return
null
;
}
}
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