解决企标编辑类别和标准号空格问题和校验
This commit is contained in:
+13
-1
@@ -238,7 +238,19 @@ public class SarBussionessStandController extends BaseController<SarBussionessSt
|
||||
}
|
||||
return Result.success();
|
||||
} else {
|
||||
return Result.error(standNumShow + "标准号已存在");
|
||||
QueryWrapper<SarBussionessStand> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq(null!=standnumber,"STAND_CODE",standnumber)
|
||||
.eq(null!=page.getStandName(),"STAND_NAME",page.getStandName());
|
||||
List<SarBussionessStand> list = sarBussionessStandEOService.list(queryWrapper);
|
||||
Integer valIdFlag = 0;
|
||||
for (SarBussionessStand stand :list){
|
||||
if ((list.size() >=1 && !stand.getId().equals(page.getId()))){
|
||||
valIdFlag = stand.getValidFlag();
|
||||
if (valIdFlag == 0){
|
||||
return Result.error("企标编号("+ standnumber +")或企标名称("+ page.getStandName() +")已存在");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
QueryWrapper<SarBussionessStand> queryWrapper = new QueryWrapper<>();
|
||||
|
||||
Reference in New Issue
Block a user