fix: 用例评审提示已存在
This commit is contained in:
parent
f84b363aff
commit
334b607b94
|
@ -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());
|
||||||
|
|
|
@ -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')"/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue