|
|
@@ -55,18 +55,18 @@ public class ScheduledTasks {
|
|
|
* 该方法在每天的9:45, 14:45, 20:45和23:45自动调用,用于处理云端部署环境下的消费记录对账。
|
|
|
* 如果对账过程中出现错误,会记录错误信息;如果成功,则记录警告消息。
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 45 9,10,14,16,20,23 * * *")
|
|
|
- public void CloudSyncReconciliation() {
|
|
|
- if (defaultConfig.getLocationFlag().equals(DefaultConstants.CLOUD_FLAG)) {
|
|
|
- String consumeDate = DateUtil.format(DateUtil.date(), "yyyy-MM-dd 00:00:00");
|
|
|
- R<ErrorInfo> result = consumeBusiness.syncReconciliation(consumeDate);
|
|
|
- if (R.isError(result)) {
|
|
|
- log.error(JSONUtil.toJsonStr(result.getData()));
|
|
|
- } else {
|
|
|
- log.warn(result.getMsg());
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //@Scheduled(cron = "0 45 9,10,14,16,20,23 * * *")
|
|
|
+ //public void CloudSyncReconciliation() {
|
|
|
+ // if (defaultConfig.getLocationFlag().equals(DefaultConstants.CLOUD_FLAG)) {
|
|
|
+ // String consumeDate = DateUtil.format(DateUtil.date(), "yyyy-MM-dd 00:00:00");
|
|
|
+ // R<ErrorInfo> result = consumeBusiness.syncReconciliation(consumeDate);
|
|
|
+ // if (R.isError(result)) {
|
|
|
+ // log.error(JSONUtil.toJsonStr(result.getData()));
|
|
|
+ // } else {
|
|
|
+ // log.warn(result.getMsg());
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
@Scheduled(cron = "0 0 4 * * ?")
|
|
|
public void initDiscountAndOther() {
|
|
|
@@ -78,9 +78,9 @@ public class ScheduledTasks {
|
|
|
}
|
|
|
@Scheduled(cron = "0 0 5,9,13,16,20 * * ?")
|
|
|
public void initConsumeInfo() {
|
|
|
- ThreadUtil.execAsync(baseBusiness::initXfCardLimited);
|
|
|
- ThreadUtil.execAsync(baseBusiness::initUserCard);
|
|
|
- ThreadUtil.execAsync(baseBusiness::initUserAccount);
|
|
|
- ThreadUtil.execAsync(baseBusiness::initUserBalance);
|
|
|
+ baseBusiness.initXfCardLimited();
|
|
|
+ baseBusiness.initUserCard();
|
|
|
+ baseBusiness.initUserAccount();
|
|
|
+ baseBusiness.initUserBalance();
|
|
|
}
|
|
|
}
|