|
|
@@ -52,7 +52,7 @@ public class ExchangeCodeServiceImpl implements ExchangeCodeService {
|
|
|
if (webWholesaleOrderDonCodeRelate == null) {
|
|
|
throw BusinessRuntimeException.getInstance("兑换码不存在");
|
|
|
}
|
|
|
- if (webWholesaleOrderDonCodeRelate.getDhUserId() != 0) {
|
|
|
+ if (webWholesaleOrderDonCodeRelate.getDhUserId() != null && webWholesaleOrderDonCodeRelate.getDhUserId() != 0) {
|
|
|
throw BusinessRuntimeException.getInstance("兑换码已使用");
|
|
|
}
|
|
|
Long orderId = webWholesaleOrderDonCodeRelate.getOrderId();
|