Commit 6a5c3473 by levphon

工单导出

1 parent c1b6bbbd
...@@ -2,9 +2,8 @@ package cn.com.glsx.admin.modules.model.export; ...@@ -2,9 +2,8 @@ package cn.com.glsx.admin.modules.model.export;
import com.alibaba.excel.annotation.ExcelIgnore; import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat; import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
...@@ -30,8 +29,7 @@ public class WorkOrderExport { ...@@ -30,8 +29,7 @@ public class WorkOrderExport {
private String vin; private String vin;
@ExcelProperty(value = "期望安装日期", index = 5) @ExcelProperty(value = "期望安装日期", index = 5)
@JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8") @DateTimeFormat(value = "yyyy/MM/dd")
@DateTimeFormat(pattern = "yyyy/MM/dd")
private Date serviceTime; private Date serviceTime;
@ExcelProperty(value = "期望安装时间", index = 6) @ExcelProperty(value = "期望安装时间", index = 6)
...@@ -62,7 +60,7 @@ public class WorkOrderExport { ...@@ -62,7 +60,7 @@ public class WorkOrderExport {
private String createdBy; private String createdBy;
@ExcelProperty(value = "创建时间", index = 11) @ExcelProperty(value = "创建时间", index = 11)
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
private String createdDate; private String createdDate;
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!