|
|
@@ -15,6 +15,7 @@ import com.fs.common.core.domain.entity.SysDictData;
|
|
|
import com.fs.common.core.redis.RedisCache;
|
|
|
import com.fs.common.enums.BizResponseEnum;
|
|
|
import com.fs.common.exception.CustomException;
|
|
|
+import com.fs.common.exception.ServiceException;
|
|
|
import com.fs.common.exception.base.BaseException;
|
|
|
import com.fs.common.utils.CloudHostUtils;
|
|
|
import com.fs.common.utils.DateUtils;
|
|
|
@@ -544,6 +545,19 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
return R.error(500, "该用户("+fsUser.getUserId() + ")已成为其他销售会员");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // 重粉问题,关闭单销售重粉检测 打开公司销售重粉检测 允许不同公司销售重粉
|
|
|
+ if(!oneCompanyCourse && config.isMoreCompanyCourse()){
|
|
|
+ QwExternalContact query=new QwExternalContact();
|
|
|
+ query.setFsUserId(param.getUserId());
|
|
|
+ query.setCompanyId(param.getCompanyId());
|
|
|
+ List<QwExternalContact> qwExternalContacts = qwExternalContactMapper.selectQwExternalContactList(query);
|
|
|
+ if(qwExternalContacts != null && !qwExternalContacts.isEmpty() && !Objects.equals(qwExternalContacts.get(0).getCompanyUserId(), param.getCompanyUserId())){
|
|
|
+ String msgInfo= "该用户("+fsUser.getUserId() + ")已在公司"+param.getCompanyId()+"成为其他销售会员";
|
|
|
+ return R.error(500, msgInfo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
Integer isRoom = param.getIsRoom();
|
|
|
|
|
|
// 处理逻辑
|