/** 获取列表搜索信息 **/ public function getList() { $hours = new Hours(); $search = new HoursSearch(); $search->Status = $this->Status; $search->ProjectId = $this->ProjectId; $search->PageIndex = $this->PageIndex; $search->PageSize = $this->PageSize; $search->NeedCount = $this->NeedCount; $res = $hours->getList($search); echo json_encode($res); exit; }