admin
2019-03-15 9b2073088500e442a022bb01569f8f465d6b85b6
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
package com.yeshi.fanli.dao.mybatis.order;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.entity.bus.user.Order;
 
public interface OrderMapper {
 
    int deleteByPrimaryKey(Long id);
 
    int insert(Order record);
 
    int insertSelective(Order record);
 
    Order selectByPrimaryKey(Long id);
 
    // 根据订单号查找订单
    Order selectOrderByOrderId(String orderId);
 
    /**
     * 根据订单号和订单类型查找订单
     * 
     * @param orderId
     * @param orderType
     * @return
     */
    List<Order> selectOrderByOrderIdAndOrderType(@Param("orderId") String orderId, @Param("orderType") int orderType);
 
    List<Order> selectByUid(Long uid);
 
    int updateByPrimaryKeySelective(Order record);
 
    int updateByPrimaryKey(Order record);
 
    /**
     * 通过用户ID订单类型和备注查询列表
     * 
     * @return
     */
    List<Order> listByUidAndOrderTypeAndBeiZhu(@Param("uid") Long uid, @Param("orderType") int orderType,
            @Param("beiZhu") String beiZhu);
}