Pārlūkot izejas kodu

更新文档和定时任务同步数据

蓝盒子itbluebox 1 gadu atpakaļ
vecāks
revīzija
6dddcd15d1

+ 4 - 0
README.md

@@ -4,5 +4,9 @@
 实现数据同步
 
 
+定时任务类所在位置
+
+![img.png](img.png)
+
 
 

BIN
img.png


+ 0 - 1
src/main/java/com/trs/ggzyexchange/GgzyExchangeApplication.java

@@ -8,7 +8,6 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
 import org.springframework.scheduling.annotation.EnableScheduling;
 
 /*
-
 @SpringBootApplication
 @MapperScan("com.trs.ggzyexchange.mapper")
 public class GgzyExchangeApplication extends SpringBootServletInitializer {

+ 7 - 0
src/main/java/com/trs/ggzyexchange/schedul/GcNoticeandfileSchedul.java

@@ -310,6 +310,13 @@ public class GcNoticeandfileSchedul  implements Job {
                         }
                     }
                 }
+                try {
+                    bidSectionCodes = bidSectionCodes.replaceAll(",",";");
+                    bidSectionCodes = bidSectionCodes.replaceAll("<br",";");
+                }catch (Exception e){
+                    e.printStackTrace();
+                }
+                record.setBidSectionCodes(bidSectionCodes);
                 TenderDetailsVoUtils.isNull(record);
             }
         }

+ 2 - 0
src/main/java/com/trs/ggzyexchange/schedul/GcTenderbidfileSchedul.java

@@ -183,6 +183,8 @@ public class GcTenderbidfileSchedul   implements Job {
                 String url = gcAttachment.getUrl();
                 file += "<a href='"+ url +"'>"+ attachmentName +"</a><br/>";
             }
+            //招标文件拼接地址
+            //record.setNoticeContent(file);
             record.setNoticeContent(file);
             TenderDetailsVoUtils.isNull(record);
         }

+ 5 - 0
src/test/java/com/trs/ggzyexchange/GgzyExchangeApplicationTests.java

@@ -16,6 +16,7 @@ import com.trs.ggzyexchange.service.GcNoticeandfileService;
 import com.trs.ggzyexchange.service.OtherTradePubInfoService;
 import com.trs.ggzyexchange.service.OtherTradeResultInfoService;
 import com.trs.ggzyexchange.utils.DateUtils;
+import com.trs.ggzyexchange.utils.RestHighLevelClientUtils;
 import com.trs.ggzyexchange.utils.TenderDetailsVoUtils;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.ObjectUtils;
@@ -49,8 +50,12 @@ class GgzyExchangeApplicationTests {
     @Autowired
     private ZrzyBgBidwinNoticeSchedul zrzyBgBidwinNoticeSchedul;
 
+    @Autowired
+    private RestHighLevelClientUtils restHighLevelClientUtils;
+
     @Test
     void test001() throws Exception{
+        restHighLevelClientUtils.deleteDoc(ClassIfy.ES_INDEX_SEARCH_PUBLIC_RESOURCE_DEAL.getCode(),"00192743816f474badd6df832a357b3e");
         //zrzyBgBidwinNoticeSchedul.execute();
     }
 }