Browse Source

实际毛利逻辑修改

anderx 3 years ago
parent
commit
fc36222575
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/goafanti/common/mapper/TOrderMidMapper.xml

+ 2 - 1
src/main/java/com/goafanti/common/mapper/TOrderMidMapper.xml

@@ -456,7 +456,8 @@
   </update>
   <update id="updatefinalReceivables">
     update t_order_mid set final_receivables= #{amount},`final_Receivables_time`= #{receivablesTime},
-                           order_arrears=if(order_arrears- #{amount} &lt; 0,0,order_arrears- #{amount})
+      order_arrears=if(order_arrears- #{amount} &lt; 0,0,order_arrears- #{amount}),
+      actual_profit=#{count}-payment_amount,
     where order_no= #{orderNo}
   </update>
   <update id="updateInvoice">