fix(接口测试): 修复批量编辑场景没有变更记录的缺陷

--bug=1038391 --user=王孝刚 【接口测试】场景-变更历史-批量编辑的变更未产生变更历史
https://www.tapd.cn/55049933/s/1491418
This commit is contained in:
wxg0103 2024-04-09 11:51:29 +08:00 committed by 刘瑞斌
parent 9f0e3728e6
commit e2f5192b16
2 changed files with 9 additions and 6 deletions

View File

@ -35,7 +35,7 @@ public class ApiScenarioLogService {
private ApiScenarioMapper apiScenarioMapper;
public void batchEditLog(List<ApiScenario> scenarioList, String operator, String projectId) {
saveBatchLog(projectId, scenarioList, "/api/scenario/batch/edit", operator, OperationLogType.UPDATE.name(), false);
saveBatchLog(projectId, scenarioList, "/api/scenario/batch/edit", operator, OperationLogType.UPDATE.name(), true);
}

View File

@ -44,15 +44,18 @@
width: 150,
},
{
title: 'apiScenario.operationUser',
title: 'mockManagement.operationUser',
dataIndex: 'createUserName',
showTooltip: true,
width: 150,
},
{
title: 'apiScenario.updateTime',
dataIndex: 'updateTime',
showTooltip: true,
title: 'apiTestManagement.updateTime',
dataIndex: 'createTime',
sortable: {
sortDirections: ['ascend', 'descend'],
sorter: true,
},
width: 180,
},
// {
@ -74,7 +77,7 @@
(item) => ({
...item,
type: t(operationTypeOptions.find((e) => e.value === item.type)?.label || ''),
updateTime: dayjs(item.updateTime).format('YYYY-MM-DD HH:mm:ss'),
createTime: dayjs(item.createTime).format('YYYY-MM-DD HH:mm:ss'),
})
);