法规清单编辑中删除取消关联的平台件数据

This commit is contained in:
zhn
2023-09-20 14:02:08 +08:00
parent 6b910b34a4
commit 683423e694
2 changed files with 6 additions and 0 deletions
@@ -543,4 +543,7 @@ public class ProjectLawsInventoryEO implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private List<ProjectLawsInventoryEO> projectLawsInventoryEOS; private List<ProjectLawsInventoryEO> projectLawsInventoryEOS;
@TableField(exist = false)
private String platformIds;//项目名称
} }
@@ -514,6 +514,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
@Override @Override
public void editById(ProjectLawsInventoryEO projectLawsInventoryEO) { public void editById(ProjectLawsInventoryEO projectLawsInventoryEO) {
this.editService.editById(projectLawsInventoryEO); this.editService.editById(projectLawsInventoryEO);
if(StringUtils.isNotBlank(projectLawsInventoryEO.getPlatformIds())){
lawsInventoryPlatformEOService.deleteByIds(Arrays.asList(projectLawsInventoryEO.getPlatformIds().split(",")));
}
} }
/** /**