@@ -18,7 +18,6 @@ public class LuckyDrawReq {
/**
* 地址id
*/
- @NotNull
private Long addressId;
@NotNull
@@ -639,6 +639,9 @@ public class MarketFrontServiceImpl implements MarketFrontService {
}
public Long receiveRealGoodsReward(Long userId, LuckyDrawRecord record, Long addressId) {
+ if (addressId == null) {
+ throw new BusinessRuntimeException("请添加收货地址.");
+ }
User user = userMapper.selectById(userId);
/* 生成订单 */
String donNo = SEQUENCE.nextId().toString();