超市统计订正

This commit is contained in:
zt
2025-03-14 14:20:50 +08:00
parent 6a8c0462e1
commit aaf3ebcab2

View File

@ -57,8 +57,8 @@ public class StoreOrderCountJob implements JobHandler {
String formattedDate = previousDate.format(formatter); String formattedDate = previousDate.format(formatter);
List<StoreOrderCountVO> storeOrderCountVOS = storeOrderService.countOrder(formattedDate, formattedDate); List<StoreOrderCountVO> storeOrderCountVOS = storeOrderService.countOrder(formattedDate, formattedDate);
LocalDateTime startOfDay = currentDate.atStartOfDay(); LocalDateTime startOfDay = previousDate.atStartOfDay();
LocalDateTime endOfDay = currentDate.atTime(LocalTime.MAX).withNano(0); LocalDateTime endOfDay = previousDate.atTime(LocalTime.MAX).withNano(0);
BigDecimal zero = BigDecimal.ZERO; BigDecimal zero = BigDecimal.ZERO;
for (Long storeId:allStoreId){ for (Long storeId:allStoreId){
StoreBusinessDO todayBusiness = storeBusinessMapper.getTodayBusiness(storeId, startOfDay, endOfDay); StoreBusinessDO todayBusiness = storeBusinessMapper.getTodayBusiness(storeId, startOfDay, endOfDay);