puzhibing
4 天以前 3650ce7f5d42d1bef58abea9693f20d1f209d3b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.ruoyi.order.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.order.api.model.TVinChargingOrder;
import com.ruoyi.order.api.query.VinChargingOrderQuery;
import com.ruoyi.order.api.vo.ChargingOrderVO;
import com.ruoyi.order.api.vo.VinChargingStatusVO;
import com.ruoyi.order.dto.MyVinChargingOrderList;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
public interface TVinChargingOrderMapper extends BaseMapper<TVinChargingOrder> {
 
    List<ChargingOrderVO> pageList(@Param("query") VinChargingOrderQuery query,
                                   @Param("offset") long offset,
                                   @Param("pageSize") long pageSize);
 
    long count(@Param("query") VinChargingOrderQuery query);
 
    long countAppletOrders(@Param("appUserId") Long appUserId, @Param("vinIds") List<Long> vinIds);
 
    List<MyVinChargingOrderList> pageAppletOrders(@Param("appUserId") Long appUserId,
                                                   @Param("vinIds") List<Long> vinIds,
                                                   @Param("offset") long offset,
                                                   @Param("pageSize") long pageSize);
 
    List<VinChargingStatusVO> getChargingVinStatus(@Param("vinIds") List<Long> vinIds);
 
    Map<String, Object> summary(@Param("query") VinChargingOrderQuery query);
 
    List<Map<String, Object>> countAccountingStrategies(@Param("chargingOrderIds") List<Long> chargingOrderIds);
 
    List<Map<String, Object>> accountingStrategyList(@Param("chargingOrderId") Long chargingOrderId);
 
    /** 车队完成订单累计聚合(VIN 码订单):status=5 之充电量/电费/服务费;MyCat 自动按 vin_id 分片路由 */
    java.util.Map<String, Object> fleetAggregateByFleet(@Param("fleetId") Integer fleetId);
}