fix:【测试用例】复制用例,点击保存,不关闭页面,修改用例名num重复

This commit is contained in:
wenyann 2021-07-01 15:46:24 +08:00 committed by 刘瑞斌
parent a215a418b2
commit fec36d8dc7
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}