fix:【测试用例】复制用例,点击保存,不关闭页面,修改用例名num重复
This commit is contained in:
parent
a215a418b2
commit
fec36d8dc7
|
@ -1054,6 +1054,7 @@ public class TestCaseService {
|
|||
|
||||
public String edit(EditTestCaseRequest request, List<MultipartFile> files) {
|
||||
TestCaseWithBLOBs testCaseWithBLOBs = testCaseMapper.selectByPrimaryKey(request.getId());
|
||||
request.setNum(testCaseWithBLOBs.getNum());
|
||||
if (testCaseWithBLOBs == null) {
|
||||
MSException.throwException(Translator.get("edit_load_test_not_found") + request.getId());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue