com.xunlei.channel.db.dao
接口 PayOrderDAO

所有已知实现类:
PayOrderDAOImpl

public interface PayOrderDAO

操作订单表的方法,注意:订单表不移表,里面包含成功订单和失败订单

作者:
laiquan.luolq

方法摘要
 int getCountByBizNoAndBizOrderId(String bizNo, String bizOrderId)
           
 int getCountOfOrderRequestByXunleiIdBizNoAndDate(String xunleiId, String bizNo, Date fromDate, Date toDate)
          获取用户一定日期内的订单请求总数(请求表记录总数)
 PayOrder getPayOrder(String xunleiPayId)
          通过xunleiPayId获得请求订单的实体
 PayOrder getPayOrderByBizNoAndBizOrderId(String bizNo, String bizOrderId)
           
 List<PayOrder> getPayOrderByCreateTime(String fromTime, String toTime, String[] status, long id, int limit)
          获取createTime在fromTime到toTime之间且大于id的订单信息 按id升序排列
 List<PayOrder> getPayOrderByMinIdAndStatus(long id, String[] status, int limit)
          获取大于id且订单状态为orderStatus数组中状态的所有订单信息 使用id升序排列
 PayOrder getPayOrderByPayTypeAndChannelOrderId(String payType, String channelOrderId)
          通过第三方支付订单号获取订单
 void savePayOrder(PayOrder payOrder)
          保存请求订单信息到数据库
 void updateBizExtByXunleiPayId(String bizExt, String xunleiPayId)
          更新订单的bizExt
 void updateExtraJsonByXunleiPayId(String extraJson, String xunleiPayId)
          更新订单的json扩展参数
 void updatePayOrderExtraJsonAndChannelId(String xunleiPayId, String extraJson, String channelOrderId)
          更新请求订单的extra字段和渠道支付号
 void updatePayOrderStatusAndChannelId(String xunleiPayId, String orderStatus, String channelOrderId)
          更新请求订单的支付状态和渠道支付号
 void updatePayOrderStatusAndChannelIdAndExtraJson(String xunleiPayId, String orderStatus, String channelOrderId, String extraJson)
          更新请求订单的支付状态,渠道支付号及extraJson
 void updatePhoneByXunleiPayId(String xunleiPayId, String phone)
          更新请求订单的phone字段
 

方法详细信息

savePayOrder

void savePayOrder(PayOrder payOrder)
                  throws org.springframework.dao.DataAccessException
保存请求订单信息到数据库

参数:
payOrder -
抛出:
org.springframework.dao.DataAccessException

getPayOrder

PayOrder getPayOrder(String xunleiPayId)
                     throws org.springframework.dao.DataAccessException
通过xunleiPayId获得请求订单的实体

参数:
xunleiPayId -
返回:
PayOrder
抛出:
org.springframework.dao.DataAccessException

updateExtraJsonByXunleiPayId

void updateExtraJsonByXunleiPayId(String extraJson,
                                  String xunleiPayId)
更新订单的json扩展参数

参数:
extraJson -
xunleiPayId -

updateBizExtByXunleiPayId

void updateBizExtByXunleiPayId(String bizExt,
                               String xunleiPayId)
更新订单的bizExt

参数:
bizExt - 扩展参数
xunleiPayId -

getPayOrderByBizNoAndBizOrderId

PayOrder getPayOrderByBizNoAndBizOrderId(String bizNo,
                                         String bizOrderId)
                                         throws org.springframework.dao.DataAccessException
参数:
bizNo -
bizOrderId -
返回:
抛出:
org.springframework.dao.DataAccessException

getCountByBizNoAndBizOrderId

int getCountByBizNoAndBizOrderId(String bizNo,
                                 String bizOrderId)
                                 throws org.springframework.dao.DataAccessException
参数:
bizNo -
bizOrderId -
返回:
抛出:
org.springframework.dao.DataAccessException

updatePayOrderStatusAndChannelId

void updatePayOrderStatusAndChannelId(String xunleiPayId,
                                      String orderStatus,
                                      String channelOrderId)
                                      throws org.springframework.dao.DataAccessException
更新请求订单的支付状态和渠道支付号

参数:
xunleiPayId -
channelOrderId -
orderStatus -
抛出:
org.springframework.dao.DataAccessException

updatePayOrderStatusAndChannelIdAndExtraJson

void updatePayOrderStatusAndChannelIdAndExtraJson(String xunleiPayId,
                                                  String orderStatus,
                                                  String channelOrderId,
                                                  String extraJson)
                                                  throws org.springframework.dao.DataAccessException
更新请求订单的支付状态,渠道支付号及extraJson

参数:
xunleiPayId -
channelOrderId -
orderStatus -
抛出:
org.springframework.dao.DataAccessException

getPayOrderByMinIdAndStatus

List<PayOrder> getPayOrderByMinIdAndStatus(long id,
                                           String[] status,
                                           int limit)
                                           throws org.springframework.dao.DataAccessException
获取大于id且订单状态为orderStatus数组中状态的所有订单信息 使用id升序排列

参数:
id -
orderStatus -
返回:
抛出:
org.springframework.dao.DataAccessException

getPayOrderByCreateTime

List<PayOrder> getPayOrderByCreateTime(String fromTime,
                                       String toTime,
                                       String[] status,
                                       long id,
                                       int limit)
                                       throws org.springframework.dao.DataAccessException
获取createTime在fromTime到toTime之间且大于id的订单信息 按id升序排列

参数:
fromTime -
toTime -
返回:
抛出:
org.springframework.dao.DataAccessException

getCountOfOrderRequestByXunleiIdBizNoAndDate

int getCountOfOrderRequestByXunleiIdBizNoAndDate(String xunleiId,
                                                 String bizNo,
                                                 Date fromDate,
                                                 Date toDate)
获取用户一定日期内的订单请求总数(请求表记录总数)

参数:
xunleiId - 迅雷Id
bizNo - 业务编号
fromDate - 开始日期
toDate - 结束日期
返回:

updatePayOrderExtraJsonAndChannelId

void updatePayOrderExtraJsonAndChannelId(String xunleiPayId,
                                         String extraJson,
                                         String channelOrderId)
                                         throws org.springframework.dao.DataAccessException
更新请求订单的extra字段和渠道支付号

参数:
xunleiPayId -
channelOrderId -
extraJson -
抛出:
org.springframework.dao.DataAccessException

getPayOrderByPayTypeAndChannelOrderId

PayOrder getPayOrderByPayTypeAndChannelOrderId(String payType,
                                               String channelOrderId)
                                               throws org.springframework.dao.DataAccessException
通过第三方支付订单号获取订单

参数:
payType - 支付类型
channelOrderId - 渠道订单号
返回:
PayOrder or null
抛出:
org.springframework.dao.DataAccessException

updatePhoneByXunleiPayId

void updatePhoneByXunleiPayId(String xunleiPayId,
                              String phone)
更新请求订单的phone字段

参数:
xunleiPayId -
phone -


Copyright © 2016. All rights reserved.