|
@@ -1,6 +1,7 @@
|
|
|
package com.gis.controller;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
+import cn.hutool.core.util.ObjUtil;
|
|
|
import com.fdkankan.filestorage.FileStorageTemplate;
|
|
|
import com.gis.common.constant.ConfigConstant;
|
|
|
import com.gis.common.mq.RabbitMqProducerUtil;
|
|
@@ -76,7 +77,8 @@ public class TestController extends BaseController {
|
|
|
@Value("${queue.do-slice-queue}")
|
|
|
String doSliceQueue;
|
|
|
|
|
|
-
|
|
|
+ @Value("${queue.update-scene-title:#{null}}")
|
|
|
+ String updateSceneTitle;
|
|
|
/**
|
|
|
* 直接文件流响应前端,测试成功
|
|
|
* 浏览器:http://127.0.0.1:8112/test/testFrontStream
|
|
@@ -382,4 +384,23 @@ public class TestController extends BaseController {
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ 修复同步问题
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "修复2.0.1的场景名称同步问题", notes = "修复2.0.1的场景名称同步问题")
|
|
|
+ @GetMapping("/fixTitle")
|
|
|
+ public Result fixTitle() {
|
|
|
+ List<WorkEntity> all = workService.list();
|
|
|
+ for (WorkEntity workEntity : all) {
|
|
|
+ if (ObjUtil.isNotEmpty(workEntity.getNum())){
|
|
|
+ Map<String,Object> fdkkMap=new HashMap<>();
|
|
|
+ fdkkMap.put("sceneNewTitle",workEntity.getName());
|
|
|
+ fdkkMap.put("sceneNum",workEntity.getNum());
|
|
|
+ rabbitMqProducer.sendByWorkQueue(updateSceneTitle,fdkkMap);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
}
|