刘桂岩 5 years ago
parent
commit
576b380b9f
2 changed files with 6 additions and 6 deletions
  1. 5 5
      application/manage/controller/Exam.php
  2. 1 1
      application/manage/view/exam/index.html

+ 5 - 5
application/manage/controller/Exam.php

@@ -77,7 +77,7 @@ class Exam extends Base {
         $sortArr=array();
         $sortArr["register_datetime"]="desc";
         
-        $rs = Db::table("exam")->where($wheres)->order($sortArr)->page($page, $pagesize)->select();
+        $rs = Db::table("exams")->where($wheres)->order($sortArr)->page($page, $pagesize)->select();
         if (!empty($rs)) {
             foreach ($rs as $key => $val) {
                 if (isset($insMap[$val["institution_id"]])) {
@@ -119,7 +119,7 @@ class Exam extends Base {
                 array_push($resultArr, $val);
             }
         }
-        $count = Db::table("exam")->where($wheres)->count();
+        $count = Db::table("exams")->where($wheres)->count();
         $data = array();
         $data["total"] = $count;
         $data["rows"] = $resultArr;
@@ -135,7 +135,7 @@ class Exam extends Base {
         $id = is_string($_GET["id"]) ? $_GET["id"] : null;
         if ($id != null) {
             // 查询检查表
-            $exam = Db::table("exam")->where("id", $id)->find();
+            $exam = Db::table("exams")->where("id", $id)->find();
 
             // 以下追加名称字段
             $exam = self::appendName($exam, "technician", "doctors", "username"); // 技师
@@ -194,9 +194,9 @@ class Exam extends Base {
             $data = array();
             $data["status"] = $status;
 
-            Db::table("exam")->where("id", $id)->update($data);
+            Db::table("exams")->where("id", $id)->update($data);
 
-            $exam = Db::table("exam")->where("id", $id)->find();
+            $exam = Db::table("exams")->where("id", $id)->find();
 
             SysLogs::log("exam", "U", "id = " . $id . " " . json_encode($data));
         }

+ 1 - 1
application/manage/view/exam/index.html

@@ -109,7 +109,7 @@
                     {field:'patient_id',title:'患者',width:"150",align:'left' },
                     {field:'dept_id',title:'科室', hidden:true,width:100},
                     {field:'dept_name',title:'科室名称',width:100},
-                    {field:'exam_datetime',title:'检查日期',width:115 , formatter:dateFormatter }, ]],
+                    {field:'exam_datetime',title:'检查日期',width:115 }, ]],
                     columns:[[
                             {field:'patient_num',title:'病历号',width:"120",align:'left'},
                             {field:'accession_num',title:'科室检查号',width:100 },