['travel_reimbursement_id'], ]; } /** * @notes 获取报销明细列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/01/18 13:57 */ public function lists(): array { return ProjectTravelReimbursementDetail::where($this->searchWhere) ->field(['id', 'travel_reimbursement_id', 'project_cost_temp_id', 'traffic_fee', 'stay_fee', 'restaurant_fee', 'subsidy_fee', 'other_fee', 'remark']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取报销明细数量 * @return int * @author likeadmin * @date 2024/01/18 13:57 */ public function count(): int { return ProjectTravelReimbursementDetail::where($this->searchWhere)->count(); } }