新增接口,根据订单推荐采购计划
This commit is contained in:
@@ -13,5 +13,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="listByProductId" resultType="com.klp.domain.WmsProductBom">
|
||||
SELECT bom_id, product_id, raw_material_id, quantity, unit, remark
|
||||
FROM wms_product_bom
|
||||
WHERE product_id = #{productId}
|
||||
and del_flag = 0
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -20,5 +20,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getStockByItemId" resultType="java.math.BigDecimal">
|
||||
select sum(quantity) as quantity from wms_stock
|
||||
where item_id = #{rawMaterialId} and item_type = 'raw_material' and del_flag = 0
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user