@Service @Transactional public class TradeOrderService extends BaseService<TradeOrder>
限定符和类型 | 字段和说明 |
---|---|
private TradeOrderDao |
dao |
private TradeOrderHistoryDao |
historyDao |
private CmsContentProductService |
productService |
static int |
STATUS_CLOSE |
static int |
STATUS_INVALID |
static int |
STATUS_PAID |
static int |
STATUS_PENDING |
static int |
STATUS_REFUNDED |
private TradeOrderProductService |
tradeOrderProductService |
basedao, log
构造器和说明 |
---|
TradeOrderService() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
cancelPayment(short siteId,
long orderId) |
boolean |
close(short siteId,
long orderId,
java.lang.Long userId) |
boolean |
confirm(short siteId,
long orderId) |
java.lang.Long |
create(short siteId,
long userId,
TradeOrder entity,
java.lang.String ip,
java.util.List<TradeOrderProduct> tradeOrderProductList) |
PageHandler |
getPage(java.lang.Short siteId,
java.lang.Long userId,
java.lang.Long paymentId,
java.lang.Integer[] status,
java.lang.Boolean processed,
java.util.Date startCreateDate,
java.util.Date endCreateDate,
java.lang.String orderType,
java.lang.Integer pageIndex,
java.lang.Integer pageSize) |
boolean |
invalid(short siteId,
long orderId) |
boolean |
paid(short siteId,
long orderId) |
boolean |
pay(short siteId,
long orderId,
long paymentId) |
boolean |
processed(short siteId,
long orderId,
long userId,
java.lang.String processInfo) |
boolean |
refunded(short siteId,
long orderId) |
delete, delete, delete, getEntity, getEntity, getEntitys, getEntitys, getEntitys, getEntitys, getId, save, save, update, update
public static final int STATUS_PENDING
public static final int STATUS_INVALID
public static final int STATUS_PAID
public static final int STATUS_REFUNDED
public static final int STATUS_CLOSE
private TradeOrderDao dao
private CmsContentProductService productService
private TradeOrderProductService tradeOrderProductService
private TradeOrderHistoryDao historyDao
@Transactional(readOnly=true) public PageHandler getPage(java.lang.Short siteId, java.lang.Long userId, java.lang.Long paymentId, java.lang.Integer[] status, java.lang.Boolean processed, java.util.Date startCreateDate, java.util.Date endCreateDate, java.lang.String orderType, java.lang.Integer pageIndex, java.lang.Integer pageSize)
siteId
- userId
- paymentId
- status
- processed
- startCreateDate
- endCreateDate
- orderType
- pageIndex
- pageSize
- @Transactional(isolation=READ_COMMITTED) public java.lang.Long create(short siteId, long userId, TradeOrder entity, java.lang.String ip, java.util.List<TradeOrderProduct> tradeOrderProductList)
@Transactional(isolation=READ_COMMITTED) public boolean confirm(short siteId, long orderId)
@Transactional(isolation=READ_COMMITTED) public boolean invalid(short siteId, long orderId)
@Transactional(isolation=READ_COMMITTED) public boolean pay(short siteId, long orderId, long paymentId)
@Transactional(isolation=READ_COMMITTED) public boolean cancelPayment(short siteId, long orderId)
@Transactional(isolation=READ_COMMITTED) public boolean processed(short siteId, long orderId, long userId, java.lang.String processInfo)
@Transactional(isolation=READ_COMMITTED) public boolean paid(short siteId, long orderId)
@Transactional(isolation=READ_COMMITTED) public boolean refunded(short siteId, long orderId)
@Transactional(isolation=READ_COMMITTED) public boolean close(short siteId, long orderId, java.lang.Long userId)