fix(测试计划): 报告列表创建时间展示有误

--bug=1041382 --user=宋昌昌 【测试计划】报告-创建时间-创建时间一直显示的是当前的实时时间 https://www.tapd.cn/55049933/s/1522820
This commit is contained in:
song-cc-rock 2024-05-29 14:02:51 +08:00 committed by 刘瑞斌
parent 8469f47f43
commit 0da03af253
2 changed files with 4 additions and 4 deletions

View File

@ -375,7 +375,7 @@ public class TestPlanReportService {
public TestPlanReportDetailResponse edit(TestPlanReportDetailEditRequest request, String currentUser) { public TestPlanReportDetailResponse edit(TestPlanReportDetailEditRequest request, String currentUser) {
TestPlanReport planReport = checkReport(request.getId()); TestPlanReport planReport = checkReport(request.getId());
TestPlanReportSummary reportSummary = new TestPlanReportSummary(); TestPlanReportSummary reportSummary = new TestPlanReportSummary();
reportSummary.setSummary(request.getSummary()); reportSummary.setSummary(StringUtils.isBlank(request.getSummary()) ? StringUtils.EMPTY : request.getSummary());
TestPlanReportSummaryExample example = new TestPlanReportSummaryExample(); TestPlanReportSummaryExample example = new TestPlanReportSummaryExample();
example.createCriteria().andTestPlanReportIdEqualTo(planReport.getId()); example.createCriteria().andTestPlanReportIdEqualTo(planReport.getId());
testPlanReportSummaryMapper.updateByExampleSelective(reportSummary, example); testPlanReportSummaryMapper.updateByExampleSelective(reportSummary, example);

View File

@ -254,8 +254,8 @@
}, },
{ {
title: 'report.operating', title: 'report.operating',
dataIndex: 'startTime', dataIndex: 'createTime',
slotName: 'startTime', slotName: 'createTime',
width: 180, width: 180,
sortable: { sortable: {
sortDirections: ['ascend', 'descend'], sortDirections: ['ascend', 'descend'],
@ -299,7 +299,7 @@
}, },
(item) => ({ (item) => ({
...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 rename
); );