格式化代码

This commit is contained in:
duwenyuan 2026-01-05 19:33:41 +08:00
parent 9e1fd90578
commit 85b07d5369
7 changed files with 68 additions and 68 deletions

View File

@ -113,5 +113,4 @@ public class GardsNuclearFuelFacilities implements Serializable {
private Date moddate;
}

View File

@ -154,7 +154,7 @@ public class GardsNuclearReactors implements Serializable {
/**
* 建设开始日期
*/
@Excel(name = "建设开始日期", width = 20, height = 20, orderNum = "17")
@Excel(name = "建设开始日期", format = "yyyy-MM-dd", width = 20, height = 20, orderNum = "17")
@TableField(value = "CONSTRUCTION_START_DATE")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ -163,7 +163,7 @@ public class GardsNuclearReactors implements Serializable {
/**
* 首次临界日期
*/
@Excel(name = "首次临界日期", width = 20, height = 20, orderNum = "18")
@Excel(name = "首次临界日期", format = "yyyy-MM-dd", width = 20, height = 20, orderNum = "18")
@TableField(value = "FIRST_CRITICALITY_DATE")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ -172,7 +172,7 @@ public class GardsNuclearReactors implements Serializable {
/**
* 首次电网连接日期
*/
@Excel(name = "首次电网连接日期", width = 20, height = 20, orderNum = "19")
@Excel(name = "首次电网连接日期", format = "yyyy-MM-dd", width = 20, height = 20, orderNum = "19")
@TableField(value = "FIRST_GRID_CONNECTION_DATE")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ -181,7 +181,7 @@ public class GardsNuclearReactors implements Serializable {
/**
* 商业运营日期
*/
@Excel(name = "商业运营日期", width = 20, height = 20, orderNum = "20")
@Excel(name = "商业运营日期", format = "yyyy-MM-dd", width = 20, height = 20, orderNum = "20")
@TableField(value = "COMMERCIAL_OPERATION_DATE")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")

View File

@ -51,15 +51,15 @@ public class GardsNuclearReleaseRecords implements Serializable {
/**
* 开始时间
*/
@Excel(name = "开始时间", width = 20, height = 20, orderNum = "3")
@Excel(name = "开始时间", format = "yyyy-MM-dd", width = 20, height = 20, orderNum = "3")
@TableField(value = "START_TIME")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date startTime;
/**
* 结束时间
*/
@Excel(name = "结束时间", width = 20, height = 20, orderNum = "4")
@Excel(name = "结束时间", format = "yyyy-MM-dd", width = 20, height = 20, orderNum = "4")
@TableField(value = "END_TIME")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")

View File

@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;