| | |
| | | order by si.product_model_id, si.warehouse_info_id, si.batch_no, si.id |
| | | </select> |
| | | |
| | | <select id="selectUnqualifiedBatchNoQtyByProductModelIds" resultType="java.util.Map"> |
| | | select su.product_model_id as productModelId, |
| | | su.warehouse_info_id as warehouseId, |
| | | su.batch_no as batchNo, |
| | | su.qualitity as qty |
| | | from stock_uninventory su |
| | | where su.product_model_id in |
| | | <foreach collection="list" item="productModelId" separator="," open="(" close=")"> |
| | | #{productModelId} |
| | | </foreach> |
| | | and su.warehouse_info_id is not null |
| | | and su.batch_no is not null |
| | | and su.batch_no != '' |
| | | order by su.product_model_id, su.warehouse_info_id, su.batch_no, su.id |
| | | </select> |
| | | |
| | | </mapper> |