|
@@ -615,7 +615,7 @@ class Writereport extends Base
|
|
|
DB::table('remote_application')->where('id', $application_id)->update(['report_status'=>'9']);
|
|
|
DB::table('remote_application')->where('id',$application_id)->update(['report_status'=>'9']);
|
|
|
$remote_order = DB::table('remote_order')
|
|
|
- ->where('status', Application::ORDER_STATUS['PAYCOMPLTET'])
|
|
|
+ ->where('status', config::get('ORDER_STATUS')['PAYCOMPLTET'])
|
|
|
->where('application_id', $application_id)
|
|
|
->field('order_money, id, super_hospital_id')
|
|
|
->find();
|
|
@@ -629,12 +629,12 @@ class Writereport extends Base
|
|
|
$order_money = $remote_order['order_money'];
|
|
|
$after_money = $brfore_money + $order_money;
|
|
|
DB::table('institution')->where('id', $remote_order['super_hospital_id'])->update(['current_money' => $after_money]);
|
|
|
- DB::table('remote_order')->where('id', $remote_order['id'])->update(['status' => Application::ORDER_STATUS['CONFIRM']]);
|
|
|
+ DB::table('remote_order')->where('id', $remote_order['id'])->update(['status' => config::get('ORDER_STATUS')['CONFIRM']]);
|
|
|
$hospital_id = $remote_order['super_hospital_id'];
|
|
|
$order_id = $remote_order['id'];
|
|
|
|
|
|
- $type = Application::WATER_TYPE['ADD'];
|
|
|
- $why = Application::WATER_WHY['REMOTEINCOME'];
|
|
|
+ $type = config::get('WATER_TYPE')['ADD'];
|
|
|
+ $why = config::get('WATER_WHY')['REMOTEINCOME'];
|
|
|
$water_id = DB::table('remote_water')->insertGetId([
|
|
|
'hospital_id' => $hospital_id,
|
|
|
'order_id' => $order_id,
|