This commit is contained in:
wangzhijiang
2023-03-24 14:38:11 +08:00
parent 1567daf2a2
commit d057511366
@@ -6897,6 +6897,11 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
public List<PhasedImplementationDetailsEO> insertBatchPhasedImplementationDetailsInfo(Map<String, Object> map){
String id = (String) map.get("id");
// 删除之前的分阶段实施明细信息
QueryWrapper<PhasedImplementationDetailsEO> deleteWrap = new QueryWrapper<>();
deleteWrap.lambda().eq(PhasedImplementationDetailsEO::getBussDocumentLibraryId,id);
this.phasedImplementationDetailsEOService.getBaseMapper().delete(deleteWrap);
List<PhasedImplementationDetailsEO> phasedImplDetailsEOList = new ArrayList<>();
if(map.containsKey("phasedImplementationDetailsEOList")){
PhasedImplementationDetailsEO phasedImplDetailsEO = null;
@@ -6910,6 +6915,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
orderNum ++;
}
// 批量插入最新的分阶段实施明细信息
boolean insertPhasedBatchFlag = this.phasedImplementationDetailsEOService.insertBatch(phasedImplDetailsEOList);
if(!insertPhasedBatchFlag){
throw new JeroBootException("添加分阶段实施详情信息失败!");