|
@@ -822,17 +822,13 @@ public class CheckStandardServiceImpl extends BaseServiceImpl<CheckStandardMappe
|
|
|
CheckStandard search = new CheckStandard();
|
|
|
search.setSbId(sbInfo.getId());
|
|
|
List<CheckStandard> standards = mapper.select(search);
|
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
- for (CheckStandard standard : standards) {
|
|
|
- sb.append(standard.getId()).append(",");
|
|
|
- }
|
|
|
|
|
|
List<CheckStandard> updates = new ArrayList<>();
|
|
|
List<CheckStandard> adds = new ArrayList<>();
|
|
|
List<CheckStandard> deletes = new ArrayList<>();
|
|
|
for (CheckStandardDTO vo : checkStandardBatchDTO.getList()) {
|
|
|
CheckStandard checkStandard = new CheckStandard();
|
|
|
- if (StringUtils.isNotBlank(vo.getId()) && vo.getId().trim().equals("新增")) {
|
|
|
+ if (StringUtils.isBlank(vo.getId())) {
|
|
|
//新增
|
|
|
packageSbInfoAndCheckStandard(sbInfo, BeanConverterUtil.copyObjectProperties(vo,ExportCheckStandardVO2.class), checkStandard);
|
|
|
checkStandard.setId(IdGeneratorUtils.getObjectId());
|