|
|
@@ -771,123 +771,7 @@
|
|
|
x.actual_profit =z.settlement_amount-y.party
|
|
|
where x.order_no =y.order_no and x.order_no=z.order_no
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeySelective">
|
|
|
- update t_order_mid
|
|
|
- <set>
|
|
|
- <if test="salesmanId != null">
|
|
|
- salesman_id = #{salesmanId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="financeId != null">
|
|
|
- finance_id = #{financeId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="salesmanName != null">
|
|
|
- salesman_name = #{salesmanName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="financeName != null">
|
|
|
- finance_name = #{financeName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="finalReceivables != null">
|
|
|
- final_receivables = #{finalReceivables,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="finalReceivablesTime != null">
|
|
|
- final_Receivables_time = #{finalReceivablesTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="invoiceAmount != null">
|
|
|
- invoice_amount = #{invoiceAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="buyerName != null">
|
|
|
- buyer_name = #{buyerName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="orderReceivables != null">
|
|
|
- order_receivables = #{orderReceivables,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="orderArrears != null">
|
|
|
- order_arrears = #{orderArrears,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="paymentAmount != null">
|
|
|
- payment_amount = #{paymentAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="costAmount != null">
|
|
|
- cost_amount = #{costAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="depName != null">
|
|
|
- dep_name = #{depName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="provinceName != null">
|
|
|
- province_name = #{provinceName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="legalAffairs != null">
|
|
|
- legal_affairs = #{legalAffairs,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="dunStartTime != null">
|
|
|
- dun_start_time = #{dunStartTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="legalAffairsType != null">
|
|
|
- legal_affairs_type = #{legalAffairsType,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="operationTime != null">
|
|
|
- operation_time = #{operationTime,jdbcType=DATE},
|
|
|
- </if>
|
|
|
- <if test="legalAffairsStatus != null">
|
|
|
- legal_affairs_status = #{legalAffairsStatus,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="projectType != null">
|
|
|
- project_type = #{projectType,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="serviceType != null">
|
|
|
- service_type = #{serviceType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="serviceProject != null">
|
|
|
- service_project = #{serviceProject,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="patentCost != null">
|
|
|
- patent_cost = #{patentCost,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="patentCostActual != null">
|
|
|
- patent_cost_actual = #{patentCostActual,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="softCost != null">
|
|
|
- soft_cost = #{softCost,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="softCostActual != null">
|
|
|
- soft_cost_actual = #{softCostActual,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="auditCost != null">
|
|
|
- audit_cost = #{auditCost,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="auditCostActual != null">
|
|
|
- audit_cost_actual = #{auditCostActual,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="otherCost != null">
|
|
|
- other_cost = #{otherCost,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="otherCostActual != null">
|
|
|
- other_cost_actual = #{otherCostActual,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="expectProfit != null">
|
|
|
- expect_profit = #{expectProfit,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="actualProfit != null">
|
|
|
- actual_profit = #{actualProfit,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="stopProject != null">
|
|
|
- stop_project = #{stopProject,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="stopProject != null">
|
|
|
- stop_project = #{stopProject,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="dunNodeContent != null">
|
|
|
- dun_node_content = #{dunNodeContent},
|
|
|
- </if>
|
|
|
- <if test="expenseAmount != null">
|
|
|
- expense_amount = #{expenseAmount},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where id = #{id}
|
|
|
- </update>
|
|
|
+
|
|
|
|
|
|
<update id="updateByOrderNo">
|
|
|
update t_order_mid
|