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
484eb7e5
Commit
484eb7e5
authored
Aug 14, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.1.大屏-安全追溯-问题主体接口调整
parent
b36b0385
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
12 deletions
+32
-12
IssueMainBodyEnum.java
.../amos/boot/module/common/api/enums/IssueMainBodyEnum.java
+1
-3
AQZSDPStatisticsMapper.java
.../module/statistics/api/mapper/AQZSDPStatisticsMapper.java
+4
-1
AQZSDPStatisticsMapper.xml
...-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
+23
-4
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+4
-4
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/enums/IssueMainBodyEnum.java
View file @
484eb7e5
...
@@ -14,9 +14,7 @@ public enum IssueMainBodyEnum {
...
@@ -14,9 +14,7 @@ public enum IssueMainBodyEnum {
//企业
//企业
COMPANY
(
"企业"
,
"2"
),
COMPANY
(
"企业"
,
"2"
),
//设备
//设备
EQUIPMENT
(
"设备"
,
"3"
),
EQUIPMENT
(
"设备"
,
"3"
);
;
String
name
;
String
name
;
String
code
;
String
code
;
...
...
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 @
484eb7e5
...
@@ -25,7 +25,7 @@ public interface AQZSDPStatisticsMapper {
...
@@ -25,7 +25,7 @@ public interface AQZSDPStatisticsMapper {
List
<
CountDto
>
selectByOrgAndProblemType
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"enumNameList"
)
List
<
String
>
enumNameList
,
List
<
CountDto
>
selectByOrgAndProblemType
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"enumNameList"
)
List
<
String
>
enumNameList
,
@Param
(
"dto"
)
DPFilterParamDto
startDate
,
@Param
(
"sourceType"
)
String
sourceType
,
@Param
(
"equipType"
)
String
equipTyp
e
);
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"sourceTypeCode"
)
String
sourceTypeCode
,
@Param
(
"equListCode"
)
String
equListCod
e
);
List
<
Map
<
String
,
Object
>>
getIssueCountByMonth
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"year"
)
String
year
,
@Param
(
"status"
)
String
status
);
List
<
Map
<
String
,
Object
>>
getIssueCountByMonth
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"year"
)
String
year
,
@Param
(
"status"
)
String
status
);
...
@@ -72,4 +72,7 @@ public interface AQZSDPStatisticsMapper {
...
@@ -72,4 +72,7 @@ public interface AQZSDPStatisticsMapper {
List
<
Map
<
String
,
Object
>>
selectByOrg
(
String
orgCode
);
List
<
Map
<
String
,
Object
>>
selectByOrg
(
String
orgCode
);
List
<
Map
<
String
,
Object
>>
cylinderIssueMonthList
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
);
List
<
Map
<
String
,
Object
>>
cylinderIssueMonthList
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
);
List
<
CountDto
>
selectByOrgAndProblemTypeForCy
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
);
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
View file @
484eb7e5
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
SELECT
SELECT
COUNT(1) as longValue,
COUNT(1) as longValue,
problem_type AS keyStr
problem_type AS keyStr
FROM
FROM
tzs_safety_problem_tracing
tzs_safety_problem_tracing
WHERE
WHERE
governing_body_org_code LIKE concat ( #{orgCode}, '%' )
governing_body_org_code LIKE concat ( #{orgCode}, '%' )
...
@@ -37,9 +37,9 @@
...
@@ -37,9 +37,9 @@
<if
test=
"dto.endDate !=null and dto.endDate !=''"
>
<if
test=
"dto.endDate !=null and dto.endDate !=''"
>
and date_le(CAST(problem_time as date),#{dto.endDate})
and date_le(CAST(problem_time as date),#{dto.endDate})
</if>
</if>
AND source_type
= #{sourceTyp
e}
AND source_type
_code = #{sourceTypeCod
e}
<if
test=
"null != equipType"
>
<if
test=
"null != equipType"
>
AND equip_list_code = #{equ
ipTyp
e}
AND equip_list_code = #{equ
ListCod
e}
</if>
</if>
AND problem_type IN
AND problem_type IN
<foreach
collection=
"enumNameList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
<foreach
collection=
"enumNameList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
...
@@ -47,7 +47,26 @@
...
@@ -47,7 +47,26 @@
</foreach>
</foreach>
GROUP BY
GROUP BY
problem_type
problem_type
</select>
<select
id=
"selectByOrgAndProblemTypeForCy"
resultType=
"com.yeejoin.amos.boot.biz.common.dto.CountDto"
>
SELECT
COUNT(1) as longValue,
t.problem_type AS keyStr
FROM
tzs_safety_problem_tracing t,
idx_biz_jg_register_info A
WHERE
A.RECORD = t.source_id
AND A.EQU_CATEGORY = '2300'
and t.governing_body_org_code LIKE concat (#{orgCode}, '%')
<if
test=
"dto.beginDate !=null and dto.beginDate !=''"
>
and date_ge(CAST(t.problem_time as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate !=null and dto.endDate !=''"
>
and date_le(CAST(t.problem_time as date),#{dto.endDate})
</if>
AND t.source_type_code = '3'
GROUP BY t.problem_type
</select>
</select>
<select
id=
"getIssueCountByMonth"
resultType=
"java.util.Map"
>
<select
id=
"getIssueCountByMonth"
resultType=
"java.util.Map"
>
SELECT COUNT
SELECT COUNT
...
...
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 @
484eb7e5
...
@@ -377,7 +377,7 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -377,7 +377,7 @@ public class AQZSDPStatisticsServiceImpl {
List
<
String
>
enumNameList
=
IssueTypeEnum
.
getEnumNameListByMainBody
(
"3"
);
List
<
String
>
enumNameList
=
IssueTypeEnum
.
getEnumNameListByMainBody
(
"3"
);
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
!=
null
){
if
(
orgCode
!=
null
){
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
EQUIPMENT
.
get
Nam
e
(),
null
);
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
EQUIPMENT
.
get
Cod
e
(),
null
);
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
}
}
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
...
@@ -396,7 +396,7 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -396,7 +396,7 @@ public class AQZSDPStatisticsServiceImpl {
List
<
String
>
enumNameList
=
IssueTypeEnum
.
getEnumNameListByMainBody
(
"2"
);
List
<
String
>
enumNameList
=
IssueTypeEnum
.
getEnumNameListByMainBody
(
"2"
);
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
!=
null
){
if
(
orgCode
!=
null
){
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
COMPANY
.
get
Nam
e
(),
null
);
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
COMPANY
.
get
Cod
e
(),
null
);
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
}
}
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
...
@@ -434,7 +434,7 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -434,7 +434,7 @@ public class AQZSDPStatisticsServiceImpl {
List
<
String
>
enumNameList
=
IssueTypeEnum
.
getEnumNameListByMainBody
(
"1"
);
List
<
String
>
enumNameList
=
IssueTypeEnum
.
getEnumNameListByMainBody
(
"1"
);
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
!=
null
){
if
(
orgCode
!=
null
){
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
PERSON
.
get
Nam
e
(),
null
);
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
PERSON
.
get
Cod
e
(),
null
);
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
}
}
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
...
@@ -455,7 +455,7 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -455,7 +455,7 @@ public class AQZSDPStatisticsServiceImpl {
List
<
String
>
enumNameList
=
IssueTypeEnum
.
getEnumNameListByMainBody
(
"4"
);
List
<
String
>
enumNameList
=
IssueTypeEnum
.
getEnumNameListByMainBody
(
"4"
);
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
!=
null
){
if
(
orgCode
!=
null
){
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
(
orgCode
,
enumNameList
,
dpFilterParamDto
,
IssueMainBodyEnum
.
EQUIPMENT
.
getName
(),
"2300"
);
List
<
CountDto
>
countDtos
=
statisticsMapper
.
selectByOrgAndProblemType
ForCy
(
orgCode
,
dpFilterParamDto
);
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
countDtos
.
forEach
(
t
->
dataMap
.
put
(
t
.
getKeyStr
(),
t
.
getLongValue
()));
}
}
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
enumNameList
.
size
();
i
++)
{
...
...
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