| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | |
| | | import com.yuanchu.limslaboratory.pojo.ProjectNum; |
| | | import com.yuanchu.limslaboratory.pojo.vo.ProjectNumVo; |
| | | 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.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 首页 |
| | |
| | | @ApiOperation("计算检验与未检验的单子与项目的数量接口") |
| | | @GetMapping("/checkProjectNum") |
| | | public Result checkProjectNum() { |
| | | ProjectNum projectNum=homeService.checkProjectNum(); |
| | | return Result.success(projectNum); |
| | | ProjectNumVo projectNumVo =homeService.checkProjectNum(); |
| | | return Result.success(projectNumVo); |
| | | } |
| | | |
| | | @ApiOperation("已检验top3") |
| | | @GetMapping("/checktop3") |
| | | public Result checktop3() { |
| | | List<Map<String, Object>> checktop3s =homeService.checktop3(); |
| | | return Result.success(checktop3s); |
| | | } |
| | | } |