| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.limslaboratory.pojo.vo.PlanVo; |
| | | import com.yuanchu.limslaboratory.service.PlanService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | |
| | | |
| | | @ApiOperation("查询检验计划") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "deviceId", value = "设备名称Id", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "device", value = "设备名称Id", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "beginTime", value = "检验开始时间", dataTypeClass = Date.class), |
| | | @ApiImplicitParam(name = "endTime", value = "检验结束时间", dataTypeClass = Date.class), |
| | | @ApiImplicitParam(name = "userId", value = "检验人", dataTypeClass = Integer.class) |
| | | @ApiImplicitParam(name = "user", value = "检验人", dataTypeClass = String.class) |
| | | }) |
| | | @GetMapping("/selectAllPlan") |
| | | public Result selectAllPlan(Integer deviceId, @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime, Integer userId) { |
| | | List<PlanVo> planVoList = planService.selectAllPlan(deviceId, beginTime, endTime, userId); |
| | | 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); |
| | | } |
| | | } |