소스 검색

医院管理员修改[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) {