修复bug

pull/4/head
zhangqihang 2024-02-23 18:04:02 +08:00
parent 15c3d39b8b
commit acb1c9a5a2
10 changed files with 29 additions and 17 deletions

View File

@ -1969,6 +1969,9 @@ public class HiddenController extends BaseController {
if ("-2".equals(pd.getString("HIDDEN_STATUS"))) { if ("-2".equals(pd.getString("HIDDEN_STATUS"))) {
pd.put("ISCONFIRM", "0"); // pd.put("ISCONFIRM", "0"); //
pd.put("CONFIRM_TIME", DateUtil.date2Str(new Date())); pd.put("CONFIRM_TIME", DateUtil.date2Str(new Date()));
pd.put("CONFIRM_USER", Jurisdiction.getUSER_ID());
pd.put("STATE","1");
pd.put("RECTIFICATIONTYPE","2");
if (list.size() == 0) { if (list.size() == 0) {
inspection.put("INSPECTION_STATUS", "5"); // 指派完成 inspection.put("INSPECTION_STATUS", "5"); // 指派完成
} else { } else {

View File

@ -132,6 +132,7 @@ public class AppKeyprojectCheckController extends BaseController {
hidden.put("RECTIFYDESCR", json.getString("RECTIFYDESCR")); //整改描述 hidden.put("RECTIFYDESCR", json.getString("RECTIFYDESCR")); //整改描述
hidden.put("RECTIFICATIONDEPT", json.getString("RECTIFICATIONDEPT")); //整改部门 hidden.put("RECTIFICATIONDEPT", json.getString("RECTIFICATIONDEPT")); //整改部门
hidden.put("RECTIFICATIONOR", json.getString("RECTIFICATIONOR")); //整改人 hidden.put("RECTIFICATIONOR", json.getString("RECTIFICATIONOR")); //整改人
hidden.put("HIDDENTYPE_NAME", json.getString("HIDDENTYPE_NAME")); //整改人
hidden.put("CREATOR", pd.getString("CREATOR")); //发现人(隐患责任人) hidden.put("CREATOR", pd.getString("CREATOR")); //发现人(隐患责任人)
hidden.put("SOURCE", json.getString("SOURCE")); //隐患来源 hidden.put("SOURCE", json.getString("SOURCE")); //隐患来源
hidden.put("STATE", "1"); //隐患状态 100-安全环保检查暂存的隐患流程完转0 hidden.put("STATE", "1"); //隐患状态 100-安全环保检查暂存的隐患流程完转0

View File

@ -51,7 +51,11 @@ public class Node {
case "2": case "2":
break; break;
case "3": case "3":
if (StringUtils.isNotBlank(information.getString("INSPECTED_SITEUSER_SIGN_TIME"))) {
this.text = this.text + "<br>被检查人:" + information.getString("INSPECTED_SITEUSER_NAME") + "<br/>(" + information.getString("INSPECTED_SITEUSER_SIGN_TIME") + ")"; this.text = this.text + "<br>被检查人:" + information.getString("INSPECTED_SITEUSER_NAME") + "<br/>(" + information.getString("INSPECTED_SITEUSER_SIGN_TIME") + ")";
} else {
this.text = this.text + "<br>被检查人:" + information.getString("INSPECTED_SITEUSER_NAME");
}
break; break;
case "4": case "4":
break; break;

View File

@ -2557,6 +2557,9 @@
CHECKDEPT = #{CHECKDEPT}, CHECKDEPT = #{CHECKDEPT},
CHECKOR = #{CHECKOR}, CHECKOR = #{CHECKOR},
HIDDEN_ID = HIDDEN_ID HIDDEN_ID = HIDDEN_ID
<if test="RECTIFICATIONTYPE != null and RECTIFICATIONTYPE != ''">
,RECTIFICATIONTYPE = #{RECTIFICATIONTYPE}
</if>
where where
HIDDEN_ID = #{HIDDEN_ID} HIDDEN_ID = #{HIDDEN_ID}
</update> </update>

View File

@ -65,7 +65,8 @@
f.FINAL_CHECKDESCR, f.FINAL_CHECKDESCR,
f.ISRELEVANT, f.ISRELEVANT,
f.ISPUNISH, f.ISPUNISH,
f.POSITIONDESC f.POSITIONDESC,
f.HIDDENTYPE_NAME
</sql> </sql>
<!-- 字段用于新增 --> <!-- 字段用于新增 -->
@ -121,7 +122,8 @@
FINAL_CHECKOR, FINAL_CHECKOR,
FINAL_CHECKTIME, FINAL_CHECKTIME,
FINAL_CHECKDESCR, FINAL_CHECKDESCR,
POSITIONDESC POSITIONDESC,
HIDDENTYPE_NAME
</sql> </sql>
<!-- 字段值 --> <!-- 字段值 -->
@ -177,7 +179,8 @@
#{FINAL_CHECKOR}, #{FINAL_CHECKOR},
#{FINAL_CHECKTIME}, #{FINAL_CHECKTIME},
#{FINAL_CHECKDESCR}, #{FINAL_CHECKDESCR},
#{POSITIONDESC} #{POSITIONDESC},
#{HIDDENTYPE_NAME}
</sql> </sql>
<!-- 新增--> <!-- 新增-->
@ -287,7 +290,6 @@
f.*, f.*,
hr.HIDDENREGION HIDDENPART_NAME, hr.HIDDENREGION HIDDENPART_NAME,
lv.NAME HIDDENLEVEL_NAME, lv.NAME HIDDENLEVEL_NAME,
ht.NAME HIDDENTYPE_NAME,
ht2.NAME HIDDENTYPE2_NAME, ht2.NAME HIDDENTYPE2_NAME,
crd.NAME HIDDENFINDDEPT_NAME, crd.NAME HIDDENFINDDEPT_NAME,
cr.NAME CREATOR_NAME, cr.NAME CREATOR_NAME,
@ -313,7 +315,6 @@
f.*, f.*,
hr.HIDDENREGION HIDDENPART_NAME, hr.HIDDENREGION HIDDENPART_NAME,
lv.NAME HIDDENLEVEL_NAME, lv.NAME HIDDENLEVEL_NAME,
ht.NAME HIDDENTYPE_NAME,
ht2.NAME HIDDENTYPE2_NAME, ht2.NAME HIDDENTYPE2_NAME,
crd.NAME HIDDENFINDDEPT_NAME, crd.NAME HIDDENFINDDEPT_NAME,
cr.NAME CREATOR_NAME, cr.NAME CREATOR_NAME,
@ -1123,7 +1124,6 @@
f.*, f.*,
hr.HIDDENREGION HIDDENPART_NAME, hr.HIDDENREGION HIDDENPART_NAME,
lv.NAME HIDDENLEVEL_NAME, lv.NAME HIDDENLEVEL_NAME,
ht.NAME HIDDENTYPE_NAME,
ht2.NAME HIDDENTYPE2_NAME, ht2.NAME HIDDENTYPE2_NAME,
crd.NAME HIDDENFINDDEPT_NAME, crd.NAME HIDDENFINDDEPT_NAME,
cr.NAME CREATOR_NAME, cr.NAME CREATOR_NAME,
@ -1637,7 +1637,6 @@
f.*, f.*,
hr.HIDDENREGION HIDDENPART_NAME, hr.HIDDENREGION HIDDENPART_NAME,
lv.NAME HIDDENLEVEL_NAME, lv.NAME HIDDENLEVEL_NAME,
ht.NAME HIDDENTYPE_NAME,
ht2.NAME HIDDENTYPE2_NAME, ht2.NAME HIDDENTYPE2_NAME,
crd.NAME HIDDENFINDDEPT_NAME, crd.NAME HIDDENFINDDEPT_NAME,
cr.NAME CREATOR_NAME, cr.NAME CREATOR_NAME,

View File

@ -137,7 +137,7 @@
<include refid="Field"></include>, <include refid="Field"></include>,
cr.NAME CREATOR_NAME, cr.NAME CREATOR_NAME,
cre.NAME CREATOR_NAMES, cre.NAME CREATOR_NAMES,
o.OUTSOURCED_NAME, bo.OUTSOURCED_NAME,
u.UNITS_NAME, u.UNITS_NAME,
p.NAME AS PERSON_NAME p.NAME AS PERSON_NAME
from from
@ -145,7 +145,9 @@
left join vi_user_all cr on cr.USER_ID = f.CREATOR left join vi_user_all cr on cr.USER_ID = f.CREATOR
left join sys_user cre on cre.USER_ID = f.CREATOR left join sys_user cre on cre.USER_ID = f.CREATOR
left join BUS_UNITS u on u.UNITS_ID = f.UNITS_ID left join BUS_UNITS u on u.UNITS_ID = f.UNITS_ID
left join BUS_OUTSOURCED o on o.UNITS_ID = u.UNITS_ID left join bus_keyproject_hidden h on f.HIDDEN_ID = h.HIDDEN_ID
LEFT JOIN BUS_KEYPROJECTCHECK ch ON ch.OUTSOURCED_ID = h.FOREIGN_ID or h.FOREIGN_ID = ch.KEYPROJECTCHECK_ID
LEFT JOIN BUS_OUTSOURCED bo ON bo.OUTSOURCED_ID = ch.OUTSOURCED_ID <!-- 用于安全环保检查隐患的重点工程名称 -->
left join BUS_PERSONNELMANAGEMENT p on p.PERSONNELMANAGEMENT_ID = f.PERSONNELMANAGEMENT_ID left join BUS_PERSONNELMANAGEMENT p on p.PERSONNELMANAGEMENT_ID = f.PERSONNELMANAGEMENT_ID
where where
<if test="KEYPROJECTPUNISH_ID != null and KEYPROJECTPUNISH_ID != ''"><!-- 关键词检索 --> <if test="KEYPROJECTPUNISH_ID != null and KEYPROJECTPUNISH_ID != ''"><!-- 关键词检索 -->

View File

@ -218,7 +218,7 @@
<include refid="tableName"></include> f <include refid="tableName"></include> f
LEFT JOIN sys_user u on f.CREATOR = u.USERNAME LEFT JOIN sys_user u on f.CREATOR = u.USERNAME
LEFT JOIN bus_corp_info c on u.CORPINFO_ID = c.CORPINFO_ID LEFT JOIN bus_corp_info c on u.CORPINFO_ID = c.CORPINFO_ID
where f.ISDELETE = '0' where f.ISDELETE = '0' and u.ISDELETE = '0'
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 --> <if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
and and
( (

View File

@ -88,7 +88,7 @@
<select id="datalistPage" resultType="com.zcloud.entity.PageData"> <select id="datalistPage" resultType="com.zcloud.entity.PageData">
SELECT SELECT
t.*, t.*,
COUNT(distinct p.SAFETY_MEETING_ID) ALL_SIGNATURES, (select count(*) from safety_meeting_people m where m.SAFETY_MEETING_ID = t.SAFETY_MEETING_ID and m.ISDELETE = 0) ALL_SIGNATURES,
COUNT(distinct p.FEED_BACK) SIGNATURES, COUNT(distinct p.FEED_BACK) SIGNATURES,
GROUP_CONCAT( distinct i.FILEPATH ) imgs GROUP_CONCAT( distinct i.FILEPATH ) imgs
FROM FROM
@ -96,8 +96,8 @@
LEFT JOIN bus_imgfiles i ON t.SAFETY_MEETING_ID = i.FOREIGN_KEY LEFT JOIN bus_imgfiles i ON t.SAFETY_MEETING_ID = i.FOREIGN_KEY
LEFT JOIN safety_meeting_people p ON t.SAFETY_MEETING_ID = p.SAFETY_MEETING_ID and p.ISDELETE = 0 LEFT JOIN safety_meeting_people p ON t.SAFETY_MEETING_ID = p.SAFETY_MEETING_ID and p.ISDELETE = 0
where t.ISDELETE = '0' and t.CORPINFO_ID = #{pd.CORPINFO_ID} where t.ISDELETE = '0' and t.CORPINFO_ID = #{pd.CORPINFO_ID}
<if test="pd.SAFETY_MEETING_TITLE != null and pd.SAFETY_MEETING_TITLE != ''"> <if test="pd.KEYWORDS != null and pd.KEYWORDS != ''">
and t.SAFETY_MEETING_TITLE like '%${pd.SAFETY_MEETING_TITLE}%' and t.SAFETY_MEETING_TITLE like '%${pd.KEYWORDS}%'
</if> </if>
GROUP BY GROUP BY
t.SAFETY_MEETING_ID t.SAFETY_MEETING_ID

View File

@ -189,9 +189,9 @@
left join sys_dictionaries o on o.DICTIONARIES_ID = f.OPERATIONITEM left join sys_dictionaries o on o.DICTIONARIES_ID = f.OPERATIONITEM
left join bus_corp_info b on b.CORPINFO_ID = f.CORPINFO_ID left join bus_corp_info b on b.CORPINFO_ID = f.CORPINFO_ID
left join bus_units r on r.UNITS_ID = f.UNITS_ID left join bus_units r on r.UNITS_ID = f.UNITS_ID
LEFT JOIN sys_user u on f.CREATOR = u.USERNAME LEFT JOIN sys_user u on f.CREATOR = u.USERNAME and u.ISDELETE = '0'
LEFT JOIN bus_corp_info c on u.CORPINFO_ID = c.CORPINFO_ID LEFT JOIN bus_corp_info c on u.CORPINFO_ID = c.CORPINFO_ID
where f.ISDELETE = '0' where f.ISDELETE = '0' and u.ISDELETE = '0'
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 --> <if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
and and
( (