ccjgmwz 3 éve
szülő
commit
98b95e0d73

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

@@ -121,7 +121,7 @@ public class AdminCheckQuartz {
     /**
      * 订单数据定时轮训处理 每3小时执行一次
      */
-    @Scheduled(cron = "0 0 0/3 * * ?  ")
+    @Scheduled(cron = "0 0 0 1/1 * ? ")
     public void task2(){
         new Thread(new Runnable() {
             @Override
@@ -755,6 +755,7 @@ public class AdminCheckQuartz {
                     }
                 }
             }
+            doSomething2();
         }
         catch (Exception e){
             ShopLog shopLog = new ShopLog();

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

@@ -598,7 +598,7 @@ public class AdminUserServiceImpl implements AdminUserService {
     }
     private void doSomething2() {
         try{
-            List<ShopAccount> list = shopAccountMapper.selectList(new EntityWrapper<>());
+            List<ShopAccount> list = shopAccountMapper.selectList(new EntityWrapper<ShopAccount>().orderBy("id",false));
             for (ShopAccount shopAccount:list
             ) {
                 flushCookie(shopAccount);