法规清单调取--二次确认
This commit is contained in:
+5
@@ -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;
|
||||
}
|
||||
|
||||
+3
-6
@@ -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("该虚拟清单的维护清单中没有数据,是否需要添加");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user