|
|
|
@ -78,6 +78,12 @@ |
|
|
|
<if test="query.batchNo != null and query.batchNo != ''"> |
|
|
|
AND a.batch_no LIKE '%' + #{query.batchNo} + '%' |
|
|
|
</if> |
|
|
|
<if test="query.warehouseIdList != null and query.warehouseIdList.size() > 0"> |
|
|
|
AND a.warehouse_id IN |
|
|
|
<foreach item="item" collection="query.warehouseIdList" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="query.startDate != null and query.startDate != ''"> |
|
|
|
AND a.transaction_date >= #{query.startDate} |
|
|
|
</if> |
|
|
|
@ -140,6 +146,12 @@ |
|
|
|
<if test="query.batchNo != null and query.batchNo != ''"> |
|
|
|
AND a.batch_no LIKE '%' + #{query.batchNo} + '%' |
|
|
|
</if> |
|
|
|
<if test="query.warehouseIdList != null and query.warehouseIdList.size() > 0"> |
|
|
|
AND a.warehouse_id IN |
|
|
|
<foreach item="item" collection="query.warehouseIdList" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="query.startDate != null and query.startDate != ''"> |
|
|
|
AND a.transaction_date >= #{query.startDate} |
|
|
|
</if> |
|
|
|
|