|
@@ -107,6 +107,11 @@ public class ToBannerServiceImpl implements IToBannerService {
|
107
|
107
|
banner.setUpdateDate(new Date());
|
108
|
108
|
banner.setUpdateUser(toUser.getId());
|
109
|
109
|
|
|
110
|
+ if (banner.getCommunityIds().size() < 1){
|
|
111
|
+ response.addError("投放社区不能为空!");
|
|
112
|
+ return response;
|
|
113
|
+ }
|
|
114
|
+
|
110
|
115
|
try {
|
111
|
116
|
for (Integer communityId : banner.getCommunityIds()){
|
112
|
117
|
banner.setCommunityId(communityId);
|
|
@@ -179,6 +184,11 @@ public class ToBannerServiceImpl implements IToBannerService {
|
179
|
184
|
response.addError("失效时间不能小于或等于生效时间!");
|
180
|
185
|
return response;
|
181
|
186
|
}
|
|
187
|
+
|
|
188
|
+ if (null == banner.getCommunityId()){
|
|
189
|
+ response.addError("投放社区不能为空!");
|
|
190
|
+ return response;
|
|
191
|
+ }
|
182
|
192
|
|
183
|
193
|
ToUser toUser = toUserMapper.selectByPrimaryKey(currentUserId);
|
184
|
194
|
|