给单据增加查询条件
This commit is contained in:
@@ -74,6 +74,15 @@
|
||||
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
||||
and (m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
|
||||
</if>
|
||||
<if test="organId != null">
|
||||
and dh.organ_id=#{organId}
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
and dh.creator=#{creator}
|
||||
</if>
|
||||
<if test="depotId != null">
|
||||
and di.depot_id=#{depotId}
|
||||
</if>
|
||||
<if test="depotArray != null and depotArray !=''">
|
||||
and di.depot_id in (
|
||||
<foreach collection="depotArray" item="depotId" separator=",">
|
||||
@@ -124,6 +133,15 @@
|
||||
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
||||
and (m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
|
||||
</if>
|
||||
<if test="organId != null">
|
||||
and dh.organ_id=#{organId}
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
and dh.creator=#{creator}
|
||||
</if>
|
||||
<if test="depotId != null">
|
||||
and di.depot_id=#{depotId}
|
||||
</if>
|
||||
<if test="depotArray != null and depotArray !=''">
|
||||
and di.depot_id in (
|
||||
<foreach collection="depotArray" item="depotId" separator=",">
|
||||
|
||||
Reference in New Issue
Block a user