where('client_id', '=', $client_id) ->where('applic_id', '=', $applic_id) ->where('is_delete','=','0') ->select(); } /** * 通过插件分类id查询 */ public static function getListByClientId($client_id){ $model = new static(); return $model::withoutGlobalScope()->where('client_id', '=', $client_id) ->where('is_delete','=','0') ->order('create_time','asc') ->select(); } /** * 软删除 */ public function setDelete() { return $this->save(['is_delete' => 1]); } public static function addApplication($data){ return $this->save([ 'client_id' => $data['client_id'], 'applic_id' => $data['applic_id'], 'agent_id' => $data['agent_id'] ]); } }