懒羊羊
2024-01-30 c346aba6d0196673d43fb81610ec6f0ca9cddbbd
jcdm-main/src/main/resources/mapper/bs/formulaChild/BsFormulaChildInfoMapper.xml
@@ -164,11 +164,22 @@
        ORDER BY step_sort ASC
    </select>
    <select id="releaseCheck" resultMap="BsFormulaChildInfoResult">
    <select id="releaseCheck" resultMap="BsFormulaChildInfoResult" parameterType="BsFormulaChildInfo">
        SELECT
            *
        FROM
            bs_formula_child_info
        WHERE NOT results = 'OK'
        WHERE
            NOT results = 'OK'
          AND product_code = #{productCode}
          AND processes_code = #{processesCode};
    </select>
    <update id="workpieceRelease" parameterType="BsFormulaChildInfo">
        UPDATE bs_formula_child_info
        SET results = ''
        WHERE
            product_code = #{productCode}
          AND processes_code = #{processesCode};
    </update>
</mapper>