@Service @Transactional public class TradePaymentService extends BaseService<TradePayment>
限定符和类型 | 字段和说明 |
---|---|
private TradePaymentDao |
dao |
private TradePaymentHistoryDao |
historyDao |
static int |
STATUS_CLOSE |
static int |
STATUS_PAID |
static int |
STATUS_PENDING_PAY |
static int |
STATUS_PENDING_REFUND |
static int |
STATUS_REFUNDED |
basedao, log
构造器和说明 |
---|
TradePaymentService() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
cancel(short siteId,
long paymentId) |
boolean |
close(short siteId,
long paymentId) |
boolean |
create(short siteId,
TradePayment entity) |
PageHandler |
getPage(java.lang.Short siteId,
java.lang.Long userId,
java.lang.String tradeType,
java.lang.String serialNumber,
java.lang.String accountType,
java.lang.String accountSerialNumber,
java.lang.Integer[] status,
java.util.Date startCreateDate,
java.util.Date endCreateDate,
java.lang.String paymentType,
java.lang.Integer pageIndex,
java.lang.Integer pageSize) |
boolean |
paid(short siteId,
long paymentId,
java.lang.String accountSerialNumber) |
boolean |
pendingRefund(short siteId,
long paymentId) |
boolean |
processed(short siteId,
long paymentId,
long userId) |
boolean |
refunded(short siteId,
long paymentId) |
delete, delete, delete, getEntity, getEntity, getEntitys, getEntitys, getEntitys, getEntitys, getId, save, save, update, update
public static final int STATUS_PENDING_PAY
public static final int STATUS_PAID
public static final int STATUS_PENDING_REFUND
public static final int STATUS_REFUNDED
public static final int STATUS_CLOSE
private TradePaymentDao dao
private TradePaymentHistoryDao historyDao
@Transactional(readOnly=true) public PageHandler getPage(java.lang.Short siteId, java.lang.Long userId, java.lang.String tradeType, java.lang.String serialNumber, java.lang.String accountType, java.lang.String accountSerialNumber, java.lang.Integer[] status, java.util.Date startCreateDate, java.util.Date endCreateDate, java.lang.String paymentType, java.lang.Integer pageIndex, java.lang.Integer pageSize)
siteId
- userId
- tradeType
- serialNumber
- accountType
- accountSerialNumber
- status
- startCreateDate
- endCreateDate
- paymentType
- pageIndex
- pageSize
- @Transactional(isolation=READ_COMMITTED) public boolean create(short siteId, TradePayment entity)
@Transactional(isolation=READ_COMMITTED) public boolean processed(short siteId, long paymentId, long userId)
@Transactional(isolation=READ_COMMITTED) public boolean paid(short siteId, long paymentId, java.lang.String accountSerialNumber)
@Transactional(isolation=READ_COMMITTED) public boolean cancel(short siteId, long paymentId)
@Transactional(isolation=READ_COMMITTED) public boolean pendingRefund(short siteId, long paymentId)
@Transactional(isolation=READ_COMMITTED) public boolean refunded(short siteId, long paymentId)
@Transactional(isolation=READ_COMMITTED) public boolean close(short siteId, long paymentId)