10-29-LocalDate修改
This commit is contained in:
@ -10,6 +10,7 @@ import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
@ -60,9 +61,9 @@ public class XzdContractDetails extends BaseEntity {
|
||||
/**
|
||||
* 单据日期
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date documentDate;
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd")
|
||||
// @DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate documentDate;
|
||||
|
||||
/**
|
||||
* 项目
|
||||
|
||||
@ -14,6 +14,7 @@ import org.dromara.xzd.domain.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@ -64,10 +65,10 @@ public class XzdContractDetailsBo extends BaseEntity {
|
||||
/**
|
||||
* 单据日期
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
// @DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@NotNull(message = "单据日期不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date documentDate;
|
||||
private LocalDate documentDate;
|
||||
|
||||
/**
|
||||
* 项目
|
||||
|
||||
Reference in New Issue
Block a user