统计实现
This commit is contained in:
@@ -89,6 +89,8 @@ public class ShopOrderStatisticServiceImpl extends ServiceImpl<ShopOrderStatisti
|
|||||||
ShopOrderStatistic statistic = getOne(new QueryWrapper().eq(ShopOrderStatistic::getShopId, shopId).eq(ShopOrderStatistic::getCreateDay, yesterday.toSqlDate()));
|
ShopOrderStatistic statistic = getOne(new QueryWrapper().eq(ShopOrderStatistic::getShopId, shopId).eq(ShopOrderStatistic::getCreateDay, yesterday.toSqlDate()));
|
||||||
if (statistic == null) {
|
if (statistic == null) {
|
||||||
statistic = new ShopOrderStatistic();
|
statistic = new ShopOrderStatistic();
|
||||||
|
statistic.setShopId(shopId);
|
||||||
|
statistic.setCreateDay(DateUtil.date().toSqlDate());
|
||||||
}
|
}
|
||||||
BeanUtil.copyProperties(info, statistic);
|
BeanUtil.copyProperties(info, statistic);
|
||||||
saveOrUpdate(statistic);
|
saveOrUpdate(statistic);
|
||||||
|
|||||||
Reference in New Issue
Block a user