logic = (new VehColorLogic()); } /** * 获取系统list */ public function getList($params) { if (empty($params['type'])) throw new BusinessException('类型不能为空'); $where = []; if(isset($params['type']) && $params['type']) $where[] = ['type', '=', $params['type']]; return $this->logic->getList($where); } }