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
7acf5043
Commit
7acf5043
authored
Oct 20, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:(大屏) :三库查询空指针问题处理
parent
5596eda7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
CylinderBusinessStatisticsMapper.xml
...ain/resources/mapper/CylinderBusinessStatisticsMapper.xml
+4
-4
JGStatisticsMapper.xml
...tics-api/src/main/resources/mapper/JGStatisticsMapper.xml
+0
-2
TzsCustomFilterMapper.xml
...s-api/src/main/resources/mapper/TzsCustomFilterMapper.xml
+0
-2
ZLStatisticsMapper.xml
...tics-api/src/main/resources/mapper/ZLStatisticsMapper.xml
+2
-2
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+14
-9
TzBaseEnterpriseInfoMapper.xml
.../src/main/resources/mapper/TzBaseEnterpriseInfoMapper.xml
+2
-2
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/CylinderBusinessStatisticsMapper.xml
View file @
7acf5043
...
@@ -20,13 +20,13 @@
...
@@ -20,13 +20,13 @@
<select
id=
"getUseRegisterCount"
resultType=
"java.util.Map"
>
<select
id=
"getUseRegisterCount"
resultType=
"java.util.Map"
>
SELECT
SELECT
C.time,
-- 月份
C.time,
COUNT(1) AS num
-- 每月的记录数
COUNT(1) AS num
FROM
FROM
tzs_cylinder_business_statistics C
tzs_cylinder_business_statistics C
WHERE
WHERE
C.supervision_org_code LIKE '50%'
-- 仅过滤 '50%' 开头的监管机构代码
C.supervision_org_code LIKE '50%'
GROUP BY
GROUP BY
C.time
-- 按月份分组
C.time
</select>
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/JGStatisticsMapper.xml
View file @
7acf5043
...
@@ -1487,7 +1487,6 @@
...
@@ -1487,7 +1487,6 @@
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjcrn.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
and tjcrn.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
</if>
<!-- 因更名变更是将单位下所有设备都修改,未存设备id,故筛选设备种类和类别默认筛选不到数据-->
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and 1 = 2
and 1 = 2
</if>
</if>
...
@@ -2199,7 +2198,6 @@
...
@@ -2199,7 +2198,6 @@
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjcrn.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
and tjcrn.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
</if>
<!-- 因更名变更是将单位下所有设备都修改,未存设备id,故筛选设备种类和类别默认筛选不到数据-->
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and 1 = 2
and 1 = 2
</if>
</if>
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/TzsCustomFilterMapper.xml
View file @
7acf5043
...
@@ -46,8 +46,6 @@
...
@@ -46,8 +46,6 @@
"ORG_BRANCH_CODE" IS NULL
"ORG_BRANCH_CODE" IS NULL
AND ibjui."RECORD" is not null
AND ibjui."RECORD" is not null
AND ibjsi."RECORD" is null
AND ibjsi."RECORD" is null
--AND ibjri."EQU_CATEGORY" = '2300'
--AND "CLAIM_STATUS" = '已认领'
order by ibjui."RECORD" desc
order by ibjui."RECORD" desc
</select>
</select>
<select
id=
"selectRecords"
resultType=
"java.lang.String"
>
<select
id=
"selectRecords"
resultType=
"java.lang.String"
>
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/ZLStatisticsMapper.xml
View file @
7acf5043
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
and
and
(
(
<choose>
<choose>
<when
test=
"regionCode != null and regionCode != ''"
>
--按监管单位统计时,省局使用
<when
test=
"regionCode != null and regionCode != ''"
>
(
(
<choose>
<choose>
<when
test=
"isOrgCodeExactMatch != null and isOrgCodeExactMatch != ''"
>
<when
test=
"isOrgCodeExactMatch != null and isOrgCodeExactMatch != ''"
>
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
OR
OR
(bi.supervise_org_code = '50' AND bi.office_region LIKE CONCAT('%', #{regionCode}, '%'))
(bi.supervise_org_code = '50' AND bi.office_region LIKE CONCAT('%', #{regionCode}, '%'))
</when>
</when>
<otherwise>
--按监管单位统计时,除省局外使用
<otherwise>
<choose>
<choose>
<when
test=
"isOrgCodeExactMatch != null and isOrgCodeExactMatch != ''"
>
<when
test=
"isOrgCodeExactMatch != null and isOrgCodeExactMatch != ''"
>
bi.supervise_org_code != '50' AND bi.supervise_org_code = #{orgCode}
bi.supervise_org_code != '50' AND bi.supervise_org_code = #{orgCode}
...
...
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 @
7acf5043
...
@@ -4170,17 +4170,22 @@ public class JGDPStatisticsServiceImpl {
...
@@ -4170,17 +4170,22 @@ public class JGDPStatisticsServiceImpl {
}
}
public
String
sumWithValidation
(
List
<
SkjsEquipCountItemDto
>
list
)
{
public
String
sumWithValidation
(
List
<
SkjsEquipCountItemDto
>
list
)
{
if
(
list
==
null
||
list
.
isEmpty
())
return
"0.000"
;
return
list
.
stream
()
return
list
.
stream
()
.
filter
(
Objects:
:
nonNull
)
.
filter
(
Objects:
:
nonNull
)
.
map
(
item
->
{
.
map
(
item
->
this
.
safeBigDecimal
(
item
.
getYlgd
()))
try
{
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
)
return
new
BigDecimal
(
item
.
getYlgd
());
.
setScale
(
3
,
RoundingMode
.
HALF_UP
)
}
catch
(
NumberFormatException
e
)
{
.
toPlainString
();
log
.
warn
(
"Invalid number in item {}"
,
item
);
}
return
BigDecimal
.
ZERO
;
}
private
BigDecimal
safeBigDecimal
(
String
val
)
{
})
if
(
val
==
null
||
val
.
trim
().
isEmpty
())
return
BigDecimal
.
ZERO
;
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
).
setScale
(
3
,
RoundingMode
.
HALF_UP
).
toPlainString
();
try
{
return
new
BigDecimal
(
val
.
trim
());
}
catch
(
NumberFormatException
e
)
{
return
BigDecimal
.
ZERO
;
}
}
}
public
List
<
Map
<
String
,
Object
>>
getSuperviseTreeByLoginUnitCode
(
String
orgCode
)
{
public
List
<
Map
<
String
,
Object
>>
getSuperviseTreeByLoginUnitCode
(
String
orgCode
)
{
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/TzBaseEnterpriseInfoMapper.xml
View file @
7acf5043
...
@@ -300,7 +300,7 @@
...
@@ -300,7 +300,7 @@
<where>
<where>
(
(
<choose>
<choose>
<when
test=
"cityCode != null and cityCode != ''"
>
--按监管单位统计时,省局使用
<when
test=
"cityCode != null and cityCode != ''"
>
(
(
<choose>
<choose>
<when
test=
"isOrgCodeExactMatch != null and isOrgCodeExactMatch != ''"
>
<when
test=
"isOrgCodeExactMatch != null and isOrgCodeExactMatch != ''"
>
...
@@ -314,7 +314,7 @@
...
@@ -314,7 +314,7 @@
OR
OR
(a.supervise_org_code = '50' AND a.office_region LIKE CONCAT('%', #{cityCode}, '%'))
(a.supervise_org_code = '50' AND a.office_region LIKE CONCAT('%', #{cityCode}, '%'))
</when>
</when>
<otherwise>
--按监管单位统计时,除省局使用
<otherwise>
<choose>
<choose>
<when
test=
"isOrgCodeExactMatch != null and isOrgCodeExactMatch != ''"
>
<when
test=
"isOrgCodeExactMatch != null and isOrgCodeExactMatch != ''"
>
a.supervise_org_code != '50' AND a.supervise_org_code = #{orgCode}
a.supervise_org_code != '50' AND a.supervise_org_code = #{orgCode}
...
...
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