Commit a5a936e5 authored by chenzhao's avatar chenzhao

修改代码

parent b97b4450
...@@ -602,6 +602,9 @@ public class LatentDangerServiceImpl implements ILatentDangerService { ...@@ -602,6 +602,9 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
} }
Date startDate1 = new Date();; Date startDate1 = new Date();;
int dangerListSize = latentDangerMapper.countByBathBusinessKeys(bussinessKeys, latentDangerListParam); int dangerListSize = latentDangerMapper.countByBathBusinessKeys(bussinessKeys, latentDangerListParam);
if (latentDangerListParam.getBelongType().equals(1)){
latentDangerListParam.setUserId(user.getUserId());
}
List<LatentDangerBo> dangerList = latentDangerMapper.getByBathBusinessKeys(bussinessKeys, latentDangerListParam); List<LatentDangerBo> dangerList = latentDangerMapper.getByBathBusinessKeys(bussinessKeys, latentDangerListParam);
Date endDate1 = new Date(); Date endDate1 = new Date();
logger.info("-------------------------sql时间" +(endDate1.getTime()-startDate1.getTime())); logger.info("-------------------------sql时间" +(endDate1.getTime()-startDate1.getTime()));
...@@ -1269,9 +1272,12 @@ public class LatentDangerServiceImpl implements ILatentDangerService { ...@@ -1269,9 +1272,12 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
latentDangerBo.setReformType(LatentDangerReformTypeEnum.常规整改.getCode().toString()); latentDangerBo.setReformType(LatentDangerReformTypeEnum.常规整改.getCode().toString());
JSONObject reformJsonObj = JSONObject.parseObject(latentDangerBo.getReformJson()); JSONObject reformJsonObj = JSONObject.parseObject(latentDangerBo.getReformJson());
if (ValidationUtil.isEmpty(reformJsonObj)) { if (ValidationUtil.isEmpty(reformJsonObj)) {
reformJsonObj = executeParam.getFlowJson(); // reformJsonObj = executeParam.getFlowJson();
reformJsonObj.put("governPhotoObj",executeParam.getFlowJson().get("photoUrls"));
} else { } else {
reformJsonObj.putAll(executeParam.getFlowJson()); // reformJsonObj.putAll(executeParam.getFlowJson());
reformJsonObj.put("governPhotoObj",executeParam.getFlowJson().get("photoUrls"));
} }
latentDangerBo.setReformJson(reformJsonObj.toJSONString()); latentDangerBo.setReformJson(reformJsonObj.toJSONString());
latentDangerBo.setInferOtherThings(executeParam.getInferOtherThings()); latentDangerBo.setInferOtherThings(executeParam.getInferOtherThings());
...@@ -1295,6 +1301,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService { ...@@ -1295,6 +1301,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
reformJsonObject = new JSONObject(); reformJsonObject = new JSONObject();
} }
reformJsonObject.put("governUserId", governUserId); reformJsonObject.put("governUserId", governUserId);
reformJsonObject.put("reviewPhotoObj",reformJsonObject.get("photoUrls"));
latentDangerBo.setReformJson(reformJsonObject.toJSONString()); latentDangerBo.setReformJson(reformJsonObject.toJSONString());
// 消防巡查需求:评审通过后指定治理人 // 消防巡查需求:评审通过后指定治理人
......
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