|
|
|
@ -102,6 +102,9 @@ public class InspectionItemServiceImpl extends ServiceImpl<InspectionItemMapper,
|
|
|
|
|
public void saveAll(InspectionItem inspectionItem) {
|
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
|
boolean b = false;
|
|
|
|
|
if(StringUtil.isEmpty(inspectionItem.getInspectionItemNo())&&inspectionItem.getInspectionItemAdditionList()==null){
|
|
|
|
|
throw new BaseException("检验项目编号不能为空");
|
|
|
|
|
}
|
|
|
|
|
if (StringUtil.isEmpty(inspectionItem.getInspectionItemNo())) {
|
|
|
|
|
b = true;
|
|
|
|
|
inspectionItem.setInspectionItemNo(inspectItemNoGenerationRules(inspectionItem));
|
|
|
|
|