【组织绑定项目编辑问题】

This commit is contained in:
weizhihong 2022-10-08 10:11:59 +08:00
parent ea47f926be
commit eb06ff4bac

View File

@ -127,8 +127,8 @@ public class OrgProjectService implements IOrgProjectService {
@Transactional(rollbackFor = Exception.class)
public void update(Long orgId, List<String> projectList, AccountVO user) {
OrgProjectExample orgProjectExample = new OrgProjectExample();
orgProjectExample.createCriteria().andOrgIdEqualTo(orgId);
if (CollectionUtils.isEmpty(projectList)) { // 为空直接删除项目列表
orgProjectExample.createCriteria().andOrgIdEqualTo(orgId);
orgProjectDao.deleteByExampleSelective(orgProjectExample);
} else {
List<OrgProject> orgProjects = orgProjectDao.selectByExample(orgProjectExample);