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
58d8f9b1
Commit
58d8f9b1
authored
Nov 15, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏-应急处置-陕西省-右屏-月度困人故障高发使用单位下钻-安康市人民医院详情-设备列表第一条数据查看详情报错
大屏-安全追溯-企业隐患、气瓶隐患、隐患数量趋势图表、当年主体单位隐患排名、当年下级区域问题闭环率排名、有数据,但下钻后无数据 代码修改
parent
19ad8213
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
AQZSDPStatisticsMapper.xml
...-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
+2
-5
DPSubServiceImpl.java
...t/module/statistcs/biz/service/impl/DPSubServiceImpl.java
+8
-6
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
View file @
58d8f9b1
...
...
@@ -109,11 +109,10 @@
tzs_safety_problem_tracing
WHERE
governing_body_org_code LIKE concat ( #{orgCode}, '%' )
AND problem_level IS NOT NULL
<if
test=
"now != null and now != ''"
>
AND DATE_FORMAT(problem_time,'%Y-%m')
>
= #{now}
</if>
<if
test=
"sourceTypeCode !=null and sourceTypeCode !=''"
>
<if
test=
"sourceTypeCode !=null and sourceTypeCode !=''
and sourceTypeCode != 2
"
>
and source_type_code = #{sourceTypeCode}
</if>
</select>
...
...
@@ -193,7 +192,6 @@
WHERE
governing_body_org_code LIKE concat ( #{orgCode}, '%' )
AND DATE_FORMAT ( problem_time, '%Y' ) = #{time}
AND problem_level IS NOT NULL
GROUP BY
principal_unit_code
ORDER BY
...
...
@@ -373,14 +371,13 @@
from tzs_safety_problem_tracing spt
<where>
spt.is_delete = false
AND spt.problem_level IS NOT NULL
<if
test=
"problemModel.problemNum != null and problemModel.problemNum != ''"
>
and spt.problem_num = LIKE CONCAT('%', #{problemModel.problemNum}, '%')
</if>
<if
test=
"problemModel.problemStatus != null and problemModel.problemStatus != ''"
>
and spt.problem_status = #{problemModel.problemStatus}
</if>
<if
test=
"problemModel.sourceTypeCode != null and problemModel.sourceTypeCode != ''"
>
<if
test=
"problemModel.sourceTypeCode != null and problemModel.sourceTypeCode != ''
and problemModel.sourceTypeCode != 2
"
>
and spt.source_type_code = #{problemModel.sourceTypeCode}
</if>
<if
test=
"problemModel.problemLevelCode != null and problemModel.problemLevelCode != ''"
>
...
...
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/DPSubServiceImpl.java
View file @
58d8f9b1
...
...
@@ -608,12 +608,14 @@ public class DPSubServiceImpl {
log
.
info
(
"附件数据:{}"
,
value
);
((
JSONArray
)
value
).
stream
().
forEach
(
y
->
{
JSONObject
yObj
=
(
JSONObject
)
y
;
String
[]
str
=
yObj
.
getString
(
"url"
).
split
(
"\\."
);
if
(
ValidationUtil
.
isEmpty
(
str
)){
yObj
.
put
(
"thumb"
,
yObj
.
getString
(
"url"
));
}
else
{
MatinfoEnum
iconUrl
=
MatinfoEnum
.
getIconUrl
(
str
[
1
]);
yObj
.
put
(
"thumb"
,
ValidationUtil
.
isEmpty
(
iconUrl
)
?
yObj
.
getString
(
"url"
)
:
iconUrl
.
getIcon
());
if
(!
ValidationUtil
.
isEmpty
(
yObj
.
getString
(
"url"
)))
{
String
[]
str
=
yObj
.
getString
(
"url"
).
split
(
"\\."
);
if
(
ValidationUtil
.
isEmpty
(
str
))
{
yObj
.
put
(
"thumb"
,
yObj
.
getString
(
"url"
));
}
else
{
MatinfoEnum
iconUrl
=
MatinfoEnum
.
getIconUrl
(
str
[
1
]);
yObj
.
put
(
"thumb"
,
ValidationUtil
.
isEmpty
(
iconUrl
)
?
yObj
.
getString
(
"url"
)
:
iconUrl
.
getIcon
());
}
}
});
attachmentUploadDatasObj
.
put
(
"value"
,
value
);
...
...
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