Browse Source

导出时间错乱问题

master
sunyuchao 3 years ago
parent
commit
304a7389ee
  1. 2
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcTripReportRecordDTO.java
  2. 8
      epmet-user/epmet-user-server/src/main/java/com/epmet/excel/IcYtTripReportRecordExportExcel.java
  3. 2
      epmet-user/epmet-user-server/src/main/resources/mapper/IcTripReportRecordDao.xml

2
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcTripReportRecordDTO.java

@ -542,7 +542,7 @@ public class IcTripReportRecordDTO implements Serializable {
*/
@ExcelIgnore
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date leaveTheRiskAreaTime;
private String leaveTheRiskAreaTime;
/**
* 是否携带48小时核算证明 /烟台
*/

8
epmet-user/epmet-user-server/src/main/java/com/epmet/excel/IcYtTripReportRecordExportExcel.java

@ -6,6 +6,7 @@ import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
@ -54,19 +55,20 @@ public class IcYtTripReportRecordExportExcel implements Serializable {
*/
@ColumnWidth(30)
@ExcelProperty(value = "来自地区")
private String comeAreaFull;
private String sourceAddress;
/**
* 来自地区详细地址
*/
@ColumnWidth(30)
@ExcelProperty(value = "来自地区详细地址")
private String sourceDetailAddress;
private String comeAreaFull;
/**
* 来到本地时间
*/
@ColumnWidth(20)
@ExcelProperty(value = "来到本地时间")
@JsonFormat(pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private String arriveTime;
/**
@ -184,7 +186,7 @@ public class IcYtTripReportRecordExportExcel implements Serializable {
@ColumnWidth(20)
@ExcelProperty(value = "离开本地时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private String leaveDate;
private String leaveTheRiskAreaTime;
/**
* 备注
*/

2
epmet-user/epmet-user-server/src/main/resources/mapper/IcTripReportRecordDao.xml

@ -44,7 +44,7 @@
ELSE IFNULL(cs.REAL_NAME, '无')
END
) AS createdByName,
CONCAT(r.via_province,r.via_city,r.via_city) via
CONCAT(r.via_province,r.via_city,r.via_county) via
FROM ic_trip_report_record r
LEFT JOIN (
select * from ic_epidemic_special_attention GROUP BY id_card ORDER BY created_time DESC

Loading…
Cancel
Save