|
@@ -20,23 +20,22 @@
|
|
|
<result column="postage_create_time" property="postageCreateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="postage_update_time" property="postageUpdateTime" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
+
|
|
|
<sql id="Base_Column_List" >
|
|
|
postage_id, admin_id, postage_customer_status, postage_manager_status, postage_finance_status,
|
|
|
postage_order_source, "postage_treatment method", sales_orderId, postage_client_name,
|
|
|
postage_client_tel, postage_logistics_company, postage_logistics_no, postage_amount,
|
|
|
postage_alipay, postage_alipay_name, postage_create_time, postage_update_time
|
|
|
</sql>
|
|
|
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+
|
|
|
+ <select id="listPostage" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from tb_rst_postage
|
|
|
where postage_id = #{postageId,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
- delete from tb_rst_postage
|
|
|
- where postage_id = #{postageId,jdbcType=INTEGER}
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="rml.model.Postage" >
|
|
|
+
|
|
|
+ <insert id="savePostage" parameterType="Postage" >
|
|
|
insert into tb_rst_postage (postage_id, admin_id, postage_customer_status,
|
|
|
postage_manager_status, postage_finance_status,
|
|
|
postage_order_source, "postage_treatment method",
|
|
@@ -54,116 +53,8 @@
|
|
|
#{postageCreateTime,jdbcType=TIMESTAMP}, #{postageUpdateTime,jdbcType=TIMESTAMP}
|
|
|
)
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="rml.model.Postage" >
|
|
|
- insert into tb_rst_postage
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="postageId != null" >
|
|
|
- postage_id,
|
|
|
- </if>
|
|
|
- <if test="adminId != null" >
|
|
|
- admin_id,
|
|
|
- </if>
|
|
|
- <if test="postageCustomerStatus != null" >
|
|
|
- postage_customer_status,
|
|
|
- </if>
|
|
|
- <if test="postageManagerStatus != null" >
|
|
|
- postage_manager_status,
|
|
|
- </if>
|
|
|
- <if test="postageFinanceStatus != null" >
|
|
|
- postage_finance_status,
|
|
|
- </if>
|
|
|
- <if test="postageOrderSource != null" >
|
|
|
- postage_order_source,
|
|
|
- </if>
|
|
|
- <if test="postageTreatmentMethod != null" >
|
|
|
- "postage_treatment method",
|
|
|
- </if>
|
|
|
- <if test="salesOrderid != null" >
|
|
|
- sales_orderId,
|
|
|
- </if>
|
|
|
- <if test="postageClientName != null" >
|
|
|
- postage_client_name,
|
|
|
- </if>
|
|
|
- <if test="postageClientTel != null" >
|
|
|
- postage_client_tel,
|
|
|
- </if>
|
|
|
- <if test="postageLogisticsCompany != null" >
|
|
|
- postage_logistics_company,
|
|
|
- </if>
|
|
|
- <if test="postageLogisticsNo != null" >
|
|
|
- postage_logistics_no,
|
|
|
- </if>
|
|
|
- <if test="postageAmount != null" >
|
|
|
- postage_amount,
|
|
|
- </if>
|
|
|
- <if test="postageAlipay != null" >
|
|
|
- postage_alipay,
|
|
|
- </if>
|
|
|
- <if test="postageAlipayName != null" >
|
|
|
- postage_alipay_name,
|
|
|
- </if>
|
|
|
- <if test="postageCreateTime != null" >
|
|
|
- postage_create_time,
|
|
|
- </if>
|
|
|
- <if test="postageUpdateTime != null" >
|
|
|
- postage_update_time,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="postageId != null" >
|
|
|
- #{postageId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="adminId != null" >
|
|
|
- #{adminId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="postageCustomerStatus != null" >
|
|
|
- #{postageCustomerStatus,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="postageManagerStatus != null" >
|
|
|
- #{postageManagerStatus,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="postageFinanceStatus != null" >
|
|
|
- #{postageFinanceStatus,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="postageOrderSource != null" >
|
|
|
- #{postageOrderSource,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="postageTreatmentMethod != null" >
|
|
|
- #{postageTreatmentMethod,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="salesOrderid != null" >
|
|
|
- #{salesOrderid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="postageClientName != null" >
|
|
|
- #{postageClientName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="postageClientTel != null" >
|
|
|
- #{postageClientTel,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="postageLogisticsCompany != null" >
|
|
|
- #{postageLogisticsCompany,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="postageLogisticsNo != null" >
|
|
|
- #{postageLogisticsNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="postageAmount != null" >
|
|
|
- #{postageAmount,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="postageAlipay != null" >
|
|
|
- #{postageAlipay,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="postageAlipayName != null" >
|
|
|
- #{postageAlipayName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="postageCreateTime != null" >
|
|
|
- #{postageCreateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="postageUpdateTime != null" >
|
|
|
- #{postageUpdateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="rml.model.Postage" >
|
|
|
+
|
|
|
+ <update id="updatePostage" parameterType="Postage" >
|
|
|
update tb_rst_postage
|
|
|
<set >
|
|
|
<if test="adminId != null" >
|
|
@@ -217,24 +108,5 @@
|
|
|
</set>
|
|
|
where postage_id = #{postageId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="rml.model.Postage" >
|
|
|
- update tb_rst_postage
|
|
|
- set admin_id = #{adminId,jdbcType=INTEGER},
|
|
|
- postage_customer_status = #{postageCustomerStatus,jdbcType=INTEGER},
|
|
|
- postage_manager_status = #{postageManagerStatus,jdbcType=INTEGER},
|
|
|
- postage_finance_status = #{postageFinanceStatus,jdbcType=INTEGER},
|
|
|
- postage_order_source = #{postageOrderSource,jdbcType=INTEGER},
|
|
|
- "postage_treatment method" = #{postageTreatmentMethod,jdbcType=INTEGER},
|
|
|
- sales_orderId = #{salesOrderid,jdbcType=VARCHAR},
|
|
|
- postage_client_name = #{postageClientName,jdbcType=VARCHAR},
|
|
|
- postage_client_tel = #{postageClientTel,jdbcType=VARCHAR},
|
|
|
- postage_logistics_company = #{postageLogisticsCompany,jdbcType=VARCHAR},
|
|
|
- postage_logistics_no = #{postageLogisticsNo,jdbcType=VARCHAR},
|
|
|
- postage_amount = #{postageAmount,jdbcType=INTEGER},
|
|
|
- postage_alipay = #{postageAlipay,jdbcType=VARCHAR},
|
|
|
- postage_alipay_name = #{postageAlipayName,jdbcType=VARCHAR},
|
|
|
- postage_create_time = #{postageCreateTime,jdbcType=TIMESTAMP},
|
|
|
- postage_update_time = #{postageUpdateTime,jdbcType=TIMESTAMP}
|
|
|
- where postage_id = #{postageId,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
+
|
|
|
</mapper>
|