fix(接口测试): 修复自动化场景自定义ID不显示的缺陷
This commit is contained in:
parent
efd749624b
commit
78001025ec
|
@ -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();
|
||||
|
|
|
@ -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 = '';
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue