FengChaoYu hai 3 semanas
pai
achega
a43da4142a

+ 3 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/comlist/ComListLogic.java

@@ -1,6 +1,7 @@
 package com.gree.mall.manager.logic.comlist;
 
 import cn.hutool.core.collection.CollectionUtil;
+import cn.hutool.json.JSONUtil;
 import com.alibaba.excel.write.metadata.style.WriteCellStyle;
 import com.alibaba.excel.write.metadata.style.WriteFont;
 import com.alibaba.fastjson.JSONObject;
@@ -595,6 +596,8 @@ public class ComListLogic {
                 .eq(ComList::getType, "CENTER")
                 .eq(ComList::getCenterUp, 0).list();
 
+        log.info("查询文件下发列表 {}", JSONUtil.toJsonStr(comListList));
+
         if (!CollectionUtil.isEmpty(comListList)){
             for (ComList comList : comListList) {
                 List<ComDetail> list = comDetailService.lambdaQuery()

+ 1 - 16
mall-server-api/src/main/java/com/gree/mall/manager/schedule/ComListSchedule.java

@@ -1,27 +1,12 @@
 package com.gree.mall.manager.schedule;
 
-import cn.hutool.core.date.DateUtil;
-import com.github.binarywang.wxpay.exception.WxPayException;
-import com.gree.mall.manager.enums.workorder.OrderBaseStatusEnum;
 import com.gree.mall.manager.logic.comlist.ComListLogic;
-import com.gree.mall.manager.logic.common.WechatLogic;
-import com.gree.mall.manager.logic.websit.SettlementOrderLogic;
-import com.gree.mall.manager.logic.workorder.OrderBaseLogic;
-import com.gree.mall.manager.plus.entity.PgOrderBase;
-import com.gree.mall.manager.plus.entity.SettlementOrder;
-import com.gree.mall.manager.plus.service.PgOrderBaseService;
-import com.gree.mall.manager.plus.service.SettlementOrderService;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 import org.springframework.transaction.annotation.Transactional;
-import org.springframework.util.CollectionUtils;
-
-import java.util.Date;
-import java.util.List;
-import java.util.stream.Collectors;
 
 /**
  * 中心文件上传
@@ -42,7 +27,7 @@ public class ComListSchedule {
      * 生成抢单通知
      */
     @Transactional
-    @Scheduled(fixedDelay = 1*60 * 1000)
+    @Scheduled(fixedDelay = 60 * 1000)
     public void task() {
         comListLogic.upFile();
     }