fix(接口测试): 修复自动化场景自定义ID不显示的缺陷

This commit is contained in:
wxg0103 2022-01-25 16:00:56 +08:00 committed by 刘瑞斌
parent efd749624b
commit 78001025ec
2 changed files with 16 additions and 2 deletions

View File

@ -1961,6 +1961,7 @@ public class ApiAutomationService {
api.setUpdateTime(System.currentTimeMillis());
api.setRefId(api.getId());
api.setNum(nextNum++);
api.setCustomNum(String.valueOf(api.getNum()));
mapper.insert(api);
if (i % 50 == 0)
sqlSession.flushStatements();

View File

@ -223,7 +223,20 @@ SET latest = 1;
UPDATE load_test
SET latest = 1;
ALTER TABLE file_metadata ADD index file_name (NAME);
ALTER TABLE file_content ADD index file_id_index (file_id);
ALTER TABLE file_metadata
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 = '';