From eb06ff4bac9b0997a6d593d3610f88fb927de82c Mon Sep 17 00:00:00 2001 From: weizhihong Date: Sat, 8 Oct 2022 10:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=BB=84=E7=BB=87=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=BC=96=E8=BE=91=E9=97=AE=E9=A2=98=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/club/joylink/rtss/services/org/OrgProjectService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);