|
|
@@ -1139,6 +1139,13 @@
|
|
|
and a.order_no =b.order_no
|
|
|
</update>
|
|
|
|
|
|
-
|
|
|
+ <update id="updateOExpense">
|
|
|
+ update t_order_mid a ,(select order_no ,sum(real_amount)as amount
|
|
|
+ from expense_account where status =2
|
|
|
+ group by order_no )b
|
|
|
+ set a.expense_amount =b.amount
|
|
|
+ where a.order_no = #{orderNo}
|
|
|
+ and a.order_no =b.order_no
|
|
|
+ </update>
|
|
|
</mapper>
|
|
|
|