fix(用例管理): 重新提审用例更新失败问题

--bug=1039542 --user=王旭 【用例管理】项目与权限中开启重新提审后,更新用例失败 https://www.tapd.cn/55049933/s/1499905
This commit is contained in:
WangXu10 2024-04-17 16:44:13 +08:00 committed by 刘瑞斌
parent c9edbcf5d1
commit 1527cf6890
1 changed files with 3 additions and 2 deletions

View File

@ -354,7 +354,7 @@ public class CaseReviewFunctionalCaseService {
provider.updateCaseReview(param);
});
caseReviewHistoryMapper.batchInsertSelective(historyList);
caseReviewHistoryMapper.batchInsert(historyList);
}
}
@ -367,6 +367,7 @@ public class CaseReviewFunctionalCaseService {
caseReviewHistory.setCreateUser(UserRoleScope.SYSTEM);
caseReviewHistory.setCreateTime(System.currentTimeMillis());
caseReviewHistory.setDeleted(false);
caseReviewHistory.setAbandoned(false);
historyList.add(caseReviewHistory);
}
@ -842,7 +843,7 @@ public class CaseReviewFunctionalCaseService {
sqlSession.flushStatements();
SqlSessionUtils.closeSqlSession(sqlSession, sqlSessionFactory);
extCaseReviewHistoryMapper.batchUpdateAbandoned(null, caseIds);
caseReviewHistoryMapper.batchInsertSelective(historyList);
caseReviewHistoryMapper.batchInsert(historyList);
}
public List<CaseReviewFunctionalCaseUser> getReviewerList(String reviewId, String caseId) {