diff --git a/mhd_oms/src/main/resources/mapper/reservationStockInOrder/ReservationStockInOrderMapper.xml b/mhd_oms/src/main/resources/mapper/reservationStockInOrder/ReservationStockInOrderMapper.xml index bab114ef5..570183f2b 100644 --- a/mhd_oms/src/main/resources/mapper/reservationStockInOrder/ReservationStockInOrderMapper.xml +++ b/mhd_oms/src/main/resources/mapper/reservationStockInOrder/ReservationStockInOrderMapper.xml @@ -419,7 +419,7 @@ and a.create_time >= #{createTimeStart} - and a.create_time date_add(#{createTimeEnd}, interval 1 day) + and a.create_time #{createTimeEnd} + INTERVAL '1' DAY and PUSH_TIME =]]> #{pushTimeStart} @@ -446,13 +446,13 @@ and a.storage_time >= #{storageTimeStart} - and a.storage_time date_add(#{storageTimeEnd}, interval 1 day) + and a.storage_time #{storageTimeEnd} + INTERVAL '1' DAY and a.expect_time >= #{expectTimeStart} - and a.expect_time date_add(#{expectTimeEnd}, interval 1 day) + and a.expect_time #{expectTimeEnd} + INTERVAL '1' DAY and a.issue_time is not null diff --git a/mhd_oms/src/main/resources/mapper/reservationStockOutOrder/ReservationStockOutOrderMapper.xml b/mhd_oms/src/main/resources/mapper/reservationStockOutOrder/ReservationStockOutOrderMapper.xml index 0a8df156d..eabc30186 100644 --- a/mhd_oms/src/main/resources/mapper/reservationStockOutOrder/ReservationStockOutOrderMapper.xml +++ b/mhd_oms/src/main/resources/mapper/reservationStockOutOrder/ReservationStockOutOrderMapper.xml @@ -340,13 +340,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and a.create_time >= #{createTimeStart} - and a.create_time date_add(#{createTimeEnd}, interval 1 day) + and a.create_time #{createTimeEnd} + INTERVAL '1' DAY and a.outbound_date >= #{outboundDateStart} - and a.outbound_date date_add(#{outboundDateEnd}, interval 1 day) + and a.outbound_date #{outboundDateEnd} + INTERVAL '1' DAY and a.organization_id = #{organizationId}