|
@@ -1,5 +1,6 @@
|
|
|
package com.simuwang.base.pojo.dto.report;
|
|
|
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
import com.simuwang.base.pojo.dos.report.ReportBaseInfoDO;
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
@@ -29,7 +30,7 @@ public class ReportBaseInfoDTO extends BaseReportDTO<ReportBaseInfoDO> {
|
|
|
public ReportBaseInfoDO toEntity() {
|
|
|
ReportBaseInfoDO entity = new ReportBaseInfoDO();
|
|
|
entity.setFileId(this.getFileId());
|
|
|
- entity.setReportDate(this.reportDate);
|
|
|
+ entity.setReportDate(this.reportDate == null ? null : DateUtil.parseDate(this.reportDate));
|
|
|
entity.setReportName(this.reportName);
|
|
|
entity.setReportType(this.reportType);
|
|
|
return entity;
|