| | |
| | | |
| | | import com.moral.api.entity.Device; |
| | | import com.moral.api.entity.MonitorPoint; |
| | | import com.moral.api.entity.Organization; |
| | | import com.moral.api.pojo.vo.device.AppDeviceVo; |
| | | import com.moral.api.service.DeviceService; |
| | | import com.moral.api.service.MonitorPointService; |
| | | import com.moral.api.service.OrganizationService; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.api.service.SpecialDeviceService; |
| | | import com.moral.constant.ResultMessage; |
| | | |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private DeviceService deviceService; |
| | | |
| | | @Autowired |
| | | private SpecialDeviceService specialDeviceService; |
| | | |
| | | |
| | | |
| | |
| | | @GetMapping("fuzzySearch") |
| | | @ApiOperation(value = "小程序模糊搜索") |
| | | public ResultMessage fuzzySearch(@RequestParam @ApiParam(value = "mac",name = "设备mac号") String mac){ |
| | | List<Device> devices = deviceService.getFuzzySearch(mac); |
| | | List<AppDeviceVo> devices = deviceService.getFuzzySearch(mac); |
| | | return ResultMessage.ok(devices); |
| | | } |
| | | |
| | | |
| | | @GetMapping("specialDevice") |
| | | @ApiOperation(value = "查询特殊设备") |
| | | public ResultMessage selectSpecialDevice(){ |
| | | List<AppDeviceVo> appDeviceVos = specialDeviceService.selectSpecialDevice(); |
| | | return ResultMessage.ok(appDeviceVos); |
| | | } |
| | | } |