Files
klp-oa/klp-wms/src/main/java/com/klp/domain/bo/WmsDeliveryPlanBo.java
Joshi 5ac35abc50 feat(WmsDeliveryPlanBo): 添加计划日期字段格式化注解
- 为planDate字段添加@JsonFormat注解,设置日期格式为yyyy-MM-dd
- 为planDate字段添加@DateTimeFormat注解,设置日期格式为yyyy-MM-dd
- 确保计划日期在序列化和反序列化时保持统一的格式
2026-01-08 14:01:28 +08:00

64 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.domain.bo;
import com.klp.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
/**
* 发货计划业务对象 wms_delivery_plan
*
* @author klp
* @date 2025-11-25
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WmsDeliveryPlanBo extends BaseEntity {
/**
* 计划唯一ID
*/
private Long planId;
/**
* 发货计划名称格式YYYY-MM-DD-序号如2025-11-25-001
*/
private String planName;
/**
* 计划日期
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date planDate;
/**
* 计划类型
*/
private Integer planType;
/**
* 备注
*/
private String remark;
// 钢卷集合
private String coil;
//-- 1. 新增审核状态字段(核心)
private Integer auditStatus;
//-- 2. 新增审核人字段
private String auditBy;
//-- 3. 新增审核时间字段
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date auditTime;
//关联订单id
private Long orderId;
}