Commit 9f66e99a authored by 麻笑宇's avatar 麻笑宇

Merge remote-tracking branch 'origin/develop_tzs_register_to_0715' into…

Merge remote-tracking branch 'origin/develop_tzs_register_to_0715' into develop_tzs_register_to_0715
parents a789708c 46e05396
...@@ -134,17 +134,12 @@ ...@@ -134,17 +134,12 @@
AND regulatory_labels LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.regulatoryLabels},'%') AND regulatory_labels LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.regulatoryLabels},'%')
</if> </if>
<if test="orgCodeList != null and ! orgCodeList.isEmpty() and orgCodeList.size() > 0"> <if test="orgCodeList != null and !orgCodeList.isEmpty()">
AND (
<foreach collection="orgCodeList" item="item" index="index" > <foreach collection="orgCodeList" item="item" separator=" OR ">
<if test="index==0"> supervise_org_code LIKE CONCAT('%', #{item}, '%')
AND
</if>
<if test="index!= 0">
OR
</if>
supervise_org_code LIKE CONCAT('%',#{item},'%')
</foreach> </foreach>
)
</if> </if>
AND is_delete = 0 AND is_delete = 0
</where> </where>
......
...@@ -314,6 +314,7 @@ ...@@ -314,6 +314,7 @@
WHERE WHERE
C.org_code LIKE concat ( #{orgCode}, '%' ) C.org_code LIKE concat ( #{orgCode}, '%' )
and A.certificate_status = '已登记' and A.certificate_status = '已登记'
and A.is_delete = 0
</select> </select>
<select id="useCountByOrgCode" resultType="java.lang.Long"> <select id="useCountByOrgCode" resultType="java.lang.Long">
...@@ -348,21 +349,21 @@ ...@@ -348,21 +349,21 @@
tzs_jg_installation_notice T tzs_jg_installation_notice T
WHERE WHERE
T.notice_status = 6616 T.notice_status = 6616
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION all
SELECT COUNT SELECT COUNT
( 1 ) ( 1 )
FROM FROM
tzs_jg_maintain_notice T tzs_jg_maintain_notice T
WHERE WHERE
T.notice_status = 6616 T.notice_status = 6616
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION all
SELECT COUNT SELECT COUNT
( 1 ) ( 1 )
FROM FROM
tzs_jg_reform_notice T tzs_jg_reform_notice T
WHERE WHERE
T.notice_status = 6616 T.notice_status = 6616
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION all
SELECT COUNT SELECT COUNT
( 1 ) ( 1 )
FROM FROM
......
...@@ -528,9 +528,9 @@ public class DPSubServiceImpl { ...@@ -528,9 +528,9 @@ public class DPSubServiceImpl {
e.printStackTrace(); e.printStackTrace();
} }
} }
if ("正常".equals(problemStatus)) { if ("正常".equals(problemStatus) || "已处理".equals(problemStatus)) {
color = "green"; color = "green";
} else if ("异常".equals(problemStatus)) { } else if ("异常".equals(problemStatus) || "未处理".equals(problemStatus)) {
color = "red"; color = "red";
} }
qrcode.put("value", !ValidationUtil.isEmpty(result.get("SUPERVISORY_CODE")) ? "https://sxtzsb.sxsei.com:9435/tzs/?code=" + result.get("SUPERVISORY_CODE") : result.get("USE_ORG_CODE")); qrcode.put("value", !ValidationUtil.isEmpty(result.get("SUPERVISORY_CODE")) ? "https://sxtzsb.sxsei.com:9435/tzs/?code=" + result.get("SUPERVISORY_CODE") : result.get("USE_ORG_CODE"));
...@@ -597,8 +597,12 @@ public class DPSubServiceImpl { ...@@ -597,8 +597,12 @@ public class DPSubServiceImpl {
((JSONArray)value).stream().forEach(y -> { ((JSONArray)value).stream().forEach(y -> {
JSONObject yObj = (JSONObject) y; JSONObject yObj = (JSONObject) y;
String[] str = yObj.getString("url").split("\\."); String[] str = yObj.getString("url").split("\\.");
String icon = MatinfoEnum.getIconUrl(str[1]).getIcon(); if (ValidationUtil.isEmpty(str)){
yObj.put("thumb", ValidationUtil.isEmpty(icon) ? yObj.getString("url") : icon); yObj.put("thumb", yObj.getString("url"));
} else {
String icon = Objects.requireNonNull(MatinfoEnum.getIconUrl(str[1])).getIcon();
yObj.put("thumb", ValidationUtil.isEmpty(icon) ? yObj.getString("url") : icon);
}
}); });
attachmentUploadDatasObj.put("value", value); attachmentUploadDatasObj.put("value", value);
String accept = visualParams.getString("accept"); String accept = visualParams.getString("accept");
......
...@@ -77,6 +77,10 @@ ...@@ -77,6 +77,10 @@
"content": { "content": {
"keyinfo": { "keyinfo": {
"title": "{principalUnit}", "title": "{principalUnit}",
"qrcode": {
"title": "监管码",
"problem": []
},
"keyParams": [ "keyParams": [
{ "key": "sourceType", "label": "隐患主体类型" }, { "key": "sourceType", "label": "隐患主体类型" },
{ "key": "problemType", "label": "隐患类型" }, { "key": "problemType", "label": "隐患类型" },
......
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