订单统计定时任务修改

This commit is contained in:
张松
2025-03-12 19:19:07 +08:00
parent c0aa412e0b
commit 34987a612f
3 changed files with 21 additions and 17 deletions

View File

@@ -88,6 +88,8 @@ public class ShopOrderStatisticServiceImpl extends ServiceImpl<ShopOrderStatisti
}
}
countInfo.forEach((shopId, info) -> {
ShopOrderStatistic statistic = getOne(new QueryWrapper().eq(ShopOrderStatistic::getShopId, shopId).eq(ShopOrderStatistic::getCreateDay, yesterday.toSqlDate()));
if (statistic == null) {
@@ -105,7 +107,6 @@ public class ShopOrderStatisticServiceImpl extends ServiceImpl<ShopOrderStatisti
BeanUtil.copyProperties(info, statistic);
saveOrUpdate(statistic);
});
}
}
}

View File

@@ -85,6 +85,8 @@ public class ShopProdStatisticServiceImpl extends ServiceImpl<ShopProdStatisticM
statistic.setRefundAmount(statisticTask.getRefundAmount());
saveOrUpdate(statistic);
}));
}

View File

@@ -113,4 +113,5 @@ public class ShopTableOrderStatisticServiceImpl extends ServiceImpl<ShopTableOrd
});
}
}