| | |
| | | package cn.gistack.sm.sg.controller; |
| | | |
| | | import cn.gistack.sm.sg.DO.SgDeviceDO; |
| | | import cn.gistack.sm.sg.DO.SgGxStepDO; |
| | | import cn.gistack.sm.sg.DTO.SgDeviceSearchDTO; |
| | | import cn.gistack.sm.sg.service.SgDeviceService; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | } |
| | | |
| | | @GetMapping(value = "/getDeviceList") |
| | | public R queryPageList(@RequestParam(name="programId",required=true) String programId) { |
| | | public R getDeviceList(@RequestParam(name="programId",required=true) String programId) { |
| | | List<SgDeviceDO> page = sgDeviceService.getDeviceList(programId); |
| | | return R.data(page); |
| | | } |
| | | |
| | | @GetMapping(value = "/getStepList") |
| | | public R queryStepList(@RequestParam(name="deviceId",required=true) String deviceId) { |
| | | List<SgGxStepDO> page = sgDeviceService.queryStepList(deviceId); |
| | | return R.data(page); |
| | | } |
| | | } |