chenlei1231 2 dni temu
rodzic
commit
25bee16b2f

+ 5 - 2
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/xxl/EnquiryEmailSenderJob.java

@@ -10,6 +10,7 @@ import java.util.Date;
 import java.util.List;
 import java.util.stream.Collectors;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
 import org.jeecg.common.constant.CommonConstant;
 import org.jeecg.common.system.vo.DictModel;
 import org.jeecg.common.util.DateUtils;
@@ -32,7 +33,7 @@ public class EnquiryEmailSenderJob {
   @Resource private ISysDictService sysDictService;
 
   @XxlJob("EnquiryEmailSenderJobHandler")
-  public ReturnT<String> EnquiryEmailSenderJobHandler() {
+  public ReturnT<String> EnquiryEmailSenderJobHandler(String param) {
     log.info("询盘邮件发送 EnquiryEmailSenderJob !  时间:{}", DateUtils.getTimestamp());
 
     String keyName = CommonConstant.ADWEB_PREFIX + this.getClass().getSimpleName();
@@ -44,7 +45,9 @@ public class EnquiryEmailSenderJob {
     try {
 
       // 重发邮件数量,默认数量
-      String param = "50";
+      if (StringUtils.isEmpty(param)) {
+        param = "50";
+      }
 
       List<DictModel> dictItems = sysDictService.queryDictItemsByCode("enquiry_email_timeout");
       int sendEmailTimeout = 30;