feat(WmsDeliveryPlanBo): 报表接口代码支持

- 为planDate字段添加@JsonFormat注解,设置日期格式为yyyy-MM-dd
- 为planDate字段添加@DateTimeFormat注解,设置日期格式为yyyy-MM-dd
- 确保计划日期在序列化和反序列化时保持统一的格式
This commit is contained in:
2026-01-09 18:26:58 +08:00
parent 0945d2b900
commit 14b0fe51e4
3 changed files with 30 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import java.util.Date;
import com.klp.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
/**
* 钢卷待操作业务对象 wms_coil_pending_action
@@ -96,5 +97,14 @@ public class WmsCoilPendingActionBo extends BaseEntity {
*/
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSX", timezone = "GMT+8")
private Date completeTime;
//开始时间和结束时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
}