给商品库存流水接口增加查询字段
This commit is contained in:
@@ -170,6 +170,19 @@
|
||||
<if test="sku != null and sku !=''">
|
||||
and di.sku = #{sku}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber !=''">
|
||||
and di.batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="number != null and number !=''">
|
||||
<bind name="bindNumber" value="'%'+number+'%'"/>
|
||||
and dh.number like #{bindNumber}
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime !=''">
|
||||
and dh.oper_time >= #{beginTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime !=''">
|
||||
and dh.oper_time <= #{endTime}
|
||||
</if>
|
||||
and di.material_id = #{mId}
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
union all
|
||||
@@ -191,6 +204,19 @@
|
||||
<if test="sku != null and sku !=''">
|
||||
and di.sku = #{sku}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber !=''">
|
||||
and di.batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="number != null and number !=''">
|
||||
<bind name="bindNumber" value="'%'+number+'%'"/>
|
||||
and dh.number like #{bindNumber}
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime !=''">
|
||||
and dh.oper_time >= #{beginTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime !=''">
|
||||
and dh.oper_time <= #{endTime}
|
||||
</if>
|
||||
and di.material_id = #{mId}
|
||||
and ifnull(dh.delete_flag,'0') !='1') tb
|
||||
order by tb.oTime desc
|
||||
@@ -215,6 +241,19 @@
|
||||
<if test="sku != null and sku !=''">
|
||||
and di.sku = #{sku}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber !=''">
|
||||
and di.batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="number != null and number !=''">
|
||||
<bind name="bindNumber" value="'%'+number+'%'"/>
|
||||
and dh.number like #{bindNumber}
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime !=''">
|
||||
and dh.oper_time >= #{beginTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime !=''">
|
||||
and dh.oper_time <= #{endTime}
|
||||
</if>
|
||||
and di.material_id =#{mId}
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
union all
|
||||
@@ -230,6 +269,19 @@
|
||||
<if test="sku != null and sku !=''">
|
||||
and di.sku = #{sku}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber !=''">
|
||||
and di.batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="number != null and number !=''">
|
||||
<bind name="bindNumber" value="'%'+number+'%'"/>
|
||||
and dh.number like #{bindNumber}
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime !=''">
|
||||
and dh.oper_time >= #{beginTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime !=''">
|
||||
and dh.oper_time <= #{endTime}
|
||||
</if>
|
||||
and di.material_id = #{mId}
|
||||
and ifnull(dh.delete_flag,'0') !='1') tb
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user