刘小明
2024-08-26 591e3b8a10ed15023f3ad9e5a72a887ef89b0bb2
pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml
@@ -49,39 +49,39 @@
    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrOrderItem" useGeneratedKeys="true">
        insert into pr_order_item
        <trim prefix="(" suffix=")" suffixOverrides=",">
                <if test="id != null">id,</if>
                <if test="orderId != null">order_id,</if>
                <if test="proId != null">pro_id,</if>
                <if test="number != null">number,</if>
                <if test="completeNumber != null">complete_number,</if>
                <if test="deleted != null">deleted,</if>
                <if test="id != null and id !=''">id,</if>
                <if test="orderId!= null and orderId !=''">order_id,</if>
                <if test="proId != null and proId !=''">pro_id,</if>
                <if test="number != null and number !=''">number,</if>
                <if test="completeNumber!= null and completeNumber !=''">complete_number,</if>
                <if test="deleted != null and deleted !=''">deleted,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
                <if test="id != null">#{id,jdbcType=BIGINT},</if>
                <if test="orderId != null">#{orderId,jdbcType=BIGINT},</if>
                <if test="proId != null">#{proId,jdbcType=BIGINT},</if>
                <if test="number != null">#{number,jdbcType=INTEGER},</if>
                <if test="completeNumber != null">#{completeNumber,jdbcType=INTEGER},</if>
                <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if>
                <if test="id != null and id !=''">#{id,jdbcType=BIGINT},</if>
                <if test="orderId!= null and orderId !=''">#{orderId,jdbcType=BIGINT},</if>
                <if test="proId != null and proId !=''">#{proId,jdbcType=BIGINT},</if>
                <if test="number != null and number !=''">#{number,jdbcType=INTEGER},</if>
                <if test="completeNumber!= null and completeNumber !=''">#{completeNumber,jdbcType=INTEGER},</if>
                <if test="deleted != null and deleted !=''">#{deleted,jdbcType=TINYINT},</if>
        </trim>
    </insert>
    <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPr.PrOrderItem">
        <!--@mbg.generated-->
        update pr_order_item
        <set>
                <if test="orderId != null">
                <if test="orderId!= null and orderId !=''">
                    order_id = #{orderId,jdbcType=BIGINT},
                </if>
                <if test="proId != null">
                <if test="proId != null and proId !=''">
                    pro_id = #{proId,jdbcType=BIGINT},
                </if>
                <if test="number != null">
                <if test="number != null and number !=''">
                    number = #{number,jdbcType=INTEGER},
                </if>
                <if test="completeNumber != null">
                <if test="completeNumber!= null and completeNumber !=''">
                    complete_number = #{completeNumber,jdbcType=INTEGER},
                </if>
                <if test="deleted != null">
                <if test="deleted != null and deleted !=''">
                    deleted = #{deleted,jdbcType=TINYINT},
                </if>
        </set>