在删除工艺路线时同时删除对应的工序、产品、BOM配置。

This commit is contained in:
JinLu.Yin
2022-09-12 22:06:48 +08:00
parent 1171380bfc
commit e0576e3514
14 changed files with 130 additions and 0 deletions

View File

@@ -188,4 +188,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{recordId}
</foreach>
</delete>
<delete id="deleteByRouteId" parameterType="Long">
delete from pro_route_process where route_id = #{routeId}
</delete>
</mapper>

View File

@@ -136,4 +136,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{recordId}
</foreach>
</delete>
<delete id="deleteByRouteId" parameterType="Long">
delete from pro_route_product_bom where route_id = #{routeId}
</delete>
<delete id="deleteByRouteIdAndProductId" parameterType="ProRouteProductBom">
delete from pro_route_product_bom where route_id = #{routeId} and product_id = #{productId}
</delete>
</mapper>

View File

@@ -135,4 +135,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{recordId}
</foreach>
</delete>
<delete id="deleteByRouteId" parameterType="Long">
delete from pro_route_product where route_id = #{routeId}
</delete>
</mapper>