From cff5b58687d9986a10e0fc8425f4c1a0da79b756 Mon Sep 17 00:00:00 2001 From: zelian_wu Date: Mon, 24 Jun 2024 14:12:50 +0800 Subject: [PATCH] 2024/06/17 --- .../com/spring/modules/shipment/entity/Shipment.java | 4 ++++ .../resources/mapper/shipment/ShipmentDetailMapper.xml | 9 +-------- src/main/resources/mapper/shipment/ShipmentMapper.xml | 6 +++--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/spring/modules/shipment/entity/Shipment.java b/src/main/java/com/spring/modules/shipment/entity/Shipment.java index 44a7aa4..957def3 100644 --- a/src/main/java/com/spring/modules/shipment/entity/Shipment.java +++ b/src/main/java/com/spring/modules/shipment/entity/Shipment.java @@ -22,4 +22,8 @@ public class Shipment { @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date shipDate; + + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date createDate; } diff --git a/src/main/resources/mapper/shipment/ShipmentDetailMapper.xml b/src/main/resources/mapper/shipment/ShipmentDetailMapper.xml index 9094d29..1593154 100644 --- a/src/main/resources/mapper/shipment/ShipmentDetailMapper.xml +++ b/src/main/resources/mapper/shipment/ShipmentDetailMapper.xml @@ -3,13 +3,9 @@ ifs.shipment_id, - ifs.site, ifs.part_no, - ifs.part_desc, ifs.sale_qty, - ifs.order_ref1, - ifs.order_ref2, - ifs.order_ref3 + ifs.lot_batch_no select from v_ifs_shipment ifs left join shipment_handle sh on ifs.shipment_id = sh.shipment_id and ifs.site = sh.site - and sh.create_date is null + and ifs.site = #{site} @@ -30,7 +30,7 @@ select from v_ifs_shipment ifs left join shipment_handle sh on ifs.shipment_id = sh.shipment_id and ifs.site = sh.site - and sh.create_date is null + and ifs.site = #{params.site}