| | |
| | | goodsOrder.setPayOrderId(paymentNo); |
| | | goodsOrder.setStatus(Constants.OrderStatus.PAY_DONE.getKey()); |
| | | //生成核销码 |
| | | goodsOrder.setExchangeCode(Constants.equalsInteger(goodsOrder.getReceiveType(),Constants.ZERO)?null:Constants.getRandomNumber()); |
| | | if(Constants.equalsInteger(goodsOrder.getReceiveType(),Constants.ONE)){ |
| | | goodsOrder.setExchangeCode(goodsorderService.createExchangeCode()); |
| | | } |
| | | goodsOrder.setPayMethod(Constants.ZERO); |
| | | goodsorderService.updateById(goodsOrder); |
| | | if(Objects.nonNull(goodsOrder.getPickUpShopId())){ |