|
@@ -29,24 +29,49 @@ public class DeviceAnalogVariableListController {
|
|
|
@Autowired
|
|
|
private DeviceAnalogVariableListService deviceAnalogVariableListService;
|
|
|
|
|
|
+ /**
|
|
|
+ * 站点管理-变量列表-新增
|
|
|
+ * @param deviceAnalogVariableList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@GetMapping("variableListAdd")
|
|
|
public ApiResult<Void> variableListAdd(@RequestBody DeviceAnalogVariableList deviceAnalogVariableList) {
|
|
|
deviceAnalogVariableListService.variableListAdd(deviceAnalogVariableList);
|
|
|
return ApiResult.success();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 站点管理-变量列表-修改
|
|
|
+ * @param deviceAnalogVariableList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@GetMapping("variableListUpdate")
|
|
|
public ApiResult<Void> variableListUpdate(@RequestBody DeviceAnalogVariableList deviceAnalogVariableList) {
|
|
|
deviceAnalogVariableListService.variableListUpdate(deviceAnalogVariableList);
|
|
|
return ApiResult.success();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 站点管理-变量列表-注销
|
|
|
+ * @param id 变量列表主键ID
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+
|
|
|
@GetMapping("variableListDel")
|
|
|
public ApiResult<Void> variableListDel(@RequestParam int id) {
|
|
|
deviceAnalogVariableListService.variableListDel(id);
|
|
|
return ApiResult.success();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 站点管理-变量列表-列表查询
|
|
|
+ * @param deviceCode 设备编号
|
|
|
+ * @param screen 筛选条件
|
|
|
+ * @param size 页数
|
|
|
+ * @param current 条数
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+
|
|
|
@GetMapping("variableList")
|
|
|
public ApiResult<CommonPage<DeviceAnalogVariableList>> variableList(@RequestParam(required = false) String deviceCode,
|
|
|
@RequestParam(required = false) String screen,
|