<insert id="insertSelective" parameterType="com.example.mall.pojo.Order">
insert into mall_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="orderNo != null">
order_no,
</if>
<if test="userId != null">
user_id,
</if>
<if test="shippingId != null">
shipping_id,
</if>
<if test="payment != null">
payment,
</if>
<if test="paymentType != null">
payment_type,
</if>
<if test="postage != null">
postage,
</if>
<if test="status != null">
status,
</if>
<if test="paymentTime != null">
payment_time,
</if>
<if test="sendTime != null">
send_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="closeTime != null">
close_time,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="orderNo != null">
#{orderNo,jdbcType=BIGINT},
</if>
<if test="userId != null">
#{userId,jdbcType=INTEGER},
</if>
<if test="shippingId != null">
#{shippingId,jdbcType=INTEGER},
</if>
<if test="payment != null">
#{payment,jdbcType=DECIMAL},
</if>
<if test="paymentType != null">
#{paymentType,jdbcType=INTEGER},
</if>
<if test="postage != null">
#{postage,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="paymentTime != null">
#{paymentTime,jdbcType=TIMESTAMP},
</if>
<if test="sendTime != null">
#{sendTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="closeTime != null">
#{closeTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>