|
@@ -17,6 +17,7 @@ import com.huiju.estateagents.channel.sysChannel.service.ITaChannelProxyService;
|
17
|
17
|
import com.huiju.estateagents.common.CommConstant;
|
18
|
18
|
import com.huiju.estateagents.common.JWTUtils;
|
19
|
19
|
import com.huiju.estateagents.common.MD5Utils;
|
|
20
|
+import com.huiju.estateagents.common.StringUtils;
|
20
|
21
|
import com.huiju.estateagents.entity.TaChannelAppRelation;
|
21
|
22
|
import com.huiju.estateagents.service.ITaChannelAppRelationService;
|
22
|
23
|
import org.apache.commons.collections.CollectionUtils;
|
|
@@ -191,6 +192,9 @@ public class SysUserChannelController extends BaseController {
|
191
|
192
|
responseBean.addError("账户名已存在");
|
192
|
193
|
return responseBean;
|
193
|
194
|
}
|
|
195
|
+ if (!StringUtils.isEmpty(taChannelProxy.getUserName()) && StringUtils.isEmpty(taChannelProxy.getUserName().trim())){
|
|
196
|
+ taChannelProxy.setUserName(null);
|
|
197
|
+ }
|
194
|
198
|
|
195
|
199
|
QueryWrapper<TaChannelProxy> taChannelProxyQueryWrapper = new QueryWrapper<>();
|
196
|
200
|
taChannelProxyQueryWrapper.eq("channel_tel", taChannelProxy.getChannelTel());
|
|
@@ -241,6 +245,10 @@ public class SysUserChannelController extends BaseController {
|
241
|
245
|
return responseBean;
|
242
|
246
|
}
|
243
|
247
|
|
|
248
|
+ if (StringUtils.isEmpty(taChannelProxy.getUserName())){
|
|
249
|
+ taChannelProxy.setUserName(null);
|
|
250
|
+ }
|
|
251
|
+
|
244
|
252
|
QueryWrapper<TaChannelProxy> userNameQueryWrapper = new QueryWrapper<>();
|
245
|
253
|
userNameQueryWrapper.eq("user_name", taChannelProxy.getUserName());
|
246
|
254
|
Integer countUserName = iTaChannelProxyService.count(userNameQueryWrapper);
|