ccjgmwz 3 년 전
부모
커밋
9d0454cd1e

+ 2 - 2
unimall-admin-api/src/main/java/com/iotechn/unimall/admin/AdminCheckQuartz.java

@@ -109,7 +109,7 @@ public class AdminCheckQuartz {
     /**
      * 订单数据定时轮训处理 每小时执行一次
      */
-    @Scheduled(cron = "0 0 7-20 * * ? ")
+    @Scheduled(cron = "0 0 7-22 * * ? ")
     public void task1(){
         new Thread(new Runnable() {
             @Override
@@ -724,7 +724,7 @@ public class AdminCheckQuartz {
                                 }
                                 tmp.setDangOrder(dangOrder);
                                 tmp.setAccountId(shopAccount.getId());
-                                Long time = Long.parseLong(tmp.getShippingTime());
+                                Long time  = Long.parseLong(tmp.getShippingTime())+8*60*60;
                                 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                                 sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
                                 String time1 = sdf.format(new Date(time * 1000));

+ 2 - 2
unimall-admin-api/src/main/java/com/iotechn/unimall/admin/api/user/AdminUserServiceImpl.java

@@ -637,7 +637,7 @@ public class AdminUserServiceImpl implements AdminUserService {
                                 }
                                 tmp.setDangOrder(dangOrder);
                                 tmp.setAccountId(shopAccount.getId());
-                                Long time = Long.parseLong(tmp.getShippingTime());
+                                Long time  = Long.parseLong(tmp.getShippingTime())+8*60*60;
                                 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                                 sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
                                 String time1 = sdf.format(new Date(time * 1000));
@@ -668,7 +668,7 @@ public class AdminUserServiceImpl implements AdminUserService {
                     }
                 }
             }
-            doSomething2();
+//            doSomething2();
         }
         catch (Exception e){
             ShopLog shopLog = new ShopLog();