liyong
2026-05-15 0578c6c76f13e367b5dc7d0882efe3c69ca4cb0e
src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -203,4 +203,20 @@
        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>