| | |
| | | if(orders == null || orders.size() == 0){ |
| | | return; |
| | | } |
| | | /* |
| | | for (Order o : orders) { |
| | | //set status_backend = 'RECEIVE', status = 'RECEIVE' |
| | | o.setStatusBackend("RECEIVE"); |
| | |
| | | |
| | | orderMapper.updateById(o); |
| | | } |
| | | //orderMapper.setPartnerOrderReceive(); |
| | | */ |
| | | orderMapper.setPartnerOrderReceive(); |
| | | } |
| | | |
| | | /** |
| | |
| | | o.setStatusBackend(Constants.ORDER_STATUS_BACKEND.RECEIVE.name()); |
| | | o.update(SecurityUtils.getUserId()); |
| | | |
| | | /* |
| | | //发送微信发货请求 |
| | | JSONObject jsonObject = sendWxDeliveryGood(o); |
| | | if (jsonObject != null && (int) jsonObject.get("errcode") == 0) { |
| | |
| | | o.setWxDeliveryGood(false); |
| | | o.setWxDeliveryMsg(GsonUtil.toJson(jsonObject)); |
| | | } |
| | | |
| | | */ |
| | | orderMapper.updateById(o); |
| | | } |
| | | |
| | |
| | | customerPointService.consumptionPoint(totalAmount, o.getOrderNo(), o.getCreateBy()); |
| | | } |
| | | |
| | | /* |
| | | public JSONObject sendWxDeliveryGood(Order o) { |
| | | JSONObject json = new JSONObject(); |
| | | List<OrderItem> items = orderItemMapper.selectList(new LambdaQueryWrapper<OrderItem>() |
| | |
| | | return json; |
| | | } |
| | | } |
| | | */ |
| | | |
| | | public Order confirmOrderReceive(String id) { |
| | | Order o = orderMapper.selectById(id); |