fix(库存): OMS/WMS库存查询入库时间/更新时间只保留年月日,去掉时分秒

- 入库时间(createTime)/更新时间(updateTime)继承自全系统基类 BaseVOEntity,默认序列化带时分秒;库存查询导出复用 /list 接口,前端取 JSON 值直接进 Excel,导出后无法在 Excel 里修改格式
- 两个库存 PO 覆盖 getCreateTime/getUpdateTime 并收窄 @JsonFormat 为 yyyy-MM-dd,仅影响 OMS/WMS 库存查询的显示与导出,不改动 BaseVOEntity 全局行为
- 页面列表/详情回显同步变为纯年月日;排序仍按原始时间值,逻辑不变
This commit is contained in:
rcx
2026-09-03 18:00:52 +08:00
parent fee891dad0
commit 0eb47793a8
2 changed files with 30 additions and 0 deletions
@@ -232,4 +232,19 @@ public class ReservationMaterialInventoryPO extends MaterialBasePO {
@ApiModelProperty("LOT编号")
@Excel(name = "LOT编号")
private String lotNumber;
// 入库时间(createTime)/更新时间(updateTime)继承自 BaseVOEntity,默认带时分秒;
// 库存查询导出复用 /list 接口,前端取 JSON 值直接进 Excel,这里覆盖 getter 只保留年月日。
// 不改 BaseVOEntity(全系统基类,其他模块时间列仍需时分秒),仅收窄本 PO 的序列化格式(与 WMS 库存查询一致)
@Override
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
public Date getCreateTime() {
return super.getCreateTime();
}
@Override
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
public Date getUpdateTime() {
return super.getUpdateTime();
}
}
@@ -240,4 +240,19 @@ public class MaterialInventoryPO extends MaterialBasePO {
@ApiModelProperty("规格型号")
@Excel(name = "规格型号")
private String specificationModel;
// 入库时间(createTime)/更新时间(updateTime)继承自 BaseVOEntity,默认带时分秒;
// 库存查询导出复用 /list 接口,前端取 JSON 值直接进 Excel,这里覆盖 getter 只保留年月日。
// 不改 BaseVOEntity(全系统基类,其他模块时间列仍需时分秒),仅收窄本 PO 的序列化格式(与 OMS 库存查询一致)
@Override
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
public Date getCreateTime() {
return super.getCreateTime();
}
@Override
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
public Date getUpdateTime() {
return super.getUpdateTime();
}
}