fix(测试计划): 报告列表创建时间展示有误
--bug=1041382 --user=宋昌昌 【测试计划】报告-创建时间-创建时间一直显示的是当前的实时时间 https://www.tapd.cn/55049933/s/1522820
This commit is contained in:
parent
8469f47f43
commit
0da03af253
|
@ -375,7 +375,7 @@ public class TestPlanReportService {
|
|||
public TestPlanReportDetailResponse edit(TestPlanReportDetailEditRequest request, String currentUser) {
|
||||
TestPlanReport planReport = checkReport(request.getId());
|
||||
TestPlanReportSummary reportSummary = new TestPlanReportSummary();
|
||||
reportSummary.setSummary(request.getSummary());
|
||||
reportSummary.setSummary(StringUtils.isBlank(request.getSummary()) ? StringUtils.EMPTY : request.getSummary());
|
||||
TestPlanReportSummaryExample example = new TestPlanReportSummaryExample();
|
||||
example.createCriteria().andTestPlanReportIdEqualTo(planReport.getId());
|
||||
testPlanReportSummaryMapper.updateByExampleSelective(reportSummary, example);
|
||||
|
|
|
@ -254,8 +254,8 @@
|
|||
},
|
||||
{
|
||||
title: 'report.operating',
|
||||
dataIndex: 'startTime',
|
||||
slotName: 'startTime',
|
||||
dataIndex: 'createTime',
|
||||
slotName: 'createTime',
|
||||
width: 180,
|
||||
sortable: {
|
||||
sortDirections: ['ascend', 'descend'],
|
||||
|
@ -299,7 +299,7 @@
|
|||
},
|
||||
(item) => ({
|
||||
...item,
|
||||
startTime: dayjs(item.startTime).format('YYYY-MM-DD HH:mm:ss'),
|
||||
createTime: dayjs(item.createTime).format('YYYY-MM-DD HH:mm:ss'),
|
||||
}),
|
||||
rename
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue