mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 优化汇总数据接口
This commit is contained in:
@@ -11,10 +11,7 @@ import com.jsowell.pile.vo.nanrui.NROrderInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.OrderVO;
|
||||
import com.jsowell.pile.vo.uniapp.PersonPileConnectorSumInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.SendMessageVO;
|
||||
import com.jsowell.pile.vo.web.IndexOrderInfoVO;
|
||||
import com.jsowell.pile.vo.web.OrderListVO;
|
||||
import com.jsowell.pile.vo.web.OrderPayDetailVO;
|
||||
import com.jsowell.pile.vo.web.RefundOrder;
|
||||
import com.jsowell.pile.vo.web.*;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@@ -266,4 +263,6 @@ public interface OrderBasicInfoMapper {
|
||||
* @return
|
||||
*/
|
||||
List<OrderVO> getOrderInfoByNXJT(NXJTQueryOrdersInfoDTO dto);
|
||||
|
||||
OrderTotalDataVO getOrderTotalData(QueryOrderDTO dto);
|
||||
}
|
||||
|
||||
@@ -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