Commit 909c33bc authored by chenzhao's avatar chenzhao

修改代码

parent 49a694d3
...@@ -299,6 +299,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD ...@@ -299,6 +299,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
} }
//为不影响其他业余 加一个判断 flag == null 是外部单位导入的隐患 == 1 是保存并提交按钮 //为不影响其他业余 加一个判断 flag == null 是外部单位导入的隐患 == 1 是保存并提交按钮
if (flag.equals("1")){ if (flag.equals("1")){
param.setId(null); //如果是先保存草稿 在提交进来 将id重置为NULL走入判断
if (ValidationUtil.isEmpty(param.getId()) && !"draft".equals(latentDanger.getDangerState()) ) { if (ValidationUtil.isEmpty(param.getId()) && !"draft".equals(latentDanger.getDangerState()) ) {
// 第一次保存隐患提交记录 // 第一次保存隐患提交记录
LatentDangerFlowRecord inputRecord = saveFlowRecord(instance.getString("id"), "提交隐患", userId, LatentDangerFlowRecord inputRecord = saveFlowRecord(instance.getString("id"), "提交隐患", userId,
......
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