统计实现

This commit is contained in:
张松
2025-03-07 18:31:18 +08:00
parent ae0a0e5145
commit 6483163e44

View File

@@ -89,6 +89,8 @@ public class ShopOrderStatisticServiceImpl extends ServiceImpl<ShopOrderStatisti
ShopOrderStatistic statistic = getOne(new QueryWrapper().eq(ShopOrderStatistic::getShopId, shopId).eq(ShopOrderStatistic::getCreateDay, yesterday.toSqlDate()));
if (statistic == null) {
statistic = new ShopOrderStatistic();
statistic.setShopId(shopId);
statistic.setCreateDay(DateUtil.date().toSqlDate());
}
BeanUtil.copyProperties(info, statistic);
saveOrUpdate(statistic);