|
@@ -3,6 +3,7 @@ package com.usky.transfer.controller.api;
|
|
import com.usky.common.core.bean.ApiResult;
|
|
import com.usky.common.core.bean.ApiResult;
|
|
import com.usky.transfer.RemoteTransferService;
|
|
import com.usky.transfer.RemoteTransferService;
|
|
import com.usky.transfer.domain.*;
|
|
import com.usky.transfer.domain.*;
|
|
|
|
+import com.usky.transfer.service.DmpProductService;
|
|
import com.usky.transfer.service.QueryInfluxdbDataService;
|
|
import com.usky.transfer.service.QueryInfluxdbDataService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -14,6 +15,26 @@ public class DataTransferControllerApi implements RemoteTransferService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private QueryInfluxdbDataService queryInfluxdbDataService;
|
|
private QueryInfluxdbDataService queryInfluxdbDataService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private DmpProductService dmpProductService;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 删除产品缓存信息
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public ApiResult<Void> deleteProductCache(){
|
|
|
|
+ dmpProductService.deleteProductCache();
|
|
|
|
+ return ApiResult.success();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 删除设备缓存信息
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public ApiResult<Void> deleteDeviceCache(String productCode){
|
|
|
|
+ dmpProductService.deleteDeviceCache(productCode);
|
|
|
|
+ return ApiResult.success();
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 单个设备数据写入
|
|
* 单个设备数据写入
|