lgy vor 1 Tag
Ursprung
Commit
4d1a2a11ba

+ 4 - 4
server/application/api/controller/exam/ExamController.php

@@ -18,15 +18,15 @@ class ExamController extends ZskkDefaultController
      */
     public function examList(ExamService $service)
     {
-//        try{
+        try{
             $params = $this->getParams();
             ExamValidate::check($params);
             $token = $this->getToken();
             $data     = $service->getExamLIst($params,$token);
             return $this->success($data);
-//        } catch (Exception $exception){
-//            $this->throwError('系统异常',0001);
-//        }
+        } catch (Exception $exception){
+            $this->throwError('系统异常',0001);
+        }
     }
 
     public function changeInsLogin(ExamService $service)

+ 4 - 4
server/application/api/model/exam/ExamModel.php

@@ -173,7 +173,7 @@ class ExamModel extends ZskkDefaultModel {
 
     public function getExamList($institutionId, $fuzzyWhere, $moreWhere,$class_where, $params,$report_where,$gradeWhere)
     {
-        try{
+//        try{
             $nameWhere = [];
             if(isset($moreWhere['name_fuzzy']) && !empty($moreWhere['name_fuzzy'])){
                 if(isset($moreWhere['name']) && !empty($moreWhere['name']))
@@ -303,9 +303,9 @@ class ExamModel extends ZskkDefaultModel {
                 $list[$k]['medical_index'] = $v['medical_code'].'-'.$v['exam_datetime_code'].'-'.$v['body_part_code'].'-'.$v['device_code'].'-'.$unit;
             }
             return ['total'=>$total, 'list'=>$list,'custom_field'=>$institution];
-        } catch (Exception $exception){
-            $this->throwError($exception->getMessage(),0001);
-        }
+//        } catch (Exception $exception){
+//            $this->throwError($exception->getMessage(),0001);
+//        }
     }
 
     public function getHistoryList($institutionId,$institutionIds, $fuzzyWhere, $params,$id)