|
|
@@ -304,7 +304,7 @@ public class ExchangeCodeServiceImpl extends ServiceImpl<ExchangeCodeMapper, Exc
|
|
|
//默认数量为1
|
|
|
orderDon.setNum(1);
|
|
|
orderDon.setGoodsId(sku.getGoodsId());
|
|
|
- orderDon.setExCode(exCodeOrderDon.getExCode());
|
|
|
+ orderDon.setExCode(exCode);
|
|
|
orderDon.setStatus(goodsDon.getType() == 1 && goodsDon.getSecondType() == 2 ? OrderDon.Status.complete : OrderDon.Status.hasPayment);
|
|
|
if (relation.getStartTime() == null || relation.getExpiryTime() == null) {
|
|
|
orderDon.setStatus(OrderDon.Status.hasPayment);
|