fix(用例评审): 删除评审时删除关联的用例
This commit is contained in:
parent
b65a571a51
commit
a88f81de2e
|
@ -226,6 +226,7 @@ public class TestCaseReviewService {
|
||||||
public void deleteCaseReview(String reviewId) {
|
public void deleteCaseReview(String reviewId) {
|
||||||
deleteCaseReviewProject(reviewId);
|
deleteCaseReviewProject(reviewId);
|
||||||
deleteCaseReviewUsers(reviewId);
|
deleteCaseReviewUsers(reviewId);
|
||||||
|
deleteCaseReviewTestCase(reviewId);
|
||||||
testCaseReviewMapper.deleteByPrimaryKey(reviewId);
|
testCaseReviewMapper.deleteByPrimaryKey(reviewId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,6 +242,12 @@ public class TestCaseReviewService {
|
||||||
testCaseReviewUsersMapper.deleteByExample(testCaseReviewUsersExample);
|
testCaseReviewUsersMapper.deleteByExample(testCaseReviewUsersExample);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void deleteCaseReviewTestCase(String reviewId) {
|
||||||
|
TestCaseReviewTestCaseExample testCaseReviewTestCaseExample = new TestCaseReviewTestCaseExample();
|
||||||
|
testCaseReviewTestCaseExample.createCriteria().andReviewIdEqualTo(reviewId);
|
||||||
|
testCaseReviewTestCaseMapper.deleteByExample(testCaseReviewTestCaseExample);
|
||||||
|
}
|
||||||
|
|
||||||
public List<TestCaseReview> listCaseReviewAll(String currentWorkspaceId) {
|
public List<TestCaseReview> listCaseReviewAll(String currentWorkspaceId) {
|
||||||
ProjectExample projectExample = new ProjectExample();
|
ProjectExample projectExample = new ProjectExample();
|
||||||
projectExample.createCriteria().andWorkspaceIdEqualTo(currentWorkspaceId);
|
projectExample.createCriteria().andWorkspaceIdEqualTo(currentWorkspaceId);
|
||||||
|
|
Loading…
Reference in New Issue