|
@@ -7,6 +7,8 @@ import com.fs.activity.domain.AccWork;
|
|
|
import com.fs.activity.service.AccActivityService;
|
|
import com.fs.activity.service.AccActivityService;
|
|
|
import com.fs.activity.mapper.AccActivityMapper;
|
|
import com.fs.activity.mapper.AccActivityMapper;
|
|
|
import com.fs.common.core.domain.R;
|
|
import com.fs.common.core.domain.R;
|
|
|
|
|
+import com.fs.course.domain.FsUserCompanyUser;
|
|
|
|
|
+import com.fs.course.mapper.FsUserCompanyUserMapper;
|
|
|
import com.fs.gtPush.service.uniPush2Service;
|
|
import com.fs.gtPush.service.uniPush2Service;
|
|
|
import com.fs.his.enums.PushLogDesTypeEnum;
|
|
import com.fs.his.enums.PushLogDesTypeEnum;
|
|
|
import com.fs.im.service.OpenIMService;
|
|
import com.fs.im.service.OpenIMService;
|
|
@@ -36,6 +38,9 @@ public class AccActivityServiceImpl extends ServiceImpl<AccActivityMapper, AccAc
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private OpenIMService openIMService;
|
|
private OpenIMService openIMService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private FsUserCompanyUserMapper fsUserCompanyUserMapper;
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private RedisTemplate redisTemplate;
|
|
private RedisTemplate redisTemplate;
|
|
|
|
|
|
|
@@ -215,6 +220,27 @@ public class AccActivityServiceImpl extends ServiceImpl<AccActivityMapper, AccAc
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @Description: 检查用户是否已经绑定销售
|
|
|
|
|
+ * @Param:
|
|
|
|
|
+ * @Return:
|
|
|
|
|
+ * @Author xgb
|
|
|
|
|
+ * @Date 2026/3/12 14:16
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public R checkBindCompanyUser(Long userId) {
|
|
|
|
|
+
|
|
|
|
|
+ FsUserCompanyUser companyUser = new FsUserCompanyUser();
|
|
|
|
|
+ companyUser.setUserId(userId);
|
|
|
|
|
+ companyUser.setStatus(1);
|
|
|
|
|
+ List<FsUserCompanyUser> users=fsUserCompanyUserMapper.selectFsUserCompanyUserList(companyUser);
|
|
|
|
|
+ if(users== null || users.isEmpty()){
|
|
|
|
|
+ return R.error("请先添加销售app好友");
|
|
|
|
|
+ }
|
|
|
|
|
+ return R.ok();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|