yujian
2019-01-05 4220ceb661146c58d1d6855f14dcdcc3d8c7bb24
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
package com.yeshi.fanli.dao.mybatis;
 
import java.util.Date;
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.entity.taobao.PidOrder;
 
public interface PidOrderMapper {
 
    int deleteByPrimaryKey(Long id);
 
    int insert(PidOrder record);
 
    int insertSelective(PidOrder record);
 
    PidOrder selectByPrimaryKey(Long id);
 
    List<PidOrder> getPidOrderListByOrderId(String orderId);
 
    List<PidOrder> selectByUid(Long uid);
 
    List<PidOrder> selectByState(@Param("state") String state, @Param("count") int count);
 
    // 获取能够处理的订单列表
    List<PidOrder> getPidOrderListCanUpdate(int count);
 
    // 根据订单号获取能够处理的订单列表
    List<PidOrder> getPidOrderListCanUpdateByOrderId(String orderId);
 
    // 获取能够结算的列表
    List<PidOrder> getCanBalanceList(int count);
 
    // 能够结算的用户列表
    List<Long> getUidCanBalanceList();
 
    List<PidOrder> getCanBalanceListByUid(Long uid);
 
    int updateByPrimaryKeySelective(PidOrder record);
 
    int updateByPrimaryKey(PidOrder record);
 
    long getPidOrderNormalCount(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
 
    PidOrder getPidOrderByHongBaoId(Long hongBaoId);
 
    /**
     * 查找某个时间段以前的某个状态的订单列表
     * 
     * @param state
     *            -状态
     * @param maxTime
     *            -时间最大值(毫秒)
     * @return
     */
    List<PidOrder> getPidOrderListbyStateAndMaxTime(@Param("state") String state, @Param("maxTime") long maxTime);
}