Forráskód Böngészése

修复up.xml地址

dsx 2 éve
szülő
commit
ff12c9202c

+ 14 - 0
src/main/java/com/fdkankan/job/controller/SceneProController.java

@@ -1,6 +1,10 @@
 package com.fdkankan.job.controller;
 
 
+import com.fdkankan.job.service.IRepairUpXmlUrlService;
+import com.fdkankan.web.response.ResultData;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 
 import org.springframework.web.bind.annotation.RestController;
@@ -17,5 +21,15 @@ import org.springframework.web.bind.annotation.RestController;
 @RequestMapping("/job/scenePro")
 public class SceneProController {
 
+    @Autowired
+    private IRepairUpXmlUrlService repairUpXmlUrlService;
+
+
+    @GetMapping("/test")
+    public ResultData test(){
+        repairUpXmlUrlService.repairSceneUpXmlUrlOfVideos();
+        return ResultData.ok();
+    }
+
 }
 

+ 3 - 3
src/main/java/com/fdkankan/job/service/impl/RepairUpXmlUrlServiceImpl.java

@@ -73,7 +73,7 @@ public class RepairUpXmlUrlServiceImpl implements IRepairUpXmlUrlService {
 
         int index = 0;
         int size = 200;
-        boolean exit = false;
+        boolean out = false;
         List<ScenePlusExt> plusExtList = new ArrayList<>();
         do {
             scenePlusExtQueryWrapper.last("limit " + index + "," + size);
@@ -82,9 +82,9 @@ public class RepairUpXmlUrlServiceImpl implements IRepairUpXmlUrlService {
                 plusExtList.addAll(subList);
                 index += size;
             }else{
-                exit = true;
+                out = true;
             }
-        }while (exit);
+        }while (!out);
 
         if(CollUtil.isEmpty(plusExtList)){
             return;