|
|
@ -28,7 +28,7 @@
|
|
|
|
AND purchaseType = #{purchaseType}
|
|
|
|
AND purchaseType = #{purchaseType}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
<if test="batchNo != '' and batchNo != null and batchNo!='empty'">
|
|
|
|
<if test="batchNo != '' and batchNo != null and batchNo != 'empty'">
|
|
|
|
AND batchNo = #{batchNo}
|
|
|
|
AND batchNo = #{batchNo}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="batchNo == 'empty'">
|
|
|
|
<if test="batchNo == 'empty'">
|
|
|
@ -41,7 +41,7 @@
|
|
|
|
AND supId = #{supId}
|
|
|
|
AND supId = #{supId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="code != '' and code != null">
|
|
|
|
<if test="code != '' and code != null">
|
|
|
|
AND code = #{code}
|
|
|
|
AND originCode = #{code}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="originCode != '' and originCode != null">
|
|
|
|
<if test="originCode != '' and originCode != null">
|
|
|
|
AND originCode = #{originCode}
|
|
|
|
AND originCode = #{originCode}
|
|
|
@ -52,9 +52,21 @@
|
|
|
|
<if test="invWarehouseCode != '' and invWarehouseCode != null">
|
|
|
|
<if test="invWarehouseCode != '' and invWarehouseCode != null">
|
|
|
|
AND invWarehouseCode = #{invWarehouseCode}
|
|
|
|
AND invWarehouseCode = #{invWarehouseCode}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="invSpaceCode != null and invSpaceCode != ''">
|
|
|
|
|
|
|
|
AND invSpaceCode = #{invSpaceCode}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="orderIdFk != null and orderIdFk != ''">
|
|
|
|
<if test="orderIdFk != null and orderIdFk != ''">
|
|
|
|
AND orderIdFk = #{orderIdFk}
|
|
|
|
AND orderIdFk = #{orderIdFk}
|
|
|
|
</if>
|
|
|
|
</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>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|