法规清单-取消关联
This commit is contained in:
+4
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user