fix: 用例评审提示已存在

This commit is contained in:
chenjianxing 2021-09-18 14:30:24 +08:00 committed by jianxing
parent f84b363aff
commit 334b607b94
2 changed files with 3 additions and 1 deletions

View File

@ -231,7 +231,8 @@ public class TestCaseReviewService {
TestCaseReviewExample example = new TestCaseReviewExample(); TestCaseReviewExample example = new TestCaseReviewExample();
TestCaseReviewExample.Criteria criteria = example TestCaseReviewExample.Criteria criteria = example
.createCriteria() .createCriteria()
.andNameEqualTo(testCaseReview.getName()); .andNameEqualTo(testCaseReview.getName())
.andProjectIdEqualTo(testCaseReview.getProjectId());
if (StringUtils.isNotBlank(testCaseReview.getId())) { if (StringUtils.isNotBlank(testCaseReview.getId())) {
criteria.andIdNotEqualTo(testCaseReview.getId()); criteria.andIdNotEqualTo(testCaseReview.getId());

View File

@ -68,6 +68,7 @@
:field="item" :field="item"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
prop="name" prop="name"
sortable
min-width="160px" min-width="160px"
:label="$t('test_track.case.name')"/> :label="$t('test_track.case.name')"/>