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("orderNo")String orderNo, @Param("startTime")String startTime, @Param("endTime")String endTime);
|
|
|
/**
|
* 统计用户订单 并订单号分组
|
* @param start
|
* @param count
|
* @param uid
|
* @return
|
*/
|
long countGroupOrderNoByUid(@Param("uid") Long uid, @Param("state") Integer state,
|
@Param("type") Integer type, @Param("orderNo")String orderNo,
|
@Param("startTime")String startTime, @Param("endTime")String endTime);
|
|
/**
|
* 根据订单号、订单类型查询商品
|
* @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
|
*/
|
long countOrder(@Param("uid")Long uid, @Param("isToday")Integer isToday);
|
|
/**
|
* 总订单
|
* @param uid
|
* @return
|
*/
|
BigDecimal countOrderMoney(@Param("uid")Long uid, @Param("isToday")Integer isToday);
|
|
|
/**
|
* 昨日总订单-根据红包类型 自购 邀请 分享
|
* @param uid
|
* @return
|
*/
|
Map<String, BigDecimal> countByUidAndOrderState(@Param("uid") Long uid, @Param("type") Integer type,
|
@Param("startTime")String startTime, @Param("endTime")String endTime);
|
}
|