调整权益使用记录同步逻辑

This commit is contained in:
郭诚奇
2025-10-24 16:27:19 +08:00
parent ae288008de
commit 566892608e

View File

@@ -62,9 +62,9 @@ public class SyncBenefitUseRecord implements Job {
List<ConfigCodeDTO> configCodeServiceRes2 = configCodeService.list(configCodeQueryDTO).getContent();
if (CollUtil.isEmpty(configCodeServiceRes2)) {
log.info("首次同步上次同步时间置为1年前");
startTime = (System.currentTimeMillis() - 365L * 24 * 60 * 60 * 1000) / 1000;
startTime = (System.currentTimeMillis() - 30L * 24 * 60 * 60 * 1000) / 1000;
} else {
startTime = Long.parseLong(configCodeServiceRes2.get(0).getCodeLabel());
startTime = Long.parseLong(configCodeServiceRes2.get(0).getCodeLabel()) + 1;
}
long endTime = System.currentTimeMillis() / 1000;
InterfaceExecuteDTO interfaceExecuteDTO = new InterfaceExecuteDTO();