admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/OrderMapper.java
@@ -1,35 +1,41 @@
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);
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);
   /**
    * 根据订单号和订单类型查找订单
    *
    * @param orderId
    * @param orderType
    * @return
    */
   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);
}