刘小明
2024-08-27 53a365fb64b49ee85f528341c785c4beab1d1f43
pms-parent/pms-global/src/main/resources/mapper/PrWorkingInstructionMapper.xml
@@ -41,14 +41,14 @@
    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrWorkingInstruction" useGeneratedKeys="true">
        insert into pr_working_instruction
        <trim prefix="(" suffix=")" suffixOverrides=",">
                <if test="id != null and id !=''">id,</if>
                <if test="nodeId!= null and nodeId !=''">node_id,</if>
                <if test="fileId != null and fileId !=''">file_id,</if>
                <if test="id != null">id,</if>
                <if test="nodeId!= null">node_id,</if>
                <if test="fileId != null">file_id,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
                <if test="id != null and id !=''">#{id,jdbcType=BIGINT},</if>
                <if test="nodeId!= null and nodeId !=''">#{nodeId,jdbcType=BIGINT},</if>
                <if test="fileId != null and fileId !=''">#{fileId,jdbcType=BIGINT},</if>
                <if test="id != null">#{id,jdbcType=BIGINT},</if>
                <if test="nodeId!= null">#{nodeId,jdbcType=BIGINT},</if>
                <if test="fileId != null">#{fileId,jdbcType=BIGINT},</if>
        </trim>
    </insert>
    <insert id="insertMany" parameterType="java.util.List">
@@ -68,10 +68,10 @@
    <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPr.PrWorkingInstruction">
        update pr_working_instruction
        <set>
                <if test="nodeId!= null and nodeId !=''">
                <if test="nodeId!= null">
                    node_id = #{nodeId,jdbcType=BIGINT},
                </if>
                <if test="fileId != null and fileId !=''">
                <if test="fileId != null">
                    file_id = #{fileId,jdbcType=BIGINT},
                </if>
        </set>