|
@@ -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(),
|