mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 优化统一请假日期字段格式处理
This commit is contained in:
		@@ -10,6 +10,7 @@ import org.dromara.common.core.validate.AddGroup;
 | 
			
		||||
import org.dromara.common.core.validate.EditGroup;
 | 
			
		||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
 | 
			
		||||
import org.dromara.workflow.domain.TestLeave;
 | 
			
		||||
import org.springframework.format.annotation.DateTimeFormat;
 | 
			
		||||
 | 
			
		||||
import java.util.Date;
 | 
			
		||||
 | 
			
		||||
@@ -40,6 +41,7 @@ public class TestLeaveBo extends BaseEntity {
 | 
			
		||||
     * 开始时间
 | 
			
		||||
     */
 | 
			
		||||
    @NotNull(message = "开始时间不能为空", groups = {AddGroup.class, EditGroup.class})
 | 
			
		||||
    @DateTimeFormat(pattern = "yyyy-MM-dd")
 | 
			
		||||
    @JsonFormat(pattern = "yyyy-MM-dd")
 | 
			
		||||
    private Date startDate;
 | 
			
		||||
 | 
			
		||||
@@ -47,6 +49,7 @@ public class TestLeaveBo extends BaseEntity {
 | 
			
		||||
     * 结束时间
 | 
			
		||||
     */
 | 
			
		||||
    @NotNull(message = "结束时间不能为空", groups = {AddGroup.class, EditGroup.class})
 | 
			
		||||
    @DateTimeFormat(pattern = "yyyy-MM-dd")
 | 
			
		||||
    @JsonFormat(pattern = "yyyy-MM-dd")
 | 
			
		||||
    private Date endDate;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,7 @@ package org.dromara.workflow.domain.vo;
 | 
			
		||||
 | 
			
		||||
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
 | 
			
		||||
import cn.idev.excel.annotation.ExcelProperty;
 | 
			
		||||
import com.fasterxml.jackson.annotation.JsonFormat;
 | 
			
		||||
import io.github.linpeilie.annotations.AutoMapper;
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
import org.dromara.workflow.domain.TestLeave;
 | 
			
		||||
@@ -41,12 +42,14 @@ public class TestLeaveVo implements Serializable {
 | 
			
		||||
     * 开始时间
 | 
			
		||||
     */
 | 
			
		||||
    @ExcelProperty(value = "开始时间")
 | 
			
		||||
    @JsonFormat(pattern = "yyyy-MM-dd")
 | 
			
		||||
    private Date startDate;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 结束时间
 | 
			
		||||
     */
 | 
			
		||||
    @ExcelProperty(value = "结束时间")
 | 
			
		||||
    @JsonFormat(pattern = "yyyy-MM-dd")
 | 
			
		||||
    private Date endDate;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user