|
|
package com.yohoufo.order.service.impl;
|
|
|
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohoufo.order.request.ShoppingRequest;
|
|
|
import com.yohoufo.order.response.ShoppingPaymentResponse;
|
|
|
import com.yohoufo.order.service.IShoppingService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
public class ShoppingServiceImpl implements IShoppingService{
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
public ShoppingPaymentResponse payment(ShoppingRequest shoppingRequest){
|
|
|
|
|
|
// 入口参数检查
|
|
|
if (StringUtils.isEmpty(shoppingRequest.getUid())
|
|
|
|| StringUtils.isEmpty(shoppingRequest.getSkup())){
|
|
|
logger.warn("payment uid or skup is null");
|
|
|
// TODO
|
|
|
throw new ServiceException(ServiceError.ORDER_REQUEST_ERROR);
|
|
|
}
|
|
|
|
|
|
// skup是否是可售状态
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
} |
...
|
...
|
|