package com.boman.report.controller;

import com.boman.common.core.web.controller.BaseController;
import com.boman.common.core.web.page.TableDataInfo;
import com.boman.domain.entity.StatisticReportPersonnel;
import com.boman.report.service.StatisticReportPersonnelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/statistic/reportPersonnel")
public class StatisticReportPersonnelController extends BaseController {

    @Autowired
    private StatisticReportPersonnelService service;

    /**
     * 列表
     * @return
     */
    @RequestMapping("/list")
    public TableDataInfo list(@RequestBody StatisticReportPersonnel personnel) {
        startPage();
        List<StatisticReportPersonnel> list = service.selectList(personnel);
        return getDataTable(list);
    }

}
