| | |
| | | import java.util.Map;
|
| | |
|
| | | import com.yeshi.fanli.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.entity.order.HongBaoOrder;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoOrder;
|
| | | import com.yeshi.fanli.exception.order.CommonOrderException;
|
| | | import com.yeshi.fanli.vo.order.CommonOrderVO;
|
| | |
|
| | |
| | | public int insertSelective(CommonOrder record);
|
| | |
|
| | | public int updateByPrimaryKey(CommonOrder record);
|
| | | |
| | | public int updateByPrimaryKeySelective(CommonOrder record);
|
| | | |
| | | public int deleteByPrimaryKey(Long id);
|
| | | |
| | | public CommonOrder selectByPrimaryKey(Long id);
|
| | |
|
| | | public int updateByPrimaryKeySelective(CommonOrder record);
|
| | |
|
| | | public int deleteByPrimaryKey(Long id);
|
| | |
|
| | | public CommonOrder selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 查询用户订单 并订单号分组
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @param state
|
| | | * @param type
|
| | | * @param orderNo 订单号
|
| | | * @param startTime 起始系统录入时间
|
| | | * @param endTime 结束系统录入时间
|
| | | * @param orderNo
|
| | | * 订单号
|
| | | * @param startTime
|
| | | * 起始系统录入时间
|
| | | * @param endTime
|
| | | * 结束系统录入时间
|
| | | * @return
|
| | | * @throws CommonOrderException
|
| | | */
|
| | | public List<CommonOrderVO> listGroupOrderNoByUid(long start, int count, Long uid, Integer state, Integer type,
|
| | | String orderNo, String startTime, String endTime) throws CommonOrderException;
|
| | | Integer orderState, String orderNo, String startTime, String endTime, Integer dateType)
|
| | | throws CommonOrderException;
|
| | |
|
| | | /**
|
| | | * 统计查询
|
| | | * |
| | | * @param uid
|
| | | * @param state
|
| | | * @param type
|
| | |
| | | * @return
|
| | | * @throws CommonOrderException
|
| | | */
|
| | | long countGroupOrderNoByUid(Long uid, Integer state, Integer type, String orderNo, String startTime, String endTime)
|
| | | throws CommonOrderException;
|
| | | |
| | | long countGroupOrderNoByUid(Long uid, Integer state, Integer type, Integer orderState, String orderNo,
|
| | | String startTime, String endTime, Integer dateType) throws CommonOrderException;
|
| | |
|
| | | /**
|
| | | * 移动段订单列表
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param uid 用户id
|
| | | * @param type 到账状态
|
| | | * @param uid
|
| | | * 用户id
|
| | | * @param type
|
| | | * 到账状态
|
| | | * @return
|
| | | */
|
| | | public List<CommonOrderVO> getOrderByUid(Integer page, Long uid, Integer state, Integer type,
|
| | | String orderNo, String startTime, String endTime) throws CommonOrderException;
|
| | | public List<CommonOrderVO> getOrderByUid(Integer page, Long uid, Integer state, Integer type, Integer orderState,
|
| | | String orderNo, String startTime, String endTime, Integer dateType) throws CommonOrderException;
|
| | |
|
| | | /**
|
| | | * 统计订单-根据红包类型 自购 邀请 分享
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public Map<String, BigDecimal> countOrderByHongBaoType(Long uid, Integer day);
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 统计订单
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countOrder(Long uid, Integer type, Integer isToday);
|
| | | |
| | |
|
| | | /**
|
| | | * 统计订单
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public BigDecimal countOrderMoney(Long uid, Integer type, Integer isToday);
|
| | | public BigDecimal countOrderMoney(Long uid, Integer type, Integer isToday);
|
| | |
|
| | | /**
|
| | | * 根据条件统计
|
| | | * |
| | | * @param uid
|
| | | * @param type
|
| | | * @param startTime
|
| | | * @param endTime
|
| | | * @return
|
| | | */
|
| | | public Map<String, BigDecimal> countByUidAndOrderState(Long uid, Integer type, String startTime, String endTime);
|
| | | public Map<String, BigDecimal> countByUidAndOrderState(Long uid, Integer type, String startTime, String endTime,
|
| | | Integer day);
|
| | |
|
| | | /**
|
| | | * 奖金列表统计
|
| | | * @param page
|
| | | * @param uid
|
| | | * @param type
|
| | | * @param day
|
| | | * 根据订单号与订单类型查询订单
|
| | | * |
| | | * @param sourceType
|
| | | * @param orderId
|
| | | * @return
|
| | | * @throws CommonOrderException
|
| | | */
|
| | | public List<CommonOrderVO> listBonusOrder(Integer page, Long uid, Integer type, Integer day) throws CommonOrderException;
|
| | | public List<CommonOrder> listBySourceTypeAndOrderId(int sourceType, String orderId);
|
| | |
|
| | | public Map<String, BigDecimal> countBonusOrderByState(Long uid, Integer type, Integer day);
|
| | | /**
|
| | | * 缓存普通订单
|
| | | * |
| | | * @param taoBaoOrder
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public CommonOrder addTaoBaoOrder(TaoBaoOrder taoBaoOrder, Long uid) throws CommonOrderException;
|
| | | |
| | | |
| | | |
| | |
|
| | | }
|