.gitignore | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
.idea/.gitignore | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
.idea/encodings.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
.idea/misc.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
.idea/uiDesigner.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/gkhy/firework/schedule/OrderSyncTask.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/test/java/com/gkhy/firework/TestDemo.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
.gitignore
@@ -36,4 +36,5 @@ .vscode/ ### Mac OS ### .DS_Store .DS_Store .idea .idea/.gitignore
文件已删除 .idea/encodings.xml
文件已删除 .idea/misc.xml
文件已删除 .idea/uiDesigner.xml
文件已删除 src/main/java/com/gkhy/firework/schedule/OrderSyncTask.java
@@ -41,6 +41,7 @@ Integer pageIndex=1; List<TLsXjlstm> tLsXjlstmList = new ArrayList<>(); List<Long> orderIds=new ArrayList<>(); Integer orderCount=0; log.info("丹灵同步开始:{}",new Date()); while(true) { log.info("enterprise pageIndex={}",pageIndex); @@ -69,7 +70,7 @@ if (orderInfos == null || orderInfos.size() == 0) { break; } orderCount=orderInfos.size()+orderCount; for (SaleorderSlice1 saleorderSlice1 : orderInfos) { Long count = saleorderdetailSlice1Service.count(Wrappers.<SaleorderdetailSlice1>lambdaQuery() .eq(SaleorderdetailSlice1::getOrdercode, saleorderSlice1.getCode())); @@ -119,6 +120,6 @@ .in(SaleorderSlice1::getId,orderIds)); orderIds.clear(); } log.info("丹灵同步结束:{}",new Date()); log.info("丹灵同步结束:{},总共传输数量:{}",new Date(),orderCount); } } src/test/java/com/gkhy/firework/TestDemo.java
@@ -1,10 +1,8 @@ package com.gkhy.firework; import com.gkhy.firework.schedule.OrderSyncTask; import lombok.extern.slf4j.Slf4j; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @@ -13,12 +11,12 @@ //@ActiveProfiles("dev") @Slf4j public class TestDemo { @Autowired private OrderSyncTask orderSyncTask; @Test public void testSync(){ orderSyncTask.syncDLTask(); public void testStr(){ String idstr="65430119830313043X"; System.out.println(idstr.substring(6,14)); } }