|
@@ -467,7 +467,7 @@
|
|
on rmt.material_type_id=rm.material_type_id
|
|
on rmt.material_type_id=rm.material_type_id
|
|
join rms_warehouse rw
|
|
join rms_warehouse rw
|
|
on rw.warehouse_id=wsr.warehouse_id
|
|
on rw.warehouse_id=wsr.warehouse_id
|
|
- where wsr.WAREHOUSE_ID = #{warehouseId}
|
|
|
|
|
|
+ <where>
|
|
<if test="oneDate != null">
|
|
<if test="oneDate != null">
|
|
and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= wsr.INSERT_TIME
|
|
and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= wsr.INSERT_TIME
|
|
</if>
|
|
</if>
|
|
@@ -475,6 +475,7 @@
|
|
and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= wsr.INSERT_TIME
|
|
and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= wsr.INSERT_TIME
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= wsr.INSERT_TIME
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= wsr.INSERT_TIME
|
|
</if>
|
|
</if>
|
|
|
|
+ </where>
|
|
)
|
|
)
|
|
<where>
|
|
<where>
|
|
<if test="warehouse_name != null">
|
|
<if test="warehouse_name != null">
|