浏览代码

医院管理员修改[A

fuyu 5 年之前
父节点
当前提交
5567e79d50
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/inter/controller/Application.php

+ 2 - 2
application/inter/controller/Application.php

@@ -595,7 +595,7 @@ class Application extends Base
         $water_type = self::WATER_TYPE['ADD'];
         $water_why = self::WATER_WHY['REFUNDINCOME'];
         try{
-            DB::table('remote_order')->where('order_id', $order_id)->update(["status" => self::ORDER_STATUS["CANCEL"]]);
+            DB::table('remote_order')->where('id', $order_id)->update(["status" => self::ORDER_STATUS["CANCEL"]]);
             $hospital = DB::table('institution')
             ->where('id', $hospital_id)
             ->field('current_money')
@@ -623,7 +623,7 @@ class Application extends Base
     }
     private function cancelPatientsOrder($order_id) {
         try{
-            DB::table('remote_order')->where('order_id', $order_id)->update(["status" => self::ORDER_STATUS["CANCEL"]]);
+            DB::table('remote_order')->where('id', $order_id)->update(["status" => self::ORDER_STATUS["CANCEL"]]);
             // todo 消息推送
             return json_encode(['status'=>'ok','code'=>'0000']);
         } catch (\Exception $e) {