|
@@ -247,6 +247,7 @@ public class ChannelMgrController extends BaseApiController {
|
|
|
}
|
|
|
boolean mobileChange = false; // 手机号码是否有变更
|
|
|
if(!channel.getMobile().equals(oldChannel.getMobile())) {
|
|
|
+
|
|
|
int mobileCount = channelService.count(
|
|
|
new LambdaQueryWrapper<Channel>().eq(Channel::getMobile, channel.getMobile()));
|
|
|
if(mobileCount > 0) {
|
|
@@ -281,6 +282,7 @@ public class ChannelMgrController extends BaseApiController {
|
|
|
}
|
|
|
}
|
|
|
try {
|
|
|
+ channel.setUserId(oldChannel.getUserId());
|
|
|
channelService.updateChannel(channel, mobileChange);
|
|
|
} catch (Exception e) {
|
|
|
return AjaxResult.error(e.getMessage());
|