|
|
@@ -152,8 +152,8 @@ public class FsUserCompanyBindServiceImpl extends ServiceImpl<FsUserCompanyBindM
|
|
|
}
|
|
|
}
|
|
|
if (qwExternalContact.getUserRepeat() == 0) {
|
|
|
- Integer i = baseMapper.selectCount(new QueryWrapper<FsUserCompanyBind>().eq("fs_user_id", fsUserId).ne("company_user_id", companyUserId));
|
|
|
- if (i > 0) {
|
|
|
+ Integer i = baseMapper.selectCount(new QueryWrapper<FsUserCompanyBind>().eq("fs_user_id", fsUserId));
|
|
|
+ if (i > 1) {
|
|
|
qwExternalContact.setUserRepeat(1);
|
|
|
qwExternalContactMapper.updateById(qwExternalContact);
|
|
|
}
|