bug:14263修复

pull/4/head^2
zhangyanli 2024-02-26 11:19:25 +08:00
parent 6ce8b6669e
commit 64b883b73f
3 changed files with 44 additions and 15 deletions

View File

@ -1974,6 +1974,7 @@ public class HiddenController extends BaseController {
pd.put("RECTIFICATIONTYPE","2");
if (list.size() == 0) {
inspection.put("INSPECTION_STATUS", "5"); // 指派完成
pd.put("STATE", "1"); //未整改
} else {
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.PageData;
import com.zcloud.mapper.datasource.inspection.SafetyEnvironmentalMapper;
import com.zcloud.mapper.datasource.system.UsersMapper;
import com.zcloud.service.bus.*;
import com.zcloud.service.hidden.HiddenService;
import com.zcloud.service.inspection.*;
@ -59,6 +60,8 @@ public class SafetyEnvironmentalServiceImpl implements SafetyEnvironmentalServic
private DepartmentService departmentService;
@Autowired
private SafetyEnvironmentalExplainService explainService;
@Resource
private UsersMapper usersMapper;
@Resource
private NoticeCorpUtil noticeCorpUtil;
@ -150,18 +153,23 @@ public class SafetyEnvironmentalServiceImpl implements SafetyEnvironmentalServic
hidden.put("HIDDENDESCR", json.getString("HIDDENDESCR")); //隐患描述
hidden.put("HIDDENPART", json.getString("HIDDENPART")); //隐患部位
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("LATITUDE", json.getString("LATITUDE")); //隐患位置纬度
hidden.put("DISCOVERYTIME", json.getString("DISCOVERYTIME")); //隐患发现时间
hidden.put("HIDDENFINDDEPT", json.getString("HIDDENFINDDEPT")); //隐患发现部门(隐患责任人部门)
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("ISRELEVANT",json.getString("ISRELEVANT"));//是否相关方1是2否
hidden.put("STATE", "100"); //隐患状态 100-安全环保检查暂存的隐患流程完转0
hidden.put("CREATTIME", time); //发现时间
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("POSITIONDESC",json.getString("POSITIONDESC"));
hiddenService.save(hidden);

View File

@ -2546,16 +2546,36 @@
update
<include refid="tableName"></include>
set
<if test="STATE != null and STATE != ''">
STATE = #{STATE},
</if>
<if test="CONFIRM_USER != null and CONFIRM_USER != ''">
CONFIRM_USER = #{CONFIRM_USER},
</if>
<if test="CONFIRM_TIME != null and CONFIRM_TIME != ''">
CONFIRM_TIME = #{CONFIRM_TIME},
</if>
<if test="RECTIFICATIONTYPE != null and RECTIFICATIONTYPE != ''">
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 != ''">
,RECTIFICATIONTYPE = #{RECTIFICATIONTYPE}