通过生产报工更新生产任务和生产工单的进度;进行物料的消耗;进行产品的产出。

This commit is contained in:
DESKTOP-J7ED0MB\yinjinlu
2022-10-09 18:27:39 +08:00
parent 6559979ca8
commit 2d300808a7
19 changed files with 406 additions and 16 deletions

View File

@@ -40,6 +40,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where route_id = #{routeId}
</select>
<select id="getRouteByProductId" parameterType="Long" resultMap="ProRouteResult">
select r.*
from pro_route r
left join pro_route_product p
on p.route_id = r.route_id
where r.enable_flag = 'Y'
and p.item_id = #{itemId}
</select>
<select id="checkRouteCodeUnique" parameterType="ProRoute" resultMap="ProRouteResult">
<include refid="selectProRouteVo"/>
where route_code = #{routeCode} limit 1