refactor(测试用例): 自定义ID项目下唯一
This commit is contained in:
parent
474e09fe51
commit
28afb751ee
|
@ -145,7 +145,9 @@ public class TestCaseService {
|
|||
|
||||
private void checkCustomNumExist(TestCaseWithBLOBs testCase) {
|
||||
TestCaseExample example = new TestCaseExample();
|
||||
example.createCriteria().andCustomNumEqualTo(testCase.getCustomNum())
|
||||
example.createCriteria()
|
||||
.andCustomNumEqualTo(testCase.getCustomNum())
|
||||
.andProjectIdEqualTo(testCase.getProjectId())
|
||||
.andIdNotEqualTo(testCase.getId());
|
||||
List<TestCase> list = testCaseMapper.selectByExample(example);
|
||||
if (CollectionUtils.isNotEmpty(list)) {
|
||||
|
|
Loading…
Reference in New Issue