|
|
@@ -39,16 +39,16 @@ public class ScheduledTasks {
|
|
|
* 该方法在每天的9:45, 14:45, 20:45和23:45自动调用,用于处理有原始消费记录但没有消费明细的消费记录,并将这些记录写入消费明细。
|
|
|
* 如果对账过程中出现错误,会记录错误信息;如果成功,则记录警告消息。
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 55 9,10,14,16,20,23 * * *")
|
|
|
- public void originalReconciliation() {
|
|
|
- String consumeDate = DateUtil.format(DateUtil.date(), "yyyy-MM-dd 00:00:00");
|
|
|
- R<ErrorInfo> result = consumeBusiness.originalReconciliation(consumeDate);
|
|
|
- if (R.isError(result)) {
|
|
|
- log.error(JSONUtil.toJsonStr(result.getData()));
|
|
|
- } else {
|
|
|
- log.warn(result.getMsg());
|
|
|
- }
|
|
|
- }
|
|
|
+ //@Scheduled(cron = "0 55 9,10,14,16,20,23 * * *")
|
|
|
+ //public void originalReconciliation() {
|
|
|
+ // String consumeDate = DateUtil.format(DateUtil.date(), "yyyy-MM-dd 00:00:00");
|
|
|
+ // R<ErrorInfo> result = consumeBusiness.originalReconciliation(consumeDate);
|
|
|
+ // if (R.isError(result)) {
|
|
|
+ // log.error(JSONUtil.toJsonStr(result.getData()));
|
|
|
+ // } else {
|
|
|
+ // log.warn(result.getMsg());
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
/**
|
|
|
* 执行云同步对账任务。
|