1.添加中奖人联系地址接口
Showing
1 changed file
with
12 additions
and
0 deletions
... | @@ -78,6 +78,18 @@ public class ActivityAddressController { | ... | @@ -78,6 +78,18 @@ public class ActivityAddressController { |
78 | if (Objects.isNull(userId)) { | 78 | if (Objects.isNull(userId)) { |
79 | Assert.notNull(userId, "visUserId is null"); | 79 | Assert.notNull(userId, "visUserId is null"); |
80 | } | 80 | } |
81 | String name = resources.getName(); | ||
82 | if (!StringUtils.hasText(name)) { | ||
83 | Assert.notNull(name, "name is null"); | ||
84 | } | ||
85 | String cellphone = resources.getCellphone(); | ||
86 | if (!StringUtils.hasText(cellphone)) { | ||
87 | Assert.notNull(cellphone, "cellphone is null"); | ||
88 | } | ||
89 | String address = resources.getAddress(); | ||
90 | if (!StringUtils.hasText(address)) { | ||
91 | Assert.notNull(address, "address is null"); | ||
92 | } | ||
81 | ActivityAddressDTO activityAddressDTO = this.activityAddressService.createOrUpdateActivityAddress(resources); | 93 | ActivityAddressDTO activityAddressDTO = this.activityAddressService.createOrUpdateActivityAddress(resources); |
82 | return ResultInfo.success(activityAddressDTO); | 94 | return ResultInfo.success(activityAddressDTO); |
83 | } | 95 | } | ... | ... |
-
Please register or sign in to post a comment