Merge remote-tracking branch 'origin/dev' into dev

pull/4/head^2
dearlin 2024-02-26 11:37:58 +08:00
commit 918037d593
3 changed files with 44 additions and 15 deletions

View File

@ -1974,6 +1974,7 @@ public class HiddenController extends BaseController {
pd.put("RECTIFICATIONTYPE","2"); pd.put("RECTIFICATIONTYPE","2");
if (list.size() == 0) { if (list.size() == 0) {
inspection.put("INSPECTION_STATUS", "5"); // 指派完成 inspection.put("INSPECTION_STATUS", "5"); // 指派完成
pd.put("STATE", "1"); //未整改
} else { } else {
inspection.put("INSPECTION_STATUS", "4"); // 指派中 inspection.put("INSPECTION_STATUS", "4"); // 指派中
} }

View File

@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.zcloud.entity.Page; import com.zcloud.entity.Page;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
import com.zcloud.mapper.datasource.inspection.SafetyEnvironmentalMapper; import com.zcloud.mapper.datasource.inspection.SafetyEnvironmentalMapper;
import com.zcloud.mapper.datasource.system.UsersMapper;
import com.zcloud.service.bus.*; import com.zcloud.service.bus.*;
import com.zcloud.service.hidden.HiddenService; import com.zcloud.service.hidden.HiddenService;
import com.zcloud.service.inspection.*; import com.zcloud.service.inspection.*;
@ -59,6 +60,8 @@ public class SafetyEnvironmentalServiceImpl implements SafetyEnvironmentalServic
private DepartmentService departmentService; private DepartmentService departmentService;
@Autowired @Autowired
private SafetyEnvironmentalExplainService explainService; private SafetyEnvironmentalExplainService explainService;
@Resource
private UsersMapper usersMapper;
@Resource @Resource
private NoticeCorpUtil noticeCorpUtil; private NoticeCorpUtil noticeCorpUtil;
@ -150,18 +153,23 @@ public class SafetyEnvironmentalServiceImpl implements SafetyEnvironmentalServic
hidden.put("HIDDENDESCR", json.getString("HIDDENDESCR")); //隐患描述 hidden.put("HIDDENDESCR", json.getString("HIDDENDESCR")); //隐患描述
hidden.put("HIDDENPART", json.getString("HIDDENPART")); //隐患部位 hidden.put("HIDDENPART", json.getString("HIDDENPART")); //隐患部位
hidden.put("HIDDENLEVEL", json.getString("HIDDENLEVEL")); //隐患级别 hidden.put("HIDDENLEVEL", json.getString("HIDDENLEVEL")); //隐患级别
hidden.put("HIDDENTYPE_NAME", json.getString("HIDDENTYPENAME"));//隐患类型名称 hidden.put("HIDDENTYPE_NAME", json.getString("HIDDENTYPE_NAME"));//隐患类型名称
hidden.put("LONGITUDE", json.getString("LONGITUDE")); //隐患位置经度 hidden.put("LONGITUDE", json.getString("LONGITUDE")); //隐患位置经度
hidden.put("LATITUDE", json.getString("LATITUDE")); //隐患位置纬度 hidden.put("LATITUDE", json.getString("LATITUDE")); //隐患位置纬度
hidden.put("DISCOVERYTIME", json.getString("DISCOVERYTIME")); //隐患发现时间 hidden.put("DISCOVERYTIME", json.getString("DISCOVERYTIME")); //隐患发现时间
hidden.put("HIDDENFINDDEPT", json.getString("HIDDENFINDDEPT")); //隐患发现部门(隐患责任人部门)
hidden.put("CREATOR", json.getString("CREATOR")); //发现人(隐患责任人) hidden.put("CREATOR", json.getString("CREATOR")); //发现人(隐患责任人)
PageData user = new PageData();
user.put("USER_ID",json.getString("CREATOR"));
user = usersMapper.findById(user);
if (user != null) {
hidden.put("HIDDENFINDDEPT", user.getString("DEPARTMENT_ID")); //隐患发现部门(隐患责任人部门)
}
hidden.put("SOURCE", json.getString("SOURCE")); //发现人(隐患责任人) hidden.put("SOURCE", json.getString("SOURCE")); //发现人(隐患责任人)
hidden.put("ISRELEVANT",json.getString("ISRELEVANT"));//是否相关方1是2否 hidden.put("ISRELEVANT",json.getString("ISRELEVANT"));//是否相关方1是2否
hidden.put("STATE", "100"); //隐患状态 100-安全环保检查暂存的隐患流程完转0 hidden.put("STATE", "100"); //隐患状态 100-安全环保检查暂存的隐患流程完转0
hidden.put("CREATTIME", time); //发现时间 hidden.put("CREATTIME", time); //发现时间
hidden.put("CORPINFO_ID", pd.getString("CORPINFO_ID")); hidden.put("CORPINFO_ID", pd.getString("CORPINFO_ID"));
hidden.put("RECTIFICATIONTYPE", pd.getString("RECTIFICATIONTYPE")); hidden.put("RECTIFICATIONTYPE", "2");
hidden.put("ISDELETE", "0"); //是否删除(0:有效 1删除) hidden.put("ISDELETE", "0"); //是否删除(0:有效 1删除)
hidden.put("POSITIONDESC",json.getString("POSITIONDESC")); hidden.put("POSITIONDESC",json.getString("POSITIONDESC"));
hiddenService.save(hidden); hiddenService.save(hidden);

View File

@ -2546,22 +2546,42 @@
update update
<include refid="tableName"></include> <include refid="tableName"></include>
set set
STATE = #{STATE}, <if test="STATE != null and STATE != ''">
CONFIRM_USER = #{CONFIRM_USER}, STATE = #{STATE},
CONFIRM_TIME = #{CONFIRM_TIME}, </if>
RECTIFICATIONTYPE = #{RECTIFICATIONTYPE}, <if test="CONFIRM_USER != null and CONFIRM_USER != ''">
RECTIFICATIONDEADLINE = #{RECTIFICATIONDEADLINE}, CONFIRM_USER = #{CONFIRM_USER},
ISCONFIRM = #{ISCONFIRM}, </if>
RECTIFICATIONDEPT = #{RECTIFICATIONDEPT}, <if test="CONFIRM_TIME != null and CONFIRM_TIME != ''">
RECTIFICATIONOR = #{RECTIFICATIONOR}, CONFIRM_TIME = #{CONFIRM_TIME},
CHECKDEPT = #{CHECKDEPT}, </if>
CHECKOR = #{CHECKOR}, <if test="RECTIFICATIONTYPE != null and RECTIFICATIONTYPE != ''">
HIDDEN_ID = HIDDEN_ID RECTIFICATIONTYPE = #{RECTIFICATIONTYPE},
</if>
<if test="RECTIFICATIONDEADLINE != null and RECTIFICATIONDEADLINE != ''">
RECTIFICATIONDEADLINE = #{RECTIFICATIONDEADLINE},
</if>
<if test="ISCONFIRM != null and ISCONFIRM != ''">
ISCONFIRM = #{ISCONFIRM},
</if>
<if test="RECTIFICATIONDEPT != null and RECTIFICATIONDEPT != ''">
RECTIFICATIONDEPT = #{RECTIFICATIONDEPT},
</if>
<if test="RECTIFICATIONOR != null and RECTIFICATIONOR != ''">
RECTIFICATIONOR = #{RECTIFICATIONOR},
</if>
<if test="CHECKDEPT != null and CHECKDEPT != ''">
CHECKDEPT = #{CHECKDEPT},
</if>
<if test="CHECKOR != null and CHECKOR != ''">
CHECKOR = #{CHECKOR},
</if>
HIDDEN_ID = HIDDEN_ID
<if test="RECTIFICATIONTYPE != null and RECTIFICATIONTYPE != ''"> <if test="RECTIFICATIONTYPE != null and RECTIFICATIONTYPE != ''">
,RECTIFICATIONTYPE = #{RECTIFICATIONTYPE} ,RECTIFICATIONTYPE = #{RECTIFICATIONTYPE}
</if> </if>
where where
HIDDEN_ID = #{HIDDEN_ID} HIDDEN_ID = #{HIDDEN_ID}
</update> </update>
<!-- 验收 --> <!-- 验收 -->