法规清单-取消关联

This commit is contained in:
zhn
2023-09-22 10:19:55 +08:00
parent 1129d62d7d
commit 5d30fcc0e0
2 changed files with 25 additions and 7 deletions
@@ -515,7 +515,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
public void editById(ProjectLawsInventoryEO projectLawsInventoryEO) {
this.editService.editById(projectLawsInventoryEO);
if(StringUtils.isNotBlank(projectLawsInventoryEO.getPlatformIds())){
lawsInventoryPlatformEOService.deleteByIds(Arrays.asList(projectLawsInventoryEO.getPlatformIds().split(",")));
LambdaQueryWrapper<LawsInventoryPlatformEO> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(LawsInventoryPlatformEO::getLawsInventoryId,projectLawsInventoryEO.getId());
wrapper.in(LawsInventoryPlatformEO::getPlatformLawsInventoryId,Arrays.asList(projectLawsInventoryEO.getPlatformIds().split(",")));
lawsInventoryPlatformEOService.remove(wrapper);
}
}