@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where
x.material_id = #{entity.materialId}
</select>
<select id= "listInventoryAlarm" resultType= "org.dromara.wms.domain.vo.WmsInventoryVo"
parameterType="org.dromara.wms.domain.bo.WmsInventoryBo">
SELECT
@ -26,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
MAX(b.max_stock_amount) max_stock_amount,
MAX(c.warehouse_code) warehouse_code,
MAX(b.material_code) material_code,
MAX(b.material_name) material_name,
MAX(x.lock_state) lock_state,
MAX(x.material_categories) material_categories,
MAX(x.location_code) locationCode,
@ -33,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
MAX(bmc.material_category_name) material_category_name
FROM
hwmom.dbo.wms_inventory x
left join base_material_info b on
left join base_material_info_copy1 b on
x.material_id = b.material_id
left join wms_base_warehouse c on
x.warehouse_id = c.warehouse_id
@ -53,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
x.warehouse_id ,
x.material_id
</select>
<select id= "selectInventoryMaterialInfoList" resultType= "org.dromara.wms.domain.vo.WmsInventoryVo"
parameterType="org.dromara.wms.domain.bo.WmsInventoryBo">
SELECT
@ -62,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SUM(x.inventory_qty) inventory_qty
FROM
hwmom.dbo.wms_inventory x
left join base_material_info b on
left join base_material_info_copy1 b on
x.material_id = b.material_id
<where >
<!-- <if test="entity.materialId != null ">and x.material_id = #{entity.materialId}</if> -->
@ -77,6 +80,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
group by
x.material_id
</select>
<resultMap id= "InventoryVoMap" type= "org.dromara.wms.domain.vo.WmsInventoryVo" >
<result property= "inventoryId" column= "obj_id" />
<result property= "batchCode" column= "card_no" />
@ -85,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property= "inventoryQty" column= "storage_num" />
<result property= "materialCode" column= "material_code" />
</resultMap>
<select id= "selectSemiInventoryListByLocation" resultMap= "InventoryVoMap" >
select card_no,
material_id,