fix:产品物料BOM组成新增时,校验整体是否存在闭环。

This commit is contained in:
zhangxuanming
2025-01-15 15:37:28 +08:00
parent 12e74e3520
commit 1936ede088
6 changed files with 136 additions and 24 deletions

View File

@@ -49,7 +49,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectMdProductBomVo"/>
where bom_id = #{bomId}
</select>
<select id="selectAll" resultType="com.ktg.mes.md.domain.MdProductBom" resultMap="MdProductBomResult">
<include refid="selectMdProductBomVo"/>
</select>
<insert id="insertMdProductBom" parameterType="MdProductBom" useGeneratedKeys="true" keyProperty="bomId">
insert into md_product_bom
<trim prefix="(" suffix=")" suffixOverrides=",">