mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-28 15:05:18 +08:00
update 优化汇总数据接口
This commit is contained in:
@@ -373,13 +373,13 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
// @DataScope(deptAlias = "t3")
|
||||
public OrderTotalDataVO getOrderTotalData(QueryOrderDTO dto) {
|
||||
public OrderTotalDataVO getOrderTotalDataOld(QueryOrderDTO dto) {
|
||||
OrderTotalDataVO vo = new OrderTotalDataVO();
|
||||
// 只计算订单完成状态的
|
||||
dto.setOrderStatus(OrderStatusEnum.ORDER_COMPLETE.getValue());
|
||||
// 查询出所有符合条件的订单
|
||||
OrderTotalDataVO resultVO = orderBasicInfoMapper.getOrderTotalData(dto);
|
||||
List<OrderListVO> list = selectOrderBasicInfoList(dto);
|
||||
BigDecimal sumOrderAmount = BigDecimal.ZERO;
|
||||
BigDecimal sumUsedElectricity = BigDecimal.ZERO;
|
||||
@@ -410,6 +410,14 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
||||
return vo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrderTotalDataVO getOrderTotalData(QueryOrderDTO dto) {
|
||||
// 只计算订单完成状态的
|
||||
dto.setOrderStatus(OrderStatusEnum.ORDER_COMPLETE.getValue());
|
||||
OrderTotalDataVO resultVO = orderBasicInfoMapper.getOrderTotalData(dto);
|
||||
return resultVO;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询时间段内订单总金额和总用电量V2
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user