zss
2024-12-17 aad28a866d7d200e1228f7a5d053348e7f9653a4
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.yuanchu.mom.controller;
 
 
import com.yuanchu.mom.annotation.ValueAuth;
import com.yuanchu.mom.annotation.ValueClassify;
import com.yuanchu.mom.service.ReportService;
import com.yuanchu.mom.vo.Result;
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.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@AllArgsConstructor
@RequestMapping("/report")
@Api(tags = "报表模块")
public class ReportController {
 
    private ReportService reportService;
 
    @ValueClassify("统计图表")
    @ApiOperation(value = "查询每日业务统计")
    @GetMapping("/businessStatisticsByDay")
    public Result businessStatisticsByDay(String startTime,String endTime,String type){
        return Result.success(reportService.businessStatisticsByDay(startTime,endTime,type));
    }
    @ValueClassify("统计图表")
    @ApiOperation(value = "查询检测项目统计")
    @GetMapping("/testProductByDay")
    public Result testProductByDay(String startTime,String endTime,String type){
        return Result.success(reportService.testProductByDay(startTime,endTime,type));
    }
    @ValueAuth
    @ApiOperation(value = "查询日历任务图")
    @GetMapping("/calendarWorkByWeek")
    public Result calendarWorkByWeek(){
        return Result.success(reportService.calendarWorkByWeek());
    }
 
    @ValueAuth
    @ApiOperation(value = "添加日程")
    @PostMapping("/addSchedule")
    public Result addSchedule(String time, String text){
        return Result.success(reportService.addSchedule(time,text));
    }
    @ValueAuth
    @ApiOperation(value = "查询我的日程")
    @PostMapping("/ScheduleByMe")
    public Result ScheduleByMe(String date){
        return Result.success(reportService.ScheduleByMe(date));
    }
 
    @ValueAuth
    @ApiOperation(value = "各站点工时")
    @PostMapping("/manHourByStation")
    public Result manHourByStation(String startTime,String endTime){
        return Result.success(reportService.manHourByStation(startTime,endTime));
    }
 
    @ValueAuth
    @ApiOperation(value = "各站点工时每个人所占百分比")
    @PostMapping("/manHourByPerson")
    public Result manHourByPerson(String startTime,String endTime){
        return Result.success(reportService.manHourByPerson(startTime,endTime));
    }
}