admin
2019-12-06 cd637932a970e7935b17d41568fe89c92775bccc
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/CommonOrderMapper.java
@@ -10,6 +10,7 @@
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.order.CommonOrder;
import com.yeshi.fanli.vo.order.CommonOrderVO;
import com.yeshi.fanli.vo.order.OrderCountVO;
public interface CommonOrderMapper extends BaseMapper<CommonOrder> {
@@ -79,6 +80,14 @@
   Map<String, BigDecimal> countHistoryOrder(@Param("uid") Long uid, @Param("day") Integer day,
         @Param("source") Integer source);
   /**
    * 统计有效订单数量
    * @param uid
    * @return
    */
   OrderCountVO getOrderCount(@Param("uid") Long uid, @Param("day")Integer day, @Param("source") Integer source);
   /**
    * 昨日总订单-根据红包类型 自购 邀请 分享
    * 
@@ -174,7 +183,9 @@
   List<CommonOrderVO> listQuery(@Param("start") long start, @Param("count") int count,
         @Param("keyType") Integer keyType, @Param("key") String key, @Param("state") Integer state,
         @Param("type") Integer type, @Param("orderState") Integer orderState, @Param("startTime") String startTime,
         @Param("endTime") String endTime, @Param("source") Integer source);
         @Param("endTime") String endTime, @Param("source") Integer source,
         @Param("listShopId")List<Long> listShopId, @Param("listGoodsId")List<Long> listGoodsId,
         @Param("minTime")Date minTime, @Param("money")BigDecimal money);
   /**
    * 订单列表查询(不包含子订单)
@@ -201,7 +212,9 @@
    */
   long countQuery(@Param("keyType") Integer keyType, @Param("key") String key, @Param("state") Integer state,
         @Param("type") Integer type, @Param("orderState") Integer orderState, @Param("startTime") String startTime,
         @Param("endTime") String endTime, @Param("source") Integer source);
         @Param("endTime") String endTime, @Param("source") Integer source,
         @Param("listShopId")List<Long> listShopId, @Param("listGoodsId")List<Long> listGoodsId,
         @Param("minTime")Date minTime, @Param("money")BigDecimal money);
   long countQueryWithNoChild(@Param("keyType") Integer keyType, @Param("key") String key,
         @Param("state") Integer state, @Param("type") Integer type, @Param("orderState") Integer orderState,
@@ -304,10 +317,32 @@
   /**
    * 查询首笔有效到账订单
    * @param uid  
    * @param type 类型: 1自购  2分享 3邀请
    * @param typeHB 类型: 1自购  2分享 3邀请
    * @param typeDate 日期类型: 3本月 4上月
    * @return
    */
   CommonOrderVO firstValidOrderByUid(@Param("uid") Long uid, @Param("typeHB") Integer typeHB,
         @Param("typeDate") Integer typeDate);
   
   /**
    * 获取首笔分享订单;
    * @param uid
    * @return
    */
   CommonOrder getFirstShareOrderByUid(@Param("uid") Long uid);
   /**
    * 统计订单号到账金额
    * @param uid
    * @return
    */
   BigDecimal getTotalRewardMoneyByOrderNoAndSourceType(@Param("orderNo") String orderNo, @Param("sourceType") Integer sourceType);
   /**
    * 统计24小时有效自购订单
    * @param uid
    * @return
    */
   long count24HValidOrderByUid(@Param("uid") Long uid, @Param("minTime") Date minTime);
}