admin
2024-10-15 6d313a4a6f9f9d7ea65ec50ab0d4491e595edb97
jcdm-main/src/main/resources/mapper/bs/formulaChildInfoTemp/BsFormulaChildInfoTempMapper.xml
@@ -32,10 +32,12 @@
        <result property="ngTimes"    column="ng_times"    />
        <result property="ngCollectData"    column="ng_collect_data"    />
        <result property="ngResults"    column="ng_results"    />
        <result property="childId"    column="child_id"    />
    </resultMap>
    <sql id="selectBsFormulaChildInfoTempVo">
        select id, sfc_code, line_code, processes_code, product_code, operation_steps, tech_requirement, operation_type, step_sort, param_code, material_code, formula_code, picture, remarks, create_user, create_time, update_user, update_time, spare_field1, spare_field2, spare_field3, spare_field4, collect_data, results, ng_times, ng_collect_data, ng_results from bs_formula_child_info_temp
        select id, sfc_code, child_id,line_code, processes_code, product_code, operation_steps, tech_requirement, operation_type, step_sort, param_code, material_code, formula_code, picture, remarks, create_user, create_time, update_user, update_time, spare_field1, spare_field2, spare_field3, spare_field4, collect_data, results, ng_times, ng_collect_data, ng_results from bs_formula_child_info_temp
    </sql>
    <select id="selectBsFormulaChildInfoTempList" parameterType="BsFormulaChildInfoTemp" resultMap="BsFormulaChildInfoTempResult">
@@ -102,7 +104,8 @@
            <if test="ngTimes != null">ng_times,</if>
            <if test="ngCollectData != null">ng_collect_data,</if>
            <if test="ngResults != null">ng_results,</if>
         </trim>
            <if test="childId != null">child_id,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="sfcCode != null">#{sfcCode},</if>
            <if test="lineCode != null">#{lineCode},</if>
@@ -130,7 +133,9 @@
            <if test="ngTimes != null">#{ngTimes},</if>
            <if test="ngCollectData != null">#{ngCollectData},</if>
            <if test="ngResults != null">#{ngResults},</if>
         </trim>
            <if test="childId != null">#{childId},</if>
        </trim>
    </insert>
    <update id="updateBsFormulaChildInfoTemp" parameterType="BsFormulaChildInfoTemp">
@@ -162,6 +167,8 @@
            <if test="ngTimes != null">ng_times = #{ngTimes},</if>
            <if test="ngCollectData != null">ng_collect_data = #{ngCollectData},</if>
            <if test="ngResults != null">ng_results = #{ngResults},</if>
            <if test="childId != null">child_id = #{childId},</if>
        </trim>
        where id = #{id}
    </update>