|
|
|
@ -90,6 +90,20 @@ public class PsdcDeviceController extends BaseController { |
|
|
|
|
return AjaxResult.success("用户下拉列表", maps); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:device:list')") |
|
|
|
|
@RequestMapping(value = "/selmodels", method = RequestMethod.GET) |
|
|
|
|
public AjaxResult selAllModels() { |
|
|
|
|
List<Map> maps = new ArrayList<>(); |
|
|
|
|
List<PsdcDevice> list = psdcDeviceService.selalldevModel(); |
|
|
|
|
for (PsdcDevice dd : list){ |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("label", dd.getDeviceModel()); |
|
|
|
|
map.put("value", dd.getDeviceModel()); |
|
|
|
|
maps.add(map); |
|
|
|
|
} |
|
|
|
|
return AjaxResult.success("模型下拉列表", maps); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:device:list')") |
|
|
|
|
@RequestMapping(value = "/devicesList", method = RequestMethod.POST) |
|
|
|
|
public TableDataInfo controlLogList(@RequestBody JSONObject jsonObject) { |
|
|
|
|