diff --git a/mhd_oms/src/main/resources/mapper/reservationInventoryAdjustmentRecord/InventoryAdjustmentRecordMapper.xml b/mhd_oms/src/main/resources/mapper/reservationInventoryAdjustmentRecord/InventoryAdjustmentRecordMapper.xml index aace2a765..1e4cecbe1 100644 --- a/mhd_oms/src/main/resources/mapper/reservationInventoryAdjustmentRecord/InventoryAdjustmentRecordMapper.xml +++ b/mhd_oms/src/main/resources/mapper/reservationInventoryAdjustmentRecord/InventoryAdjustmentRecordMapper.xml @@ -196,10 +196,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and a.create_by_name like concat('%', #{createByName}, '%') - AND DATE(b.expiry_date) = #{expiryDate} + AND TO_CHAR(b.expiry_date, 'yyyy-MM-dd') = #{expiryDate} - AND DATE(b.production_date) = #{productionDate} + AND TO_CHAR(b.production_date, 'yyyy-MM-dd') = #{productionDate} and a.update_by_name like concat('%', #{updateByName}, '%') diff --git a/mhd_wms/src/main/resources/mapper/inventoryAdjustmentRecord/InventoryAdjustmentRecordMapper.xml b/mhd_wms/src/main/resources/mapper/inventoryAdjustmentRecord/InventoryAdjustmentRecordMapper.xml index 0c9a73edf..cd6ca9eb0 100644 --- a/mhd_wms/src/main/resources/mapper/inventoryAdjustmentRecord/InventoryAdjustmentRecordMapper.xml +++ b/mhd_wms/src/main/resources/mapper/inventoryAdjustmentRecord/InventoryAdjustmentRecordMapper.xml @@ -124,10 +124,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and b.lot_number = #{lotNumber} - AND DATE(b.expiry_date) = #{expiryDate} + AND TO_CHAR(b.expiry_date, 'yyyy-MM-dd') = #{expiryDate} - AND DATE(b.production_date) = #{productionDate} + AND TO_CHAR(b.production_date, 'yyyy-MM-dd') = #{productionDate} and a.shipper_id = #{shipperId}