admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.yeshi.fanli.dao.mybatis.jd;
 
import java.util.Date;
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.dto.ChartTDO;
import com.yeshi.fanli.entity.jd.JDOrderItem;
 
public interface JDOrderItemMapper extends BaseMapper<JDOrderItem> {
 
    /**
     * 根据交易ID查询
     * 
     * @param tradeId
     * @return
     */
    JDOrderItem selectByTradeId(String tradeId);
 
    /**
     * 根据订单号查询
     * 
     * @param orderId
     * @return
     */
    List<JDOrderItem> listByOrderId(Long orderId);
 
 
 
    List<JDOrderItem> list(@Param("minCreateTime") Date minCreateTime,@Param("start") int start,@Param("count") int count);
 
    /**
     * 统计所有订单
     * 
     * @param channel
     * @return
     */
    Long countOrderByDay(@Param("preDay") String preDay);
    
    /**
     * 统计所有订单
     * 
     * @param channel
     * @return
     */
    List<ChartTDO> countOrderNumber(@Param("dateType") Integer dateType, @Param("year") String year,
            @Param("startTime") String startTime, @Param("endTime") String endTime);
 
    
    /**
     * 查询所有订单
     * 
     * @param channel
     * @return
     */
    List<JDOrderItem> listQuery(@Param("start") long start, @Param("count")int count, @Param("key")String key);
 
    Long countQuery(@Param("key")String key);
 
}