fuyu 5 vuotta sitten
vanhempi
commit
0e73f98dfe
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      application/inter/controller/Writereport.php

+ 1 - 1
application/inter/controller/Writereport.php

@@ -552,7 +552,7 @@ class Writereport extends Base
                 return true;
             }
             $hospital = DB::table('institution')->where('id', $remote_order['super_hospital_id'])->field('current_money')->find();
-            DB::table('institution')->where('id', $remote_order['super_hospital_id'])->update(['current_money' => $current_money + $remote_order['order_money']]);
+            DB::table('institution')->where('id', $remote_order['super_hospital_id'])->update(['current_money' => $hospital['current_money'] + $remote_order['order_money']]);
             DB::table('remote_order')->where('id', $remote_order['id'])->update(['status' => Application::ORDER_STATUS['CONFIRM']]);
             DB::table('remote_water')->insert([
                 'id' => UUIDs::uuid16(),