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
29cd3843
Commit
29cd3843
authored
Nov 12, 2024
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:安全追溯-企业隐患(近30天)维保超期统计修改
parent
eb2022ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
AQZSDPStatisticsMapper.java
.../module/statistics/api/mapper/AQZSDPStatisticsMapper.java
+4
-0
AQZSDPStatisticsMapper.xml
...-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
+27
-0
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+3
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/mapper/AQZSDPStatisticsMapper.java
View file @
29cd3843
...
@@ -79,4 +79,8 @@ public interface AQZSDPStatisticsMapper {
...
@@ -79,4 +79,8 @@ public interface AQZSDPStatisticsMapper {
List
<
CountDto
>
selectByOrgAndProblemTypeForCy
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
);
List
<
CountDto
>
selectByOrgAndProblemTypeForCy
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
);
Page
<
SafetyProblemTracingDto
>
queryForSafetyProblemTracingPage
(
Page
<
SafetyProblemTracingDto
>
page
,
SafetyProblemTracingDto
problemModel
);
Page
<
SafetyProblemTracingDto
>
queryForSafetyProblemTracingPage
(
Page
<
SafetyProblemTracingDto
>
page
,
SafetyProblemTracingDto
problemModel
);
CountDto
selectByOrgAndProblemTypeForWb
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"problemTypeCode"
)
String
problemTypeCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"sourceTypeCode"
)
String
sourceTypeCode
,
@Param
(
"equListCode"
)
String
equListCode
);
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
View file @
29cd3843
...
@@ -422,6 +422,33 @@
...
@@ -422,6 +422,33 @@
</where>
</where>
order by spt.create_date desc
order by spt.create_date desc
</select>
</select>
<select
id=
"selectByOrgAndProblemTypeForWb"
resultType=
"com.yeejoin.amos.boot.biz.common.dto.CountDto"
>
SELECT
COUNT(1) as longValue,
t.problem_type AS keyStr
FROM
(SELECT problem_type FROM
tzs_safety_problem_tracing
WHERE
governing_body_org_code LIKE concat ( #{orgCode}, '%' )
<if
test=
"dto.beginDate !=null and dto.beginDate !=''"
>
and date_ge(CAST(problem_time as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate !=null and dto.endDate !=''"
>
and date_le(CAST(problem_time as date),#{dto.endDate})
</if>
<if
test=
"null != sourceTypeCode"
>
AND source_type_code = #{sourceTypeCode}
</if>
<if
test=
"null != equListCode"
>
AND equip_list_code = #{equListCode}
</if>
<if
test=
"null != problemTypeCode"
>
AND problem_type_code = #{problemTypeCode}
</if>
GROUP BY
principal_unit_code) t
</select>
</mapper>
</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/AQZSDPStatisticsServiceImpl.java
View file @
29cd3843
...
@@ -454,6 +454,9 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -454,6 +454,9 @@ public class AQZSDPStatisticsServiceImpl {
if
(
orgCode
!=
null
)
{
if
(
orgCode
!=
null
)
{
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
COMPANY
.
getCode
(),
null
);
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
COMPANY
.
getCode
(),
null
);
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
// 企业维保合同过期单独查询(企业下有设备维保超期就算)
CountDto
wbCountDto
=
statisticsMapper
.
selectByOrgAndProblemTypeForWb
(
orgCode
,
IssueTypeEnum
.
MAINTENANCE_OVERDUE_EQUMENT
.
getCode
(),
dpFilterParamDto
,
IssueMainBodyEnum
.
EQUIPMENT
.
getCode
(),
"3000"
);
dataMap
.
put
(
IssueTypeEnum
.
MAINTENANCE_RECORD_OVERDUE_COMPANY
.
getName
(),
wbCountDto
==
null
?
0
:
wbCountDto
.
getLongValue
());
}
}
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
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