Commit 58d8f9b1 authored by 麻笑宇's avatar 麻笑宇

大屏-应急处置-陕西省-右屏-月度困人故障高发使用单位下钻-安康市人民医院详情-设备列表第一条数据查看详情报错

大屏-安全追溯-企业隐患、气瓶隐患、隐患数量趋势图表、当年主体单位隐患排名、当年下级区域问题闭环率排名、有数据,但下钻后无数据 代码修改
parent 19ad8213
...@@ -109,11 +109,10 @@ ...@@ -109,11 +109,10 @@
tzs_safety_problem_tracing tzs_safety_problem_tracing
WHERE WHERE
governing_body_org_code LIKE concat ( #{orgCode}, '%' ) governing_body_org_code LIKE concat ( #{orgCode}, '%' )
AND problem_level IS NOT NULL
<if test="now != null and now != ''"> <if test="now != null and now != ''">
AND DATE_FORMAT(problem_time,'%Y-%m') &gt;= #{now} AND DATE_FORMAT(problem_time,'%Y-%m') &gt;= #{now}
</if> </if>
<if test="sourceTypeCode !=null and sourceTypeCode !=''"> <if test="sourceTypeCode !=null and sourceTypeCode !='' and sourceTypeCode != 2">
and source_type_code = #{sourceTypeCode} and source_type_code = #{sourceTypeCode}
</if> </if>
</select> </select>
...@@ -193,7 +192,6 @@ ...@@ -193,7 +192,6 @@
WHERE WHERE
governing_body_org_code LIKE concat ( #{orgCode}, '%' ) governing_body_org_code LIKE concat ( #{orgCode}, '%' )
AND DATE_FORMAT ( problem_time, '%Y' ) = #{time} AND DATE_FORMAT ( problem_time, '%Y' ) = #{time}
AND problem_level IS NOT NULL
GROUP BY GROUP BY
principal_unit_code principal_unit_code
ORDER BY ORDER BY
...@@ -373,14 +371,13 @@ ...@@ -373,14 +371,13 @@
from tzs_safety_problem_tracing spt from tzs_safety_problem_tracing spt
<where> <where>
spt.is_delete = false spt.is_delete = false
AND spt.problem_level IS NOT NULL
<if test="problemModel.problemNum != null and problemModel.problemNum != ''"> <if test="problemModel.problemNum != null and problemModel.problemNum != ''">
and spt.problem_num = LIKE CONCAT('%', #{problemModel.problemNum}, '%') and spt.problem_num = LIKE CONCAT('%', #{problemModel.problemNum}, '%')
</if> </if>
<if test="problemModel.problemStatus != null and problemModel.problemStatus != ''"> <if test="problemModel.problemStatus != null and problemModel.problemStatus != ''">
and spt.problem_status = #{problemModel.problemStatus} and spt.problem_status = #{problemModel.problemStatus}
</if> </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} and spt.source_type_code = #{problemModel.sourceTypeCode}
</if> </if>
<if test="problemModel.problemLevelCode != null and problemModel.problemLevelCode != ''"> <if test="problemModel.problemLevelCode != null and problemModel.problemLevelCode != ''">
......
...@@ -608,12 +608,14 @@ public class DPSubServiceImpl { ...@@ -608,12 +608,14 @@ public class DPSubServiceImpl {
log.info("附件数据:{}", value); log.info("附件数据:{}", value);
((JSONArray)value).stream().forEach(y -> { ((JSONArray)value).stream().forEach(y -> {
JSONObject yObj = (JSONObject) y; JSONObject yObj = (JSONObject) y;
String[] str = yObj.getString("url").split("\\."); if(!ValidationUtil.isEmpty(yObj.getString("url"))) {
if (ValidationUtil.isEmpty(str)){ String[] str = yObj.getString("url").split("\\.");
yObj.put("thumb", yObj.getString("url")); if (ValidationUtil.isEmpty(str)) {
} else { yObj.put("thumb", yObj.getString("url"));
MatinfoEnum iconUrl = MatinfoEnum.getIconUrl(str[1]); } else {
yObj.put("thumb", ValidationUtil.isEmpty(iconUrl) ? yObj.getString("url") : iconUrl.getIcon()); MatinfoEnum iconUrl = MatinfoEnum.getIconUrl(str[1]);
yObj.put("thumb", ValidationUtil.isEmpty(iconUrl) ? yObj.getString("url") : iconUrl.getIcon());
}
} }
}); });
attachmentUploadDatasObj.put("value", value); attachmentUploadDatasObj.put("value", value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment