|
@@ -467,8 +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>
|
|
|
|
|
|
+ where wsr.WAREHOUSE_ID = #{warehouseId}
|
|
<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>
|
|
@@ -476,7 +475,6 @@
|
|
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">
|