diff --git a/src/main/java/club/joylink/rtss/services/org/OrgProjectService.java b/src/main/java/club/joylink/rtss/services/org/OrgProjectService.java index 2dc342beb..16b22acd4 100644 --- a/src/main/java/club/joylink/rtss/services/org/OrgProjectService.java +++ b/src/main/java/club/joylink/rtss/services/org/OrgProjectService.java @@ -127,8 +127,8 @@ public class OrgProjectService implements IOrgProjectService { @Transactional(rollbackFor = Exception.class) public void update(Long orgId, List projectList, AccountVO user) { OrgProjectExample orgProjectExample = new OrgProjectExample(); + orgProjectExample.createCriteria().andOrgIdEqualTo(orgId); if (CollectionUtils.isEmpty(projectList)) { // 为空,直接删除项目列表 - orgProjectExample.createCriteria().andOrgIdEqualTo(orgId); orgProjectDao.deleteByExampleSelective(orgProjectExample); } else { List orgProjects = orgProjectDao.selectByExample(orgProjectExample);