| | |
| | | <if test="processesCode != null and processesCode != ''"> and processes_code like concat('%', #{processesCode}, '%')</if> |
| | | <if test="productCode != null and productCode != ''"> and product_code like concat('%', #{productCode}, '%')</if> |
| | | <if test="operationType != null and operationType != ''"> and operation_type like concat('%', #{operationType}, '%')</if> |
| | | <if test="formulaCode != null and formulaCode != ''"> and formula_code like concat('%', #{formulaCode}, '%')</if> |
| | | <if test="formulaCode != null and formulaCode != ''"> and formula_code = #{formulaCode}</if> |
| | | |
| | | </where> |
| | | </select> |
| | |
| | | <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=","> |