|
@@ -4,6 +4,7 @@
|
|
|
<resultMap id="BaseResultMap" type="Postage" >
|
|
|
<id column="postage_id" property="postageId" jdbcType="INTEGER" />
|
|
|
<result column="admin_id" property="adminId" jdbcType="INTEGER" />
|
|
|
+ <result column="customer_id" property="customerId" jdbcType="INTEGER" />
|
|
|
<result column="postage_customer_status" property="postageCustomerStatus" jdbcType="INTEGER" />
|
|
|
<result column="postage_manager_status" property="postageManagerStatus" jdbcType="INTEGER" />
|
|
|
<result column="postage_finance_status" property="postageFinanceStatus" jdbcType="INTEGER" />
|
|
@@ -22,7 +23,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
- p.postage_id, p.admin_id, p.postage_customer_status, p.postage_manager_status, p.postage_finance_status,
|
|
|
+ p.postage_id, p.admin_id, p.customer_id, p.postage_customer_status, p.postage_manager_status, p.postage_finance_status,
|
|
|
p.postage_order_source, p.postage_treatment_method, p.sales_orderId, p.postage_client_name,
|
|
|
p.postage_client_tel,p.postage_client_address, p.postage_logistics_company, p.postage_logistics_no, p.postage_amount,
|
|
|
p.postage_alipay, p.postage_alipay_name, p.postage_create_time, p.postage_update_time
|
|
@@ -40,6 +41,9 @@
|
|
|
<if test="adminId != null and adminId != ''">
|
|
|
p.admin_id = #{adminId}
|
|
|
</if>
|
|
|
+ <if test="customerId != null and customerId != ''">
|
|
|
+ p.customer_id = #{customerId}
|
|
|
+ </if>
|
|
|
<if test="postageId != null and postageId != ''">
|
|
|
AND p.postage_id = #{postageId}
|
|
|
</if>
|
|
@@ -95,7 +99,7 @@
|
|
|
</select>
|
|
|
|
|
|
<insert id="savePostage" parameterType="Postage" >
|
|
|
- insert into tb_rst_postage (postage_id, admin_id, postage_customer_status,
|
|
|
+ insert into tb_rst_postage (postage_id, admin_id, customer_id, postage_customer_status,
|
|
|
postage_manager_status, postage_finance_status,
|
|
|
postage_order_source, postage_treatment_method,
|
|
|
sales_orderId, postage_client_name, postage_client_tel,
|
|
@@ -103,7 +107,7 @@
|
|
|
postage_logistics_company, postage_logistics_no,
|
|
|
postage_amount, postage_alipay, postage_alipay_name
|
|
|
)
|
|
|
- values (#{postageId,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{postageCustomerStatus,jdbcType=INTEGER},
|
|
|
+ values (#{postageId,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{customerId,jdbcType=INTEGER}, #{postageCustomerStatus,jdbcType=INTEGER},
|
|
|
#{postageManagerStatus,jdbcType=INTEGER}, #{postageFinanceStatus,jdbcType=INTEGER},
|
|
|
#{postageOrderSource,jdbcType=INTEGER}, #{postageTreatmentMethod,jdbcType=INTEGER},
|
|
|
#{salesOrderId,jdbcType=VARCHAR}, #{postageClientName,jdbcType=VARCHAR}, #{postageClientTel,jdbcType=VARCHAR},
|
|
@@ -119,6 +123,9 @@
|
|
|
<if test="adminId != null" >
|
|
|
admin_id = #{adminId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="customerId != null" >
|
|
|
+ customer_id = #{customerId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="postageCustomerStatus != null" >
|
|
|
postage_customer_status = #{postageCustomerStatus,jdbcType=INTEGER},
|
|
|
</if>
|