解决机构加盟-加盟/变更信息时 身份证生日如果是1号 显示、保存会减一天问题

This commit is contained in:
1378012178@qq.com 2025-10-15 16:37:14 +08:00
parent ecc8b4f875
commit bcbcf55ea0
2 changed files with 6 additions and 4 deletions

View File

@ -15,6 +15,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
/**
@ -60,9 +61,9 @@ public class OrgApplyInfoApiEntity implements Serializable {
/**民族*/
private String national;
/**出生日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy年MM月dd日")
@JsonFormat(pattern = "yyyy年MM月dd日")
@DateTimeFormat(pattern = "yyyy年MM月dd日")
private Date birthDate;
private LocalDate birthDate;
/**住址(身份证上)*/
private String idCardAddress;
/**身份证号*/

View File

@ -15,6 +15,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDate;
/**
* @Description: 机构加盟申请信息表
@ -106,10 +107,10 @@ public class OrgApplyInfo implements Serializable {
private java.lang.String national;
/**出生日期*/
@Excel(name = "出生日期", width = 20, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "出生日期")
private java.util.Date birthDate;
private LocalDate birthDate;
/**住址(身份证上)*/
@Excel(name = "住址(身份证上)", width = 15)
@ApiModelProperty(value = "住址(身份证上)")