| | |
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.entity.order.ESOrder;
|
| | | import com.yeshi.fanli.vo.order.CommonOrderVO;
|
| | | import com.yeshi.fanli.vo.order.OrderCountVO;
|
| | |
|
| | | public interface CommonOrderMapper extends BaseMapper<CommonOrder> {
|
| | |
|
| | |
| | | List<CommonOrderVO> listUserOrder(@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("source") Integer source);
|
| | | @Param("day") Integer day, @Param("listSource") List<Integer> listSource);
|
| | |
|
| | | /**
|
| | | * 统计用户订单 并订单号分组
|
| | |
| | | long countUserOrder(@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("source") Integer source);
|
| | | @Param("listSource") List<Integer> listSource);
|
| | |
|
| | | /**
|
| | | * 判断部分失效状态
|
| | |
| | | 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("listSource") List<Integer> listSource);
|
| | | |
| | | /**
|
| | | * 昨日总订单-根据红包类型 自购 邀请 分享
|
| | | *
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Map<String, BigDecimal> countByUidAndOrderState(@Param("uid") Long uid, @Param("type") Integer type,
|
| | | long countUserOrderToApp(@Param("uid") Long uid, @Param("type") Integer type,
|
| | | @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("day") Integer day,
|
| | | @Param("source") Integer source);
|
| | | @Param("source") Integer source,@Param("state") Integer state, @Param("stateOrder") Integer stateOrder);
|
| | |
|
| | | /**
|
| | | * 奖金订单数量
|
| | |
| | | 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);
|
| | |
|
| | | /**
|
| | | * 订单列表查询(不包含子订单)
|
| | |
| | | */
|
| | | 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,
|
| | |
| | | List<CommonOrder> listBySourceTypeAndTradeId(@Param("sourceType") int sourceType, @Param("tradeId") String tradeId);
|
| | |
|
| | | /**
|
| | | * 根据来源和交易ID获取订单列表
|
| | | * |
| | | * @param sourceType
|
| | | * @param tradeIdList
|
| | | * @return
|
| | | */
|
| | | List<CommonOrder> listBySourceTypeAndTradeIdList(@Param("sourceType") int sourceType,
|
| | | @Param("tradeIdList") List<String> tradeIdList);
|
| | |
|
| | | /**
|
| | | *
|
| | | * @param sourceType
|
| | | * @param state
|
| | |
| | | List<CommonOrder> listBySourceTypeAndStateAndThirdCrateTime(@Param("sourceType") int sourceType,
|
| | | @Param("state") Integer state, @Param("minTime") Long minTime, @Param("maxTime") Long maxTime,
|
| | | @Param("start") long start, @Param("count") int count);
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 根据订单号查询
|
| | | * |
| | | * @param orderNO
|
| | | * @return
|
| | | */
|
| | | List<CommonOrder> getByOrderNo(@Param("uid") Long uid, @Param("orderNo") String orderNo);
|
| | |
|
| | | |
| | | /**
|
| | | * 根据用户ID查询
|
| | | * @param uid
|
| | | * @param stateList
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<CommonOrder> listByUid(@Param("uid")Long uid,@Param("stateList") List<Integer> stateList,@Param("start") long start,@Param("count") int count);
|
| | |
|
| | | |
| | | /**
|
| | | * 查询首笔有效到账订单
|
| | | * @param uid |
| | | * @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);
|
| | | |
| | | |
| | | /**
|
| | | * 搜索订单
|
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<CommonOrderVO> searchOrderByUid(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid,
|
| | | @Param("list")List<ESOrder> list);
|
| | |
|
| | | |
| | | /**
|
| | | * 搜索订单
|
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | long countSearchOrderByUid(@Param("uid") Long uid, @Param("list")List<ESOrder> list);
|
| | |
|
| | | } |