超市统计订正
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user