tongshanglei 2 anos atrás
pai
commit
b1f3539d92

+ 2 - 2
catch/hydraulic/controller/Maintenance.php

@@ -40,7 +40,7 @@ class Maintenance extends CatchController
         $data =  $request->post();
         $where[] = ["device_type",'=',$data['device_type']];
         $where[] = ['value','=',$data["value"]];
-        $bool =  Db::name("maintenancemapper")->where($where)->find();
+        $bool =  Db::name("maintenance_mapper")->where($where)->find();
         if(!empty($bool))
         {
             return CatchResponse::fail('唯一标识重复');
@@ -70,7 +70,7 @@ class Maintenance extends CatchController
         $where[] = ["device_type",'=',$data['device_type']];
         $where[] = ['value','=',$data["value"]];
         $where[] =['id','<>',$id];
-        $bool =  Db::name("maintenancemapper")->where($where)->find();
+        $bool =  Db::name("maintenance_mapper")->where($where)->find();
         if(!empty($bool))
         {
             return CatchResponse::fail('唯一标识重复');

+ 1 - 1
catch/worklocation/model/WorkLocation.php

@@ -139,7 +139,7 @@ class Worklocation extends Model
     {
         $where[]=['device_type',"=",$type];
         $where[] = ['value','=',$value];
-        $name = Db::name('maintenancemapper')->where($where)->value('name');
+        $name = Db::name('maintenance_mapper')->where($where)->value('name');
         return $name;
     }