add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
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
package com.iotechn.unimall.data.mapper;
 
import com.dobbinsoft.fw.support.mapper.IMapper;
import com.dobbinsoft.fw.support.model.KVModel;
import com.iotechn.unimall.data.domain.OrderDO;
import com.iotechn.unimall.data.dto.order.OrderDTO;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
/**
 * Created by rize on 2019/7/6.
 */
public interface OrderMapper extends IMapper<OrderDO> {
 
    public List<OrderDTO> selectOrderPage(@Param("status") Integer status, @Param("offset") Integer offset, @Param("limit") Integer limit, @Param("userId") Long userId);
 
    public Long countOrder(@Param("status") Integer status, @Param("offset") Integer offset, @Param("limit") Integer limit, @Param("userId") Long userId);
 
    /**
     * 获取订单地区统计
     * @return
     */
    public List<KVModel<String, Long>> selectAreaStatistics();
 
    public List<KVModel<String, Long>> selectChannelStatistics();
 
    public List<KVModel<String, Long>> selectOrderCountStatistics(String gmtStart);
 
    public List<KVModel<String, Long>> selectOrderSumStatistics(String gmtStart);
 
    public List<OrderDO> selectExpireOrderNos(@Param("status") Integer status, @Param("time") Date time);
 
}