|
@@ -9,6 +9,7 @@ import com.zcxk.rmcp.api.dto.device.DeviceQueryDto;
|
|
|
import com.zcxk.rmcp.api.dto.device.ValveDto;
|
|
|
import com.zcxk.rmcp.api.vo.*;
|
|
|
import com.zcxk.rmcp.core.mongo.DeviceDataItem;
|
|
|
+import com.zcxk.rmcp.web.logAdvice.LogAnnotation;
|
|
|
import com.zcxk.rmcp.web.service.DeviceDataService;
|
|
|
import com.zcxk.rmcp.web.service.DeviceService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -54,6 +55,7 @@ public class DeviceController {
|
|
|
@ResponseBody
|
|
|
@GetMapping("/getDeviceListExcel")
|
|
|
@ApiOperation(value = "导出设备列表excel")
|
|
|
+ @LogAnnotation(module = "【档案管理】导出")
|
|
|
public void getDeviceListExcel(
|
|
|
@Valid DeviceQueryDto dto,
|
|
|
HttpServletResponse httpServletResponse
|
|
@@ -75,6 +77,7 @@ public class DeviceController {
|
|
|
|
|
|
|
|
|
@PostMapping("add")
|
|
|
+ @LogAnnotation(module = "【档案管理】添加")
|
|
|
@ApiOperation(value = "添加设备")
|
|
|
public AjaxMessage<Void> add(
|
|
|
@ApiParam(value = "设备", required = true) @RequestBody(required = true) @Valid DeviceInputDto device
|
|
@@ -85,6 +88,7 @@ public class DeviceController {
|
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
+ @LogAnnotation(module = "【档案管理】编辑")
|
|
|
@PostMapping("edit")
|
|
|
@ApiOperation(value = "编辑设备")
|
|
|
public AjaxMessage<Void> edit(
|
|
@@ -95,6 +99,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ResponseBody
|
|
|
+ @LogAnnotation(module = "【档案管理】删除")
|
|
|
@PostMapping("batchDelete")
|
|
|
@ApiOperation(value = "批量删除")
|
|
|
public AjaxMessage<Void> batchDelete(
|
|
@@ -105,6 +110,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ResponseBody
|
|
|
+ @LogAnnotation(module = "【档案管理】全部删除")
|
|
|
@PostMapping("allDelete")
|
|
|
@ApiOperation(value = "全部删除")
|
|
|
public AjaxMessage<Void> allDelete(
|
|
@@ -116,6 +122,7 @@ public class DeviceController {
|
|
|
|
|
|
@GetMapping("/downTemplate")
|
|
|
@ApiOperation(value = "下载Execl模板", notes = "下载Execl模板")
|
|
|
+ @LogAnnotation(module = "【档案管理】下载模板")
|
|
|
public void downTemplate(
|
|
|
@ApiParam(value = "分类id", required = true) @RequestParam(required = true) Integer categoryId,
|
|
|
@ApiParam(value = "access_token", required = true) @RequestParam(required = true) String access_token,
|