| | |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="巡查记录-通过id查询", notes="子设备-通过id查询") |
| | | @ApiOperation(value="子设备-通过id查询", notes="子设备-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public R queryById(@RequestParam(name="id",required=true) String id) { |
| | | SgDeviceDO sgDeviceDO = sgDeviceService.getById(id); |
| | | SgDeviceDO sgDeviceDO = sgDeviceService.getSgDeviceById(id); |
| | | return R.data(sgDeviceDO); |
| | | } |
| | | |
| | | @GetMapping(value = "/getDeviceList") |
| | | public R queryPageList(@RequestParam(name="programId",required=true) String programId) { |
| | | List<SgDeviceDO> page = sgDeviceService.getDeviceList(programId); |
| | | return R.data(page); |
| | | } |
| | | } |