package com.yeshi.fanli.dao.mybatis.order;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
import java.util.Map;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.dao.BaseMapper;
|
import com.yeshi.fanli.entity.order.CommonOrder;
|
import com.yeshi.fanli.vo.order.CommonOrderVO;
|
|
public interface CommonOrderMapper extends BaseMapper<CommonOrder> {
|
|
/**
|
* 查询用户订单 并订单号分组
|
*
|
* @param start
|
* @param count
|
* @param uid
|
* @return
|
*/
|
|
List<CommonOrderVO> listGroupOrderNoByUid(@Param("start") long start, @Param("count") int count,
|
@Param("uid") Long uid, @Param("state") Integer state, @Param("type") Integer type,
|
@Param("orderState") Integer orderState, @Param("orderNo") String orderNo,
|
@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("day") Integer day);
|
|
/**
|
* 统计用户订单 并订单号分组
|
*
|
* @param start
|
* @param count
|
* @param uid
|
* @return
|
*/
|
long countGroupOrderNoByUid(@Param("uid") Long uid, @Param("state") Integer state, @Param("type") Integer type,
|
@Param("orderState") Integer orderState, @Param("orderNo") String orderNo,
|
@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("day") Integer day);
|
|
/**
|
* 根据订单号、订单类型查询商品
|
*
|
* @param list
|
* 订单对象
|
* @return
|
*/
|
List<CommonOrderVO> listByOrderNoAndType(List<CommonOrderVO> list);
|
|
/**
|
* 统计订单-根据红包类型 自购 邀请 分享
|
*
|
* @param uid
|
* @return
|
*/
|
Map<String, BigDecimal> countOrderByHongBaoType(@Param("uid") Long uid, @Param("day") Integer day);
|
|
/**
|
* 昨日总订单-根据红包类型 自购 邀请 分享
|
*
|
* @param uid
|
* @return
|
*/
|
Map<String, BigDecimal> countByUidAndOrderState(@Param("uid") Long uid, @Param("type") Integer type,
|
|
@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("day") Integer day);
|
|
/**
|
* 奖金订单数量
|
*
|
* @param uid
|
* @return
|
*/
|
long countBonusOrder(@Param("uid") Long uid, @Param("type") Integer type, @Param("day") Integer day);
|
|
/**
|
* 奖金统计
|
*
|
* @param uid
|
* @return
|
*/
|
BigDecimal countBonusOrderMoney(@Param("uid") Long uid, @Param("type") Integer type, @Param("day") Integer day);
|
|
int countByOrderNOAndOrderType(@Param("orderNO") String orderNO, @Param("orderType") int orderType);
|
|
/**
|
* 根据订单号与订单排序值获取详情
|
*
|
* @param orderNo
|
* -订单号
|
* @param orderBy
|
* -订单排序值
|
* @param orderType
|
* -订单类型
|
* @return
|
*/
|
CommonOrder selectByOrderNoAndOrderTypeAndOrderBy(@Param("orderNo") String orderNo,
|
@Param("orderType") int orderType, @Param("orderBy") int orderBy);
|
|
}
|