| | |
| | | left join base_line_side_warehouse m2 on m1.warehouse_id = m2.id |
| | | |
| | | </select> |
| | | <select id="queryMaterialInventory" resultType="org.jeecg.modules.lsw.vo.MaterialInventoryVO"> |
| | | select t2.material_number, |
| | | t2.material_name, |
| | | t2.material_category, |
| | | t1.batch_number, |
| | | t1.quantity |
| | | from lsw_material_inventory t1 |
| | | left join lsw_material t2 on t1.material_id = t2.id |
| | | where t1.inventory_status = 'NORMAL' |
| | | and t1.warehouse_id = #{warehouseId} |
| | | and t2.material_category in |
| | | <foreach collection="materialCategoryList" item="item" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |