瀏覽代碼

完善获取收款记录异常处理逻辑

cgp 5 天之前
父節點
當前提交
6eb29d3195

+ 2 - 2
fs-admin/src/main/java/com/fs/his/task/Task.java

@@ -2559,8 +2559,8 @@ public class Task {
         List<QwCompany> qwCompanyList = qwCompanyService.selectQwCompanyList(qwCompany);
         // 当前时间(东八区)
         LocalDateTime now = LocalDateTime.now(ZoneOffset.ofHours(8));
-        // 前天 00:00:00
-        LocalDateTime start = now.minusDays(1).withHour(0).withMinute(0).withSecond(0);
+        // 前30天 00:00:00
+        LocalDateTime start = now.minusDays(30).withHour(0).withMinute(0).withSecond(0);
 
         long beginTime = start.toEpochSecond(ZoneOffset.ofHours(8));
         long endTime = now.toEpochSecond(ZoneOffset.ofHours(8));

+ 1 - 2
fs-service/src/main/java/com/fs/qw/service/impl/FsCompanyExternalPayReceiptServiceImpl.java

@@ -12,7 +12,6 @@ import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.CollectionUtils;
 
 import java.util.Collections;
@@ -31,7 +30,7 @@ public class FsCompanyExternalPayReceiptServiceImpl implements IFsCompanyExterna
 
     // 同步收、退款记录(定时任务同步或手动同步)
     @Override
-    // 注意:移除 @Transactional,因为每个企业独立处理,一个失败不回滚其他企业
+    //移除 @Transactional,每个企业独立处理,一个失败不回滚其他企业
     public void syncReceipts(Long beginTime, Long endTime, String payeeUserid, List<QwCompany> qwCompanyList) {
         if (CollectionUtils.isEmpty(qwCompanyList)) {
             log.info("企业列表为空,无需同步");