修改bug

zhairh^2
wangwei 3 years ago
parent 70347afc3d
commit 67a558e3cb

@ -28,7 +28,7 @@
AND purchaseType = #{purchaseType}
</if>
<if test="batchNo != '' and batchNo != null and batchNo!='empty'">
<if test="batchNo != '' and batchNo != null and batchNo != 'empty'">
AND batchNo = #{batchNo}
</if>
<if test="batchNo == 'empty'">
@ -41,7 +41,7 @@
AND supId = #{supId}
</if>
<if test="code != '' and code != null">
AND code = #{code}
AND originCode = #{code}
</if>
<if test="originCode != '' and originCode != null">
AND originCode = #{originCode}
@ -52,9 +52,21 @@
<if test="invWarehouseCode != '' and invWarehouseCode != null">
AND invWarehouseCode = #{invWarehouseCode}
</if>
<if test="invSpaceCode != null and invSpaceCode != ''">
AND invSpaceCode = #{invSpaceCode}
</if>
<if test="orderIdFk != null and orderIdFk != ''">
AND orderIdFk = #{orderIdFk}
</if>
<if test="productIdList != null and productIdList.size() != 0">
AND productIdFk in
<foreach collection="productIdList" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="updateTime != null and updateTime != ''">
AND updateTime <![CDATA[ <= ]]> #{updateTime}
</if>
</where>
</select>

Loading…
Cancel
Save