| | |
| | | import io.swagger.annotations.ApiResponses; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @ApiOperation(value = "获取床位信息", notes = "获取床位信息") |
| | | @PostMapping(value = "/showFreedBed") |
| | | public AjaxResult showFreedBed(@RequestBody FreeBedDto freeBedDto) { |
| | | public AjaxResult showFreedBed(@RequestBody @Validated FreeBedDto freeBedDto) { |
| | | SysProjServices sysProjServices = new SysProjServices(); |
| | | sysProjServices.setStartTime(freeBedDto.getStartTime()); |
| | | sysProjServices.setTotalTime(freeBedDto.getTotalTime()); |