fix(项目管理): 项目配置三方平台问题处理

This commit is contained in:
WangXu10 2024-02-05 10:11:44 +08:00 committed by 刘瑞斌
parent 9b4431e5a2
commit 9db523ebd0
1 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ public class ProjectApplicationService {
example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.BUG.BUG_SYNC.name() + "%"); example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.BUG.BUG_SYNC.name() + "%");
if (projectApplicationMapper.countByExample(example) > 0) { if (projectApplicationMapper.countByExample(example) > 0) {
example.clear(); example.clear();
example.createCriteria().andTypeLike(ProjectApplicationType.BUG.BUG_SYNC.name() + "%"); example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.BUG.BUG_SYNC.name() + "%");
projectApplicationMapper.deleteByExample(example); projectApplicationMapper.deleteByExample(example);
projectApplicationMapper.batchInsert(bugSyncConfigs); projectApplicationMapper.batchInsert(bugSyncConfigs);
} else { } else {
@ -410,7 +410,7 @@ public class ProjectApplicationService {
example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "%"); example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "%");
if (projectApplicationMapper.countByExample(example) > 0) { if (projectApplicationMapper.countByExample(example) > 0) {
example.clear(); example.clear();
example.createCriteria().andTypeLike(ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "%"); example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "%");
projectApplicationMapper.deleteByExample(example); projectApplicationMapper.deleteByExample(example);
projectApplicationMapper.batchInsert(relatedConfigs); projectApplicationMapper.batchInsert(relatedConfigs);
} else { } else {