| | |
| | | |
| | | |
| | | import com.yuanchu.limslaboratory.pojo.vo.ProjectNumVo; |
| | | import com.yuanchu.limslaboratory.pojo.vo.StatisticsDataVo; |
| | | import com.yuanchu.limslaboratory.service.HomeService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @Resource |
| | | HomeService homeService; |
| | | |
| | | @ApiOperation("计算检验与未检验的单子与项目的数量接口") |
| | | @ApiOperation("计算检验与未检验的单子与项目的数量") |
| | | @GetMapping("/checkProjectNum") |
| | | public Result checkProjectNum() { |
| | | ProjectNumVo projectNumVo =homeService.checkProjectNum(); |
| | |
| | | List<Map<String, Object>> checktop3s =homeService.checktop3(); |
| | | return Result.success(checktop3s); |
| | | } |
| | | |
| | | @ApiOperation("未检验top4") |
| | | @GetMapping("/unchecktop4") |
| | | public Result unchecktop4() { |
| | | List<Map<String, Object>> unchecktop4s =homeService.unchecktop4(); |
| | | return Result.success(unchecktop4s); |
| | | } |
| | | |
| | | @ApiOperation("计算原材料与成品的合格率") |
| | | @GetMapping("/qualified") |
| | | public Result qualified() { |
| | | StatisticsDataVo statisticsData =homeService.qualified(); |
| | | return Result.success(statisticsData); |
| | | } |
| | | |
| | | @ApiOperation("统计") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "type", value = "1:本周;2:本月;3:本年", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @GetMapping("/turno") |
| | | public Result turno(Integer type) { |
| | | return Result.success(homeService.turno(type)); |
| | | } |
| | | } |