67335 认证参数收集清单,填写人提交问题修改。

This commit is contained in:
wangzhijiang
2023-03-30 18:28:28 +08:00
parent 65cd556289
commit f4d12a75ac
@@ -1704,8 +1704,20 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
paramsCollectManifestLogEOList.add(paramsCollectManifestLogEO);
}
// 批量更新
paramsConfigDataEOService.saveOrUpdateBatch(newConfigDataEOList);
if(CollectionUtils.isNotEmpty(newConfigDataEOList)){
List<String> paramsCollectManifestIdList = newConfigDataEOList.stream().map(ParamsConfigDataEO::getParamsCollectManifestId).distinct().collect(Collectors.toList());
QueryWrapper<ParamsConfigDataEO> pcdRemoveWrap = new QueryWrapper<>();
pcdRemoveWrap.lambda().in(ParamsConfigDataEO::getParamsCollectManifestId,paramsCollectManifestIdList);
this.paramsConfigDataEOService.remove(pcdRemoveWrap);
newConfigDataEOList.forEach(newConfigDataEO -> {
newConfigDataEO.setId(UUID.randomUUID().toString().replace("-",""));
});
this.paramsConfigDataEOService.saveOrUpdateBatch(newConfigDataEOList);
}
// // 批量更新
// paramsConfigDataEOService.saveOrUpdateBatch(newConfigDataEOList);
if (CollectionUtils.isNotEmpty(paramsCollectManifestLogEOList)) {
this.paramsCollectManifestLogEOService.saveBatch(paramsCollectManifestLogEOList);