Merge branch 'test-training2' of https://git.code.tencent.com/lian-cbtc/rtss-server into test-training2-xzb1

This commit is contained in:
xzb 2022-10-08 11:10:04 +08:00
commit c915b0605e

View File

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