Commit c86ef2b6 c86ef2b67a2afa54491e965cb1cc95c78ccc8467 by xianghan

1.添加中奖人联系地址接口

1 parent 446b6ce6
...@@ -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 }
......