| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.dto.SampleOrderDto; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | | import com.yuanchu.mom.annotation.ValueClassify; |
| | | import com.yuanchu.mom.service.ReportService; |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | | 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.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/report") |
| | | @Api("报表模块") |
| | | @Api(tags = "报表模块") |
| | | public class ReportController { |
| | | |
| | | private ReportService reportService; |
| | | |
| | | @ApiOperation(value = "每日业务统计") |
| | | @ValueClassify("统计图表") |
| | | @ApiOperation(value = "查询每日业务统计") |
| | | @GetMapping("/businessStatisticsByDay") |
| | | public Result businessStatisticsByDay(){ |
| | | return Result.success(reportService.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()); |
| | | } |
| | | |
| | | @ApiOperation(value = "检测项目统计") |
| | | @GetMapping("/testProductByDay") |
| | | public Result testProductByDay(){ |
| | | return Result.success(reportService.testProductByDay()); |
| | | @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,String sonLaboratory){ |
| | | return Result.success(reportService.manHourByStation(startTime,endTime,sonLaboratory)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | @ApiOperation(value = "各站点工时每个人所占百分比") |
| | | @PostMapping("/manHourByPerson") |
| | | public Result manHourByPerson(String startTime,String endTime,String sonLaboratory){ |
| | | return Result.success(reportService.manHourByPerson(startTime,endTime,sonLaboratory)); |
| | | } |
| | | |
| | | @ValueClassify("统计图表") |
| | | @ApiOperation(value = "查询站点的检验时长") |
| | | @PostMapping("/timeByStation") |
| | | public Result timeByStation(String startTime, String endTime, Page page,String sonLaboratory){ |
| | | return Result.success(reportService.timeByStation(startTime,endTime,page,sonLaboratory)); |
| | | } |
| | | } |