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

所有已知实现类:
PayOrderOkDAOImpl

public interface PayOrderOkDAO

成功订单操作

作者:
lishaojun

方法摘要
 int getCountByPhoneBizNoAndDate(String phone, String bizNo, Date fromDate, Date toDate)
          根据手机号、业务号、开始日期、结束日期查询订单数量
 int getCountByXunleiIdBizNoAndDate(String xunleiId, String bizNo, Date fromDate, Date toDate)
          帐号内一定时间内的成功次数
 PayOrderOk getFirstPayOrderOkByXunleiIdAndPayType(String xunleiId, String payType)
          根据xunleiId获取第一次使用payType支付的成功订单
 PayOrderOk getLastPayOrderOkByXunleiIdAndPayType(String xunleiId, String payType)
          根据xunleiId获取最后一次使用payType支付的有channelOrderId的成功订单
 PayOrderOk getPayOrderOk(String xunleiPayId)
          通过xunleiPayId获得请求订单的实体
 PayOrderOk getPayOrderOkByBizNoAndBizOrderId(String bizNo, String bizOrderId)
           
 PayOrderOk getPayOrderOkByBizOrderId(String bizOrderId)
          根据业务方唯一订单号获取成功订单
 PayOrderOk getPayOrderOkByPayTypeAndChannelOrderId(String payType, String channelOrderId)
           
 String getPayOrderOkSendNoticeStatus(String xunleiPayId)
          得到成功订单表里的send_notice_status值
 long getSumOfOrderByXunleiIdAndDate(String xunleiId, Date fromDate, Date toDate)
          获取用户一定日期内的订单金额
 long getSumOfOrderByXunleiIdPayTypeAndDate(String xunleiId, String payType, Date fromDate, Date toDate)
          获取用户一定日期内支付类型的订单金额
 int getSumPayAmountByXunleiIdBizNoAndDate(String xunleiId, String bizNo, Date fromDate, Date toDate)
          获取用户一定日期内的成功订单总金额(必须以分为单位)
 List<String> listUnsuccessNoticeXunleiPayId(Date fromTime, Date endTime)
           
 void savePayOrderOk(PayOrderOk payOrderOk)
          保存请求订单信息到数据库
 void updatePayOrderOk(PayOrderOk payOrderOk)
          更新请求订单
 void updateSendNoticeStatus(String xunleiPayId, String sendNoticeStatus)
          更新send_notice_status值
 

方法详细信息

savePayOrderOk

void savePayOrderOk(PayOrderOk payOrderOk)
                    throws org.springframework.dao.DataAccessException
保存请求订单信息到数据库

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

updatePayOrderOk

void updatePayOrderOk(PayOrderOk payOrderOk)
                      throws org.springframework.dao.DataAccessException
更新请求订单

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

getPayOrderOk

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

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

getPayOrderOkByBizNoAndBizOrderId

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

getPayOrderOkByBizOrderId

PayOrderOk getPayOrderOkByBizOrderId(String bizOrderId)
根据业务方唯一订单号获取成功订单

参数:
bizOrderId -
返回:

getPayOrderOkSendNoticeStatus

String getPayOrderOkSendNoticeStatus(String xunleiPayId)
                                     throws org.springframework.dao.DataAccessException
得到成功订单表里的send_notice_status值

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

updateSendNoticeStatus

void updateSendNoticeStatus(String xunleiPayId,
                            String sendNoticeStatus)
                            throws org.springframework.dao.DataAccessException
更新send_notice_status值

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

listUnsuccessNoticeXunleiPayId

List<String> listUnsuccessNoticeXunleiPayId(Date fromTime,
                                            Date endTime)
                                            throws org.springframework.dao.DataAccessException
参数:
fromTime -
endTime -
返回:
抛出:
org.springframework.dao.DataAccessException

getCountByPhoneBizNoAndDate

int getCountByPhoneBizNoAndDate(String phone,
                                String bizNo,
                                Date fromDate,
                                Date toDate)
                                throws org.springframework.dao.DataAccessException
根据手机号、业务号、开始日期、结束日期查询订单数量

参数:
phone - 手机号
bizNo - 业务号
fromDate - 开始日期
toDate - 结束日期
返回:
订单数
抛出:
org.springframework.dao.DataAccessException

getSumPayAmountByXunleiIdBizNoAndDate

int getSumPayAmountByXunleiIdBizNoAndDate(String xunleiId,
                                          String bizNo,
                                          Date fromDate,
                                          Date toDate)
                                          throws org.springframework.dao.DataAccessException
获取用户一定日期内的成功订单总金额(必须以分为单位)

参数:
xunleiId - 迅雷id
bizNo - 业务编号
fromDate - 开始日期
toDate - 结束日期
返回:
抛出:
org.springframework.dao.DataAccessException

getCountByXunleiIdBizNoAndDate

int getCountByXunleiIdBizNoAndDate(String xunleiId,
                                   String bizNo,
                                   Date fromDate,
                                   Date toDate)
                                   throws org.springframework.dao.DataAccessException
帐号内一定时间内的成功次数

参数:
xunleiId - 迅雷Id
bizNo - 业务编号
fromDate - 开始日期
toDate - 结束日期
返回:
抛出:
org.springframework.dao.DataAccessException

getPayOrderOkByPayTypeAndChannelOrderId

PayOrderOk getPayOrderOkByPayTypeAndChannelOrderId(String payType,
                                                   String channelOrderId)
                                                   throws org.springframework.dao.DataAccessException
抛出:
org.springframework.dao.DataAccessException

getFirstPayOrderOkByXunleiIdAndPayType

PayOrderOk getFirstPayOrderOkByXunleiIdAndPayType(String xunleiId,
                                                  String payType)
                                                  throws org.springframework.dao.DataAccessException
根据xunleiId获取第一次使用payType支付的成功订单

参数:
xunleiId - 迅雷Id
payType - 支付方式
返回:
PayOrderOk
抛出:
org.springframework.dao.DataAccessException

getLastPayOrderOkByXunleiIdAndPayType

PayOrderOk getLastPayOrderOkByXunleiIdAndPayType(String xunleiId,
                                                 String payType)
                                                 throws org.springframework.dao.DataAccessException
根据xunleiId获取最后一次使用payType支付的有channelOrderId的成功订单

参数:
xunleiId - 迅雷Id
payType - 支付方式
返回:
PayOrderOk
抛出:
org.springframework.dao.DataAccessException

getSumOfOrderByXunleiIdAndDate

long getSumOfOrderByXunleiIdAndDate(String xunleiId,
                                    Date fromDate,
                                    Date toDate)
获取用户一定日期内的订单金额

参数:
xunleiId - 迅雷ID
fromDate - 开始日期
toDate - 结束日期
返回:
Long

getSumOfOrderByXunleiIdPayTypeAndDate

long getSumOfOrderByXunleiIdPayTypeAndDate(String xunleiId,
                                           String payType,
                                           Date fromDate,
                                           Date toDate)
获取用户一定日期内支付类型的订单金额

参数:
xunleiId - 迅雷ID
payType - 支付方式
fromDate - 开始日期
toDate - 结束日期
返回:
Long


Copyright © 2016. All rights reserved.