...
|
...
|
@@ -984,9 +984,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
if(StringUtils.isBlank(req.getWaybillCode())){
|
|
|
throw new ServiceException(400,"错误:参数错误,物流单号为空");
|
|
|
}
|
|
|
if(req.getDepotNo()==null){
|
|
|
throw new ServiceException(400,"错误:参数错误,仓库号为空");
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isBlank(req.getMobile())){
|
|
|
throw new ServiceException(400,"错误:参数错误,手机号为空");
|
|
|
}
|
...
|
...
|
@@ -1104,43 +1102,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
return jsonObject;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
public JSONObject updateOrderStatus(BuyerOrderReq req) {
|
|
|
if(null == req.getId() || null == req.getStatus()) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectById(req.getId());
|
|
|
if(null == buyerOrder) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
LOGGER.info("method updateOrderStatus in, buyerOrderMapper.selectById result is {}", buyerOrder);
|
|
|
|
|
|
//调用前台接口
|
|
|
String args = "";
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
if(req.getStatus().byteValue() == Constant.BUYER_ORDER_STATUS_TO_BE_RECEIVED.getByteVal()) {//鉴定通过
|
|
|
args = "orderAppraise.appraiseSuccess";
|
|
|
//重新设置mobile
|
|
|
restMobileFromBuyer(req,buyerOrder.getOrderCode());
|
|
|
jsonObject = asyncCallAppraise(args, buyerOrder.getOrderCode(), req);
|
|
|
}else if(req.getStatus().byteValue() == Constant.BUYER_ORDER_STATUS_JUDGE_NOT_PASS.getByteVal()) {//鉴定不通过
|
|
|
args = "orderAppraise.appraiseFail";
|
|
|
//重新设置mobile
|
|
|
resetMobileFromSeller(req,buyerOrder.getOrderCode());
|
|
|
jsonObject = asyncCallAppraise(args, buyerOrder.getOrderCode(), req);
|
|
|
}
|
|
|
|
|
|
if(jsonObject.getIntValue("code") == 200) {
|
|
|
buyerOrderMapper.updateStatusById(req.getId(), req.getStatus());
|
|
|
}
|
|
|
|
|
|
return jsonObject;
|
|
|
}
|
|
|
*/
|
|
|
|
|
|
|
|
|
private Integer resetDepot(String orderCode){
|
|
|
Integer depotNum=null ;
|
|
|
List<BuyerOrderGoods> buyerGoodsList = buyerOrderGoodsMapper.selectByOrderCode(Arrays.asList(orderCode));
|
...
|
...
|
|