|
|
|
@ -30,18 +30,18 @@ public class BillingDataServiceImpl implements IBillingDataService {
|
|
|
|
|
public BillingDataVO getBillingData() { |
|
|
|
|
// 今天的数据
|
|
|
|
|
BillingDataInfoVO today = billingDataMapper.getBillingData( |
|
|
|
|
DateUtil.format(new Date(), "yyyy-MM-dd 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "yyyy-MM-dd 23:59:59") |
|
|
|
|
DateUtil.format(new Date(), "2024-MM-dd 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "2024-MM-dd 23:59:59") |
|
|
|
|
); |
|
|
|
|
// 当月的数据
|
|
|
|
|
BillingDataInfoVO month = billingDataMapper.getBillingData( |
|
|
|
|
DateUtil.format(new Date(), "yyyy-MM-01 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "yyyy-MM-31 23:59:59") |
|
|
|
|
DateUtil.format(new Date(), "2024-MM-01 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "2024-MM-31 23:59:59") |
|
|
|
|
); |
|
|
|
|
// 年的数据
|
|
|
|
|
BillingDataInfoVO year = billingDataMapper.getBillingData( |
|
|
|
|
DateUtil.format(new Date(), "yyyy-01-01 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "yyyy-12-31 23:59:59") |
|
|
|
|
DateUtil.format(new Date(), "2024-01-01 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "2024-12-31 23:59:59") |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
BillingDataVO billingDataVO = new BillingDataVO(); |
|
|
|
@ -55,9 +55,14 @@ public class BillingDataServiceImpl implements IBillingDataService {
|
|
|
|
|
@Override |
|
|
|
|
public List<WarehouseBillingDataVO> getWarehouseBillingData() { |
|
|
|
|
List<WarehouseInfoVO> warehouselist = mapWarehouseMapper.warehouselist(); |
|
|
|
|
// List<WarehouseBillingDataVO> warehouseBillingData = billingDataMapper.getWarehouseBillingData(
|
|
|
|
|
// DateUtil.format(new Date(), "yyyy-01-01 00:00:00"),
|
|
|
|
|
// DateUtil.format(new Date(), "yyyy-12-31 23:59:59")
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
|
|
List<WarehouseBillingDataVO> warehouseBillingData = billingDataMapper.getWarehouseBillingData( |
|
|
|
|
DateUtil.format(new Date(), "yyyy-01-01 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "yyyy-12-31 23:59:59") |
|
|
|
|
DateUtil.format(new Date(), "2024-01-01 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "2024-12-31 23:59:59") |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<Long, WarehouseInfoVO> warehouseBillingDataMap = warehouselist.stream().collect(Collectors.toMap(WarehouseInfoVO::getWarehouseId, v -> v)); |
|
|
|
@ -80,9 +85,14 @@ public class BillingDataServiceImpl implements IBillingDataService {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<MonthBillingDataVO> getMonthBillingData() { |
|
|
|
|
return billingDataMapper.getMonthBillingData( |
|
|
|
|
DateUtil.format(new Date(), "yyyy-01-01 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "yyyy-12-31 23:59:59") |
|
|
|
|
// return billingDataMapper.getMonthBillingData(
|
|
|
|
|
// DateUtil.format(new Date(), "yyyy-01-01 00:00:00"),
|
|
|
|
|
// DateUtil.format(new Date(), "yyyy-12-31 23:59:59")
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
|
|
return billingDataMapper.getMonthBillingData( |
|
|
|
|
DateUtil.format(new Date(), "2024-01-01 00:00:00"), |
|
|
|
|
DateUtil.format(new Date(), "2024-12-31 23:59:59") |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|