法规清单调取--二次确认

This commit is contained in:
zhn
2022-05-10 09:50:10 +08:00
parent 2551755201
commit 1add665a46
2 changed files with 8 additions and 6 deletions
@@ -381,4 +381,9 @@ public class ProjectLawsInventoryEO implements Serializable {
@TableField(exist = false)
@ApiModelProperty(value = "虚拟清单iD")
private String dummyInventoryBaseId;
//flag为空时第一次调取,flag不为空时,为二次确认
@TableField(exist = false)
@ApiModelProperty(value = "调取虚拟清单,虚拟清单中维护数据为空时,进行二次确认")
private String flag;
}
@@ -224,12 +224,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
projectTaskInventoryEOList.add(projectTaskInventoryEO);
});
}
}else{
if(CutEnum.CN.getValue().equals(projectLawsInventoryEO.getCut())){
throw new JeroBootException("该虚拟清单的维护清单中没有数据,是否需要添加");
}else{
throw new JeroBootException("该虚拟清单的维护清单中没有数据,是否需要添加");
}
}else if(dummyInventoryInfoEOList.size() == 0 && StringUtils.isBlank(projectLawsInventoryEO.getFlag())){
//flag为二次确认标识,flag为空时进行验证
throw new JeroBootException("该虚拟清单的维护清单中没有数据,是否需要添加");
}
}