| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.sql.Date; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | |
| | | } |
| | | |
| | | @ApiOperation("查询维修保养数据接口") |
| | | @PostMapping ("/selectMaintenance") |
| | | public Result selectMaintenance() { |
| | | return Result.seccess(deviceMaintenanceService.selectMaintenanceSv()); |
| | | @PostMapping ("/selectMaintenance/{selectTime1}/{selectTime2}") |
| | | public Result selectMaintenance( |
| | | @PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2 |
| | | ) { |
| | | return Result.seccess(deviceMaintenanceService.selectMaintenanceSv(selectTime1,selectTime2)); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("查询设备管理接口") |
| | | @PostMapping ("/selectMachine") |
| | | public Result selectMachine() { |
| | | return Result.seccess(deviceMaintenanceService.selectMachineSv()); |
| | | } |
| | | |
| | | @ApiOperation("根据Id查询对应数据接口") |
| | | @PostMapping ("/openSelectId/{id}") |
| | | public Result openSelectId( |
| | | @PathVariable String id){ |
| | | return Result.seccess(deviceMaintenanceService.openSelectIdSv(id)); |
| | | |
| | | } |
| | | } |