Showing
1 changed file
with
1 additions
and
40 deletions
@@ -984,9 +984,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -984,9 +984,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
984 | if(StringUtils.isBlank(req.getWaybillCode())){ | 984 | if(StringUtils.isBlank(req.getWaybillCode())){ |
985 | throw new ServiceException(400,"错误:参数错误,物流单号为空"); | 985 | throw new ServiceException(400,"错误:参数错误,物流单号为空"); |
986 | } | 986 | } |
987 | - if(req.getDepotNo()==null){ | ||
988 | - throw new ServiceException(400,"错误:参数错误,仓库号为空"); | ||
989 | - } | 987 | + |
990 | if(StringUtils.isBlank(req.getMobile())){ | 988 | if(StringUtils.isBlank(req.getMobile())){ |
991 | throw new ServiceException(400,"错误:参数错误,手机号为空"); | 989 | throw new ServiceException(400,"错误:参数错误,手机号为空"); |
992 | } | 990 | } |
@@ -1104,43 +1102,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -1104,43 +1102,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
1104 | return jsonObject; | 1102 | return jsonObject; |
1105 | } | 1103 | } |
1106 | 1104 | ||
1107 | - /* | ||
1108 | - public JSONObject updateOrderStatus(BuyerOrderReq req) { | ||
1109 | - if(null == req.getId() || null == req.getStatus()) { | ||
1110 | - return null; | ||
1111 | - } | ||
1112 | - | ||
1113 | - BuyerOrder buyerOrder = buyerOrderMapper.selectById(req.getId()); | ||
1114 | - if(null == buyerOrder) { | ||
1115 | - return null; | ||
1116 | - } | ||
1117 | - | ||
1118 | - LOGGER.info("method updateOrderStatus in, buyerOrderMapper.selectById result is {}", buyerOrder); | ||
1119 | - | ||
1120 | - //调用前台接口 | ||
1121 | - String args = ""; | ||
1122 | - JSONObject jsonObject = new JSONObject(); | ||
1123 | - if(req.getStatus().byteValue() == Constant.BUYER_ORDER_STATUS_TO_BE_RECEIVED.getByteVal()) {//鉴定通过 | ||
1124 | - args = "orderAppraise.appraiseSuccess"; | ||
1125 | - //重新设置mobile | ||
1126 | - restMobileFromBuyer(req,buyerOrder.getOrderCode()); | ||
1127 | - jsonObject = asyncCallAppraise(args, buyerOrder.getOrderCode(), req); | ||
1128 | - }else if(req.getStatus().byteValue() == Constant.BUYER_ORDER_STATUS_JUDGE_NOT_PASS.getByteVal()) {//鉴定不通过 | ||
1129 | - args = "orderAppraise.appraiseFail"; | ||
1130 | - //重新设置mobile | ||
1131 | - resetMobileFromSeller(req,buyerOrder.getOrderCode()); | ||
1132 | - jsonObject = asyncCallAppraise(args, buyerOrder.getOrderCode(), req); | ||
1133 | - } | ||
1134 | - | ||
1135 | - if(jsonObject.getIntValue("code") == 200) { | ||
1136 | - buyerOrderMapper.updateStatusById(req.getId(), req.getStatus()); | ||
1137 | - } | ||
1138 | - | ||
1139 | - return jsonObject; | ||
1140 | - } | ||
1141 | - */ | ||
1142 | - | ||
1143 | - | ||
1144 | private Integer resetDepot(String orderCode){ | 1105 | private Integer resetDepot(String orderCode){ |
1145 | Integer depotNum=null ; | 1106 | Integer depotNum=null ; |
1146 | List<BuyerOrderGoods> buyerGoodsList = buyerOrderGoodsMapper.selectByOrderCode(Arrays.asList(orderCode)); | 1107 | List<BuyerOrderGoods> buyerGoodsList = buyerOrderGoodsMapper.selectByOrderCode(Arrays.asList(orderCode)); |
-
Please register or login to post a comment