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
de492e90
Commit
de492e90
authored
Dec 27, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改纵览安全追溯/风险监测预警接口逻辑
parent
58393186
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
8 deletions
+60
-8
SafetyProblemTracingMapper.java
...boot/module/jg/api/mapper/SafetyProblemTracingMapper.java
+2
-0
SafetyProblemTracingMapper.xml
.../src/main/resources/mapper/SafetyProblemTracingMapper.xml
+20
-0
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+29
-5
ZLDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/ZLDPStatisticsServiceImpl.java
+9
-3
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/SafetyProblemTracingMapper.java
View file @
de492e90
...
...
@@ -28,4 +28,6 @@ public interface SafetyProblemTracingMapper extends BaseMapper<SafetyProblemTrac
List
<
String
>
getBusinessType
(
@Param
(
"sourceTypeCode"
)
String
sourceTypeCode
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
Map
<
String
,
Object
>>
getBusinessCount
(
@Param
(
"sourceTypeCode"
)
String
sourceTypeCode
,
@Param
(
"orgCode"
)
String
orgCode
);
Long
countByTypeListAndOrgCode
(
@Param
(
"typeList"
)
List
<
String
>
typeList
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"mainBody"
)
String
mainBody
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/SafetyProblemTracingMapper.xml
View file @
de492e90
...
...
@@ -179,4 +179,24 @@
problem_type,
problem_status_code;
</select>
<select
id=
"countByTypeListAndOrgCode"
resultType=
"java.lang.Long"
>
SELECT
COUNT(1)
FROM
tzs_safety_problem_tracing
WHERE
is_delete = '0'
<if
test=
"orgCode != null and orgCode != ''"
>
and governing_body_org_code like CONCAT(#{orgCode}, '%')
</if>
<if
test=
"typeList != null and typeList.size > 0"
>
and problem_type in
<foreach
collection=
"typeList"
item=
"type"
open=
"("
separator=
","
close=
")"
>
#{type}
</foreach>
</if>
<if
test=
"mainBody != null and mainBody != ''"
>
and source_type_code = #{mainBody}
</if>
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
View file @
de492e90
...
...
@@ -22,6 +22,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamForDetailDto;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.dto.LegendDataDto
;
import
com.yeejoin.amos.boot.module.common.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.IssueMainBodyEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.JgBusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.NoticBusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto
;
...
...
@@ -640,11 +641,21 @@ public class JGDPStatisticsServiceImpl {
private
CountDto
getRedStatusEquip
(
DPFilterParamDto
dpFilterParamDto
)
{
CountDto
countDto
=
new
CountDto
();
countDto
.
setLongValue
(
this
.
staticsCenterMapCountDateOverdue
(
dpFilterParamDto
));
countDto
.
setLongValue
(
this
.
staticsCenterMapCountDateOverdue
New
(
dpFilterParamDto
));
countDto
.
setLabel
(
"超期未检"
);
return
countDto
;
}
private
Long
staticsCenterMapCountDateOverdueNew
(
DPFilterParamDto
dpFilterParamDto
)
{
Long
num
=
0L
;
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
List
<
String
>
typeList
=
new
ArrayList
<>();
typeList
.
add
(
"维保超期"
);
typeList
.
add
(
"检验超期"
);
num
=
safetyProblemTracingMapper
.
countByTypeListAndOrgCode
(
typeList
,
orgCode
,
IssueMainBodyEnum
.
EQUIPMENT
.
getCode
());
return
num
;
}
private
Map
<
String
,
Map
<
String
,
CountDto
>>
getAllDataMap
(
DPFilterParamDto
dpFilterParamDto
)
{
Map
<
String
,
Map
<
String
,
CountDto
>>
countMap
=
new
HashMap
<>();
countMap
.
put
(
FourColorCountItemEnum
.
EQUIP
.
getKey
(),
this
.
countEquipNum
(
dpFilterParamDto
));
...
...
@@ -757,11 +768,20 @@ public class JGDPStatisticsServiceImpl {
private
CountDto
getRedStatusCompany
(
DPFilterParamDto
dpFilterParamDto
)
{
CountDto
countDto
=
new
CountDto
();
countDto
.
setLongValue
(
this
.
countCompanyForCertDateTimeOut
(
dpFilterParamDto
));
countDto
.
setLongValue
(
this
.
countCompanyForCertDateTimeOut
New
(
dpFilterParamDto
));
countDto
.
setLabel
(
"许可超期"
);
return
countDto
;
}
private
Long
countCompanyForCertDateTimeOutNew
(
DPFilterParamDto
dpFilterParamDto
)
{
Long
num
=
0L
;
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
List
<
String
>
typeList
=
new
ArrayList
<>();
typeList
.
add
(
"许可超期"
);
num
=
safetyProblemTracingMapper
.
countByTypeListAndOrgCode
(
typeList
,
orgCode
,
IssueMainBodyEnum
.
COMPANY
.
getCode
());
return
num
;
}
private
CountDto
getYellowStatusCompany
(
DPFilterParamDto
dpFilterParamDto
)
{
CountDto
countDto
=
new
CountDto
();
countDto
.
setLongValue
(
this
.
countCompanyForCertDateTemporary
(
dpFilterParamDto
));
...
...
@@ -821,10 +841,14 @@ public class JGDPStatisticsServiceImpl {
}
private
CountDto
getRedStatusUser
(
DPFilterParamDto
dpFilterParamDto
)
{
// TODO 需求不明确
CountDto
countDto
=
new
CountDto
();
countDto
.
setLongValue
(
0L
);
countDto
.
setLabel
(
"许可超期"
);
countDto
.
setLabel
(
"资质超期"
);
Long
num
=
0L
;
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
List
<
String
>
typeList
=
new
ArrayList
<>();
typeList
.
add
(
"资质超期"
);
num
=
safetyProblemTracingMapper
.
countByTypeListAndOrgCode
(
typeList
,
orgCode
,
IssueMainBodyEnum
.
PERSON
.
getCode
());
countDto
.
setLongValue
(
num
);
return
countDto
;
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/ZLDPStatisticsServiceImpl.java
View file @
de492e90
...
...
@@ -679,8 +679,8 @@ public class ZLDPStatisticsServiceImpl {
JSONObject
jsonObject9
=
new
JSONObject
();
jsonObject9
.
put
(
"key"
,
"csjsynx"
);
jsonObject9
.
put
(
"value"
,
orgCode
==
null
?
0L
:
this
.
getQuestionNumber
(
"超设计
使用
年限"
,
params
,
orgCode
));
jsonObject9
.
put
(
"name"
,
"超设计
使用
年限"
);
jsonObject9
.
put
(
"value"
,
orgCode
==
null
?
0L
:
this
.
getQuestionNumber
(
"超设计年限"
,
params
,
orgCode
));
jsonObject9
.
put
(
"name"
,
"超设计年限"
);
JSONObject
jsonObject10
=
new
JSONObject
();
jsonObject10
.
put
(
"key"
,
"zzlq"
);
...
...
@@ -689,9 +689,14 @@ public class ZLDPStatisticsServiceImpl {
JSONObject
jsonObject11
=
new
JSONObject
();
jsonObject11
.
put
(
"key"
,
"zzcq"
);
jsonObject11
.
put
(
"value"
,
orgCode
==
null
?
0L
:
stCommonService
.
getRedStatusCompany
(
params
).
getLongValue
(
));
jsonObject11
.
put
(
"value"
,
orgCode
==
null
?
0L
:
this
.
getQuestionNumber
(
"许可超期"
,
params
,
orgCode
));
jsonObject11
.
put
(
"name"
,
"许可超期"
);
JSONObject
jsonObject12
=
new
JSONObject
();
jsonObject12
.
put
(
"key"
,
"jyzzcq"
);
jsonObject12
.
put
(
"value"
,
orgCode
==
null
?
0L
:
this
.
getQuestionNumber
(
"资质超期"
,
params
,
orgCode
));
jsonObject12
.
put
(
"name"
,
"资质超期"
);
jsonArray
.
add
(
jsonObject0
);
jsonArray
.
add
(
jsonObject1
);
jsonArray
.
add
(
jsonObject2
);
...
...
@@ -704,6 +709,7 @@ public class ZLDPStatisticsServiceImpl {
jsonArray
.
add
(
jsonObject9
);
jsonArray
.
add
(
jsonObject10
);
jsonArray
.
add
(
jsonObject11
);
jsonArray
.
add
(
jsonObject12
);
}
return
jsonArray
;
...
...
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