feat: 推荐采购加返回字段:需求库存在途
This commit is contained in:
@@ -31,5 +31,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
<select id="getByRawMaterialIdAndOnTheWay" resultType="java.math.BigDecimal">
|
||||
select sum(wpd.quantity)
|
||||
from wms_purchase_plan_detail wpd
|
||||
where wpd.raw_material_id = #{rawMaterialId}
|
||||
and wpd.status = 1
|
||||
and wpd.del_flag = 0
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user