| 12345678910111213141516171819202122232425262728293031323334 | 
							- <?php
 
- namespace app\common\model;
 
- use think\Db;
 
- use think\Exception;
 
- class CleaningType extends Base
 
- {
 
-     protected $createTime = 'create_time';
 
-     protected $updateTime = 'update_time';
 
-     protected $table = 'cleaning_type';
 
-     protected $validateName = 'CleaningType';
 
-     public function updates($orgId)
 
-     {
 
-         $data = request()->post();
 
-         $data['org_id'] = $orgId;
 
-         return $this->updateInfo($data, $this->validateName, '');
 
-     }
 
-     public function getList($orgId){
 
-         $map[] = ['org_id','=',$orgId];
 
-         $map[] = ['del','=',0];
 
-         $map[] = ['enable','=',1];
 
-         $lists = Db::name($this->table)
 
-             ->where($map)
 
-             ->select();
 
-         return $lists;
 
-     }
 
- }
 
 
  |