|
|
@@ -72,45 +72,48 @@
|
|
|
delete from t_order_new
|
|
|
where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
- <insert id="insert" keyColumn="order_no" keyProperty="orderNo" parameterType="com.goafanti.common.model.TOrderNew" useGeneratedKeys="true">
|
|
|
- insert into t_order_new (order_type, creater, create_time,
|
|
|
- update_time, buyer_id, first_amount,
|
|
|
- total_amount, settlement_amount, refund_amount,
|
|
|
- order_status, liquidation_status, process_status,
|
|
|
- project_status, approval, order_remarks,
|
|
|
- delete_sign, salesman_id, finance_id,
|
|
|
- technician_id, sign_time, settlement_time,
|
|
|
- contract_picture_url, contract_no, contract_type,
|
|
|
- contacts, contact_mobile, legal_person,
|
|
|
- legal_person_tel, proof_count, proof_aid,
|
|
|
- proof_time, proof_status, order_dep,
|
|
|
- outsource, additional_order, primary_order,
|
|
|
- old_salesman_id, back_status, agreement_url,
|
|
|
- new_user, service_content, sales_type,
|
|
|
- channel_id, other, user_type,
|
|
|
- examine_name, tag, patent_status
|
|
|
- )
|
|
|
- values (#{orderType,jdbcType=INTEGER}, #{creater,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP}, #{buyerId,jdbcType=VARCHAR}, #{firstAmount,jdbcType=DECIMAL},
|
|
|
- #{totalAmount,jdbcType=DECIMAL}, #{settlementAmount,jdbcType=DECIMAL}, #{refundAmount,jdbcType=DECIMAL},
|
|
|
- #{orderStatus,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER}, #{processStatus,jdbcType=INTEGER},
|
|
|
- #{projectStatus,jdbcType=INTEGER}, #{approval,jdbcType=INTEGER}, #{orderRemarks,jdbcType=VARCHAR},
|
|
|
- #{deleteSign,jdbcType=INTEGER}, #{salesmanId,jdbcType=VARCHAR}, #{financeId,jdbcType=VARCHAR},
|
|
|
- #{technicianId,jdbcType=VARCHAR}, #{signTime,jdbcType=DATE}, #{settlementTime,jdbcType=DATE},
|
|
|
- #{contractPictureUrl,jdbcType=VARCHAR}, #{contractNo,jdbcType=VARCHAR}, #{contractType,jdbcType=VARCHAR},
|
|
|
- #{contacts,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR}, #{legalPerson,jdbcType=VARCHAR},
|
|
|
- #{legalPersonTel,jdbcType=VARCHAR}, #{proofCount,jdbcType=FLOAT}, #{proofAid,jdbcType=VARCHAR},
|
|
|
- #{proofTime,jdbcType=TIMESTAMP}, #{proofStatus,jdbcType=INTEGER}, #{orderDep,jdbcType=VARCHAR},
|
|
|
- #{outsource,jdbcType=INTEGER}, #{additionalOrder,jdbcType=VARCHAR}, #{primaryOrder,jdbcType=VARCHAR},
|
|
|
- #{oldSalesmanId,jdbcType=VARCHAR}, #{backStatus,jdbcType=INTEGER}, #{agreementUrl,jdbcType=VARCHAR},
|
|
|
- #{newUser,jdbcType=INTEGER}, #{serviceContent,jdbcType=VARCHAR}, #{salesType,jdbcType=INTEGER},
|
|
|
- #{channelId,jdbcType=VARCHAR}, #{other,jdbcType=VARCHAR}, #{userType,jdbcType=INTEGER},
|
|
|
- #{examineName,jdbcType=VARCHAR}, #{tag,jdbcType=INTEGER}, #{patentStatus,jdbcType=INTEGER}
|
|
|
- )
|
|
|
+ <insert id="insert" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
+ insert into t_order_new (order_no, order_type, creater,
|
|
|
+ create_time, update_time, buyer_id,
|
|
|
+ first_amount, total_amount, settlement_amount,
|
|
|
+ refund_amount, order_status, liquidation_status,
|
|
|
+ process_status, project_status, approval,
|
|
|
+ order_remarks, delete_sign, salesman_id,
|
|
|
+ finance_id, technician_id, sign_time,
|
|
|
+ settlement_time, contract_picture_url, contract_no,
|
|
|
+ contract_type, contacts, contact_mobile,
|
|
|
+ legal_person, legal_person_tel, proof_count,
|
|
|
+ proof_aid, proof_time, proof_status,
|
|
|
+ order_dep, outsource, additional_order,
|
|
|
+ primary_order, old_salesman_id, back_status,
|
|
|
+ agreement_url, new_user, service_content,
|
|
|
+ sales_type, channel_id, other,
|
|
|
+ user_type, examine_name, tag,
|
|
|
+ patent_status)
|
|
|
+ values (#{orderNo,jdbcType=VARCHAR}, #{orderType,jdbcType=INTEGER}, #{creater,jdbcType=VARCHAR},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{buyerId,jdbcType=VARCHAR},
|
|
|
+ #{firstAmount,jdbcType=DECIMAL}, #{totalAmount,jdbcType=DECIMAL}, #{settlementAmount,jdbcType=DECIMAL},
|
|
|
+ #{refundAmount,jdbcType=DECIMAL}, #{orderStatus,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER},
|
|
|
+ #{processStatus,jdbcType=INTEGER}, #{projectStatus,jdbcType=INTEGER}, #{approval,jdbcType=INTEGER},
|
|
|
+ #{orderRemarks,jdbcType=VARCHAR}, #{deleteSign,jdbcType=INTEGER}, #{salesmanId,jdbcType=VARCHAR},
|
|
|
+ #{financeId,jdbcType=VARCHAR}, #{technicianId,jdbcType=VARCHAR}, #{signTime,jdbcType=DATE},
|
|
|
+ #{settlementTime,jdbcType=DATE}, #{contractPictureUrl,jdbcType=VARCHAR}, #{contractNo,jdbcType=VARCHAR},
|
|
|
+ #{contractType,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ #{legalPerson,jdbcType=VARCHAR}, #{legalPersonTel,jdbcType=VARCHAR}, #{proofCount,jdbcType=FLOAT},
|
|
|
+ #{proofAid,jdbcType=VARCHAR}, #{proofTime,jdbcType=TIMESTAMP}, #{proofStatus,jdbcType=INTEGER},
|
|
|
+ #{orderDep,jdbcType=VARCHAR}, #{outsource,jdbcType=INTEGER}, #{additionalOrder,jdbcType=VARCHAR},
|
|
|
+ #{primaryOrder,jdbcType=VARCHAR}, #{oldSalesmanId,jdbcType=VARCHAR}, #{backStatus,jdbcType=INTEGER},
|
|
|
+ #{agreementUrl,jdbcType=VARCHAR}, #{newUser,jdbcType=INTEGER}, #{serviceContent,jdbcType=VARCHAR},
|
|
|
+ #{salesType,jdbcType=INTEGER}, #{channelId,jdbcType=VARCHAR}, #{other,jdbcType=VARCHAR},
|
|
|
+ #{userType,jdbcType=INTEGER}, #{examineName,jdbcType=VARCHAR}, #{tag,jdbcType=INTEGER},
|
|
|
+ #{patentStatus,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" keyColumn="order_no" keyProperty="orderNo" parameterType="com.goafanti.common.model.TOrderNew" useGeneratedKeys="true">
|
|
|
+ <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
insert into t_order_new
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="orderNo != null">
|
|
|
+ order_no,
|
|
|
+ </if>
|
|
|
<if test="orderType != null">
|
|
|
order_type,
|
|
|
</if>
|
|
|
@@ -257,6 +260,9 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="orderNo != null">
|
|
|
+ #{orderNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="orderType != null">
|
|
|
#{orderType,jdbcType=INTEGER},
|
|
|
</if>
|