| | |
| | | <include refid="selectBsFormulaChildInfoVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | |
| | | <select id="getProductProcess" parameterType="com.jcdm.main.bs.formulaChild.Query.ProductProcessQuery" resultMap="BsFormulaChildInfoResult"> |
| | | <include refid="selectBsFormulaChildInfoVo"/> |
| | | <where> |
| | | <if test="processesCode != null and processesCode != '' ">and processes_code = #{processesCode}</if> |
| | | <if test="productCode != null and productCode != '' ">and product_code = #{productCode}</if> |
| | | </where> |
| | | order by step_sort |
| | | </select> |
| | | |
| | | <insert id="insertBsFormulaChildInfo" parameterType="BsFormulaChildInfo" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into bs_formula_child_info |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |