Parcourir la source

万里牛订单同步逻辑修改

24282 il y a 1 an
Parent
commit
3571c94292

+ 2 - 1
sd-business/src/main/resources/mapper/order/OrderMapper.xml

@@ -15,7 +15,8 @@
                o.wln_approve_time,
                o.wln_print_time,
                o.delivery_time,
-               o.modify_time,
+               o.wln_modify_time,
+               o.wln_modify_timestamp,
                o.express_delivery_code,
                o.status,
                o.settlement_status,

+ 1 - 5
sd-wln/src/main/java/com/sd/wln/service/impl/WlnOrderServiceImpl.java

@@ -214,7 +214,7 @@ public class WlnOrderServiceImpl implements WlnOrderService {
     }
 
     /**
-     * 查询近3天万里牛订单
+     * 查询1天内万里牛订单
      */
     private List<JSONObject> getWlnOrderList(Date endDate) {
         List<DictCommonData> warehouseCodeList = dictCommonDataService.list(q -> q.eq(DictCommonData::getDictCode, "warehouse_code"));
@@ -228,7 +228,6 @@ public class WlnOrderServiceImpl implements WlnOrderService {
         long endTime = endDate.getTime();
         long startTime = endTime - 1000 * 60 * 60 * 24;
 
-        // for (int i = 0; i < 3; i++) {
         for (DictCommonData dictCommonData : warehouseCodeList) {
             int page = 1;
             int size;
@@ -244,9 +243,6 @@ public class WlnOrderServiceImpl implements WlnOrderService {
                 }
             } while (size >= 200);
         }
-        //     startTime -= 1000 * 60 * 60 * 24;
-        //     endTime -= 1000 * 60 * 60 * 24;
-        // }
 
         return list;
     }