liu
2026-10-30 dd1a51612fcd3c839d31dfa0df83b3d3071c8145
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.ruoyi.wrzs.report.controller;
 
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.wrzs.report.service.ReportCenterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * 报表中心
 * <p>
 * 每日过磅统计报表(车次/货量/偏差率) + 承运商绩效分析(准时率/作弊次数)
 */
@Api(tags = "报表中心")
@AllArgsConstructor
@RestController
@RequestMapping("/environmentAccess")
public class ReportCenterController {
 
    private final ReportCenterService reportCenterService;
 
    @ApiOperation("每日过磅统计报表")
    @GetMapping("/reportCenterDaily")
    public AjaxResult daily(@RequestParam(required = false) String startDate,
                            @RequestParam(required = false) String endDate) {
        return AjaxResult.success(reportCenterService.dailyWeighbridge(startDate, endDate));
    }
 
    @ApiOperation("承运商绩效分析(准时率/作弊次数)")
    @GetMapping("/reportCenterCarrier")
    public AjaxResult carrier(@RequestParam(required = false) String startDate,
                              @RequestParam(required = false) String endDate) {
        return AjaxResult.success(reportCenterService.carrierPerformance(startDate, endDate));
    }
 
    @ApiOperation("报表区间总览")
    @GetMapping("/reportCenterOverview")
    public AjaxResult overview(@RequestParam(required = false) String startDate,
                               @RequestParam(required = false) String endDate) {
        return AjaxResult.success(reportCenterService.overview(startDate, endDate));
    }
}