|  | @@ -2,6 +2,7 @@ package com.yonge.cooleshow.biz.dal.service.impl;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.alibaba.fastjson.JSON;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 | 
	
		
			
				|  |  | +import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.metadata.IPage;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 | 
	
	
		
			
				|  | @@ -640,6 +641,9 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
 | 
	
		
			
				|  |  |              List<TeacherWrapper.CustomerServiceSendMsg2User> customerServiceSendMsg2User = new ArrayList<>();
 | 
	
		
			
				|  |  |              if (Boolean.TRUE.equals(customerService) && Boolean.FALSE.equals(teacherSubmitReq.getCustomerService())) {
 | 
	
		
			
				|  |  |                  customerServiceSendMsg2User.addAll(transferFriendV2(teacher.getUserId(), true));
 | 
	
		
			
				|  |  | +                this.update(null, new UpdateWrapper<Teacher>().lambda()
 | 
	
		
			
				|  |  | +                        .eq(Teacher::getCustomerId, teacherSubmitReq.getUserId())
 | 
	
		
			
				|  |  | +                        .set(Teacher::getCustomerId, null));
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              // 如果机构解绑,更新机构ID为-1
 | 
	
		
			
				|  |  |              if (Boolean.TRUE.equals(teacherSubmitReq.getBindTenant())) {
 | 
	
	
		
			
				|  | @@ -1629,6 +1633,9 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
 | 
	
		
			
				|  |  |          Boolean customerService = teacher.getCustomerService();
 | 
	
		
			
				|  |  |          if (UserLockFlag.NORMAL.equals(teacher.getLockFlag()) && Boolean.TRUE.equals(customerService)) {
 | 
	
		
			
				|  |  |              List<TeacherWrapper.CustomerServiceSendMsg2User> customerServiceSendMsg2User = transferFriendV2(teacherId, false);
 | 
	
		
			
				|  |  | +            this.update(null, new UpdateWrapper<Teacher>().lambda()
 | 
	
		
			
				|  |  | +                    .eq(Teacher::getCustomerId, teacherId)
 | 
	
		
			
				|  |  | +                    .set(Teacher::getCustomerId, null));
 | 
	
		
			
				|  |  |              for (TeacherWrapper.CustomerServiceSendMsg2User serviceSendMsg2User : customerServiceSendMsg2User) {
 | 
	
		
			
				|  |  |                  String customerMessage = sysConfigService.findConfigValue(SysConfigConstant.CUSTOMER_SERVICE_ADD_MSG);
 | 
	
		
			
				|  |  |                  String customerTitle = sysConfigService.findConfigValue(SysConfigConstant.CUSTOMER_SERVICE_ADD_MSG_TITLE);
 |