...
|
...
|
@@ -416,11 +416,18 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
}
|
|
|
|
|
|
private BuyerOrder checkParam(BuyerOrderReq req){
|
|
|
if(null == req.getId()) {
|
|
|
LOGGER.info("checkParam enter ,req = {}",req);
|
|
|
boolean isBlankOrderCode = StringUtils.isBlank(req.getOrderCode());
|
|
|
if(null == req.getId()&&isBlankOrderCode) {
|
|
|
throw new ServiceException(400,"错误:参数错误");
|
|
|
}
|
|
|
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectById(req.getId());
|
|
|
BuyerOrder buyerOrder ;
|
|
|
if(isBlankOrderCode){
|
|
|
buyerOrder = buyerOrderMapper.selectById(req.getId());
|
|
|
}else{
|
|
|
buyerOrder = buyerOrderMapper.selectByOrderCode(req.getOrderCode());
|
|
|
}
|
|
|
if(null == buyerOrder) {
|
|
|
throw new ServiceException(400,"错误:订单为空");
|
|
|
}
|
...
|
...
|
|