| | |
| | | package com.yuanchu.mom.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | | import com.yuanchu.mom.annotation.ValueClassify; |
| | | import com.yuanchu.mom.dto.SampleOrderDto; |
| | | 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.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Map; |
| | | 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 |
| | |
| | | public class ReportController { |
| | | |
| | | private ReportService reportService; |
| | | @ValueAuth |
| | | |
| | | @ValueClassify("统计图表") |
| | | @ApiOperation(value = "每日业务统计") |
| | | @GetMapping("/businessStatisticsByDay") |
| | | public Result businessStatisticsByDay(){ |
| | | return Result.success(reportService.businessStatisticsByDay()); |
| | | } |
| | | @ValueAuth |
| | | @ValueClassify("统计图表") |
| | | @ApiOperation(value = "检测项目统计") |
| | | @GetMapping("/testProductByDay") |
| | | public Result testProductByDay(){ |
| | | return Result.success(reportService.testProductByDay()); |
| | | } |
| | | @ValueAuth |
| | | @ApiOperation(value = "首页-->日历任务图") |
| | | @ApiOperation(value = "日历任务图") |
| | | @GetMapping("/calendarWorkByWeek") |
| | | public Result calendarWorkByWeek(){ |
| | | return Result.success(reportService.calendarWorkByWeek()); |
| | | } |
| | | @ValueClassify("个人首页") |
| | | @ApiOperation(value = "首页-->添加日程") |
| | | @ApiOperation(value = "添加日程") |
| | | @PostMapping("/addSchedule") |
| | | public Result addSchedule(String time, String text){ |
| | | return Result.success(reportService.addSchedule(time,text)); |
| | | } |
| | | @ValueAuth |
| | | @ApiOperation(value = "首页-->我的日程") |
| | | @ApiOperation(value = "我的日程") |
| | | @PostMapping("/ScheduleByMe") |
| | | public Result ScheduleByMe(String date){ |
| | | return Result.success(reportService.ScheduleByMe(date)); |