| | |
| | | <result property="spareField4" column="spare_field_4" /> |
| | | <result property="collectData" column="collect_data" /> |
| | | <result property="results" column="results" /> |
| | | <result property="counts" column="counts" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectBsFormulaChildInfoVo"> |
| | |
| | | <if test="collectData != null and collectData != ''"> and collect_data = #{collectData}</if> |
| | | <if test="results != null and result != ''"> and result = #{results}</if> |
| | | <if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if> |
| | | <if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if> |
| | | <if test="spareField4 != null and spareField4 != ''"> and spare_field_4 = #{spareField4}</if> |
| | | |
| | | |
| | | |
| | | </where> |
| | | ORDER BY step_sort ASC |
| | |
| | | ORDER BY step_sort ASC |
| | | </select> |
| | | |
| | | <select id="releaseCheck" resultMap="BsFormulaChildInfoResult" parameterType="BsFormulaChildInfo"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | bs_formula_child_info |
| | | WHERE |
| | | NOT results = 'OK' |
| | | AND product_code = #{productCode} |
| | | AND processes_code = #{processesCode}; |
| | | <select id="getCount" parameterType="BsFormulaChildInfo" resultMap="BsFormulaChildInfoResult"> |
| | | SELECT COUNT(*) AS counts |
| | | FROM bs_formula_child_info |
| | | WHERE (processes_code = #{processesCode} AND product_code = #{productCode}) |
| | | AND (results IS NULL OR results = ''); |
| | | </select> |
| | | |
| | | <select id="releaseCheck" parameterType="BsFormulaChildInfo" resultMap="BsFormulaChildInfoResult"> |
| | | SELECT COUNT(*) AS counts |
| | | FROM bs_formula_child_info |
| | | WHERE (processes_code = #{processesCode} AND product_code = #{productCode}) |
| | | AND (results IS NULL OR results = ''); |
| | | </select> |
| | | |
| | | <update id="workpieceRelease" parameterType="BsFormulaChildInfo"> |