| | |
| | | import static com.ruoyi.web.controller.project.ServiceReimbursementController.convert; |
| | | |
| | | /** |
| | | * 费用申请主Controller |
| | | * 案例统计 |
| | | * |
| | | * @author ruoyi |
| | | * @date 2022-01-24 |
| | | */ |
| | | @Slf4j |
| | | @Api("费用申请主") |
| | | @Api("案例统计") |
| | | @RestController |
| | | @RequestMapping("/project/spstatcase") |
| | | public class SpStatCaseController extends BaseController { |
| | |
| | | SpstatCaseService spstatCaseService; |
| | | |
| | | /** |
| | | * 查询费用申请主列表 |
| | | * 查询案例统计 |
| | | */ |
| | | @ApiOperation("查询费用申请主列表") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SpStatCaseReq spStatCaseReq) { |
| | | @ApiOperation("查询案例统计") |
| | | @PostMapping("/spStatCaselist") |
| | | public TableDataInfo spStatCaselist(@RequestBody SpStatCaseReq spStatCaseReq) { |
| | | startPage(); |
| | | return getDataTable(spstatCaseService.getListBypower(spStatCaseReq)); |
| | | } |
| | | |
| | | /** |
| | | * 导出案例统计 |
| | | */ |
| | | @ApiOperation("导出案例统计") |
| | | @Log(title = "案例统计", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(SpStatCaseReq spStatCaseReq) { |
| | | List<SpStatCase> list = spstatCaseService.getListBypower(spStatCaseReq); |
| | | ExcelUtil<SpStatCase> util = new ExcelUtil<SpStatCase>(SpStatCase.class); |
| | | return util.exportExcel(list, "案例统计数据"); |
| | | } |
| | | |
| | | |
| | | } |