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}