fix(接口测试): 修复自动化场景自定义ID不显示的缺陷
This commit is contained in:
parent
efd749624b
commit
78001025ec
|
@ -1961,6 +1961,7 @@ public class ApiAutomationService {
|
||||||
api.setUpdateTime(System.currentTimeMillis());
|
api.setUpdateTime(System.currentTimeMillis());
|
||||||
api.setRefId(api.getId());
|
api.setRefId(api.getId());
|
||||||
api.setNum(nextNum++);
|
api.setNum(nextNum++);
|
||||||
|
api.setCustomNum(String.valueOf(api.getNum()));
|
||||||
mapper.insert(api);
|
mapper.insert(api);
|
||||||
if (i % 50 == 0)
|
if (i % 50 == 0)
|
||||||
sqlSession.flushStatements();
|
sqlSession.flushStatements();
|
||||||
|
|
|
@ -223,7 +223,20 @@ SET latest = 1;
|
||||||
UPDATE load_test
|
UPDATE load_test
|
||||||
SET latest = 1;
|
SET latest = 1;
|
||||||
|
|
||||||
ALTER TABLE file_metadata ADD index file_name (NAME);
|
ALTER TABLE file_metadata
|
||||||
ALTER TABLE file_content ADD index file_id_index (file_id);
|
ADD index file_name (NAME);
|
||||||
|
ALTER TABLE file_content
|
||||||
|
ADD index file_id_index (file_id);
|
||||||
|
|
||||||
|
UPDATE api_scenario
|
||||||
|
SET custom_num = num
|
||||||
|
WHERE custom_num IS NULL
|
||||||
|
OR custom_num = '';
|
||||||
|
|
||||||
|
UPDATE test_case
|
||||||
|
SET custom_num = num
|
||||||
|
WHERE custom_num IS NULL
|
||||||
|
OR custom_num = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue