¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | import com.yuanchu.limslaboratory.pojo.vo.PlanVo; |
| | | import com.yuanchu.limslaboratory.service.PlanService; |
| | | 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.format.annotation.DateTimeFormat; |
| | | 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.*; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2023-08-09 |
| | | */ |
| | | @Api(tags = "æ£éªæ¨¡å-->æ£éªè®¡å") |
| | | @RestController |
| | | @RequestMapping("/plan") |
| | | public class PlanController { |
| | | |
| | | @Resource |
| | | private PlanService planService; |
| | | |
| | | |
| | | @ApiOperation("æ¥è¯¢æ£éªè®¡å") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "device", value = "设å¤åç§°Id", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "beginTime", value = "æ£éªå¼å§æ¶é´", dataTypeClass = Date.class), |
| | | @ApiImplicitParam(name = "endTime", value = "æ£éªç»ææ¶é´", dataTypeClass = Date.class), |
| | | @ApiImplicitParam(name = "user", value = "æ£éªäºº", dataTypeClass = String.class) |
| | | }) |
| | | @GetMapping("/selectAllPlan") |
| | | public Result selectAllPlan(String device, @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime, String user) { |
| | | List<PlanVo> planVoList = planService.selectAllPlan(device, beginTime, endTime, user); |
| | | return Result.success(planVoList); |
| | | } |
| | | } |