|
|
@@ -2013,10 +2013,6 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService {
|
|
|
public ResponseResult<FsUser> isAddCompanyUser(FsUserCourseAddCompanyUserParam param) {
|
|
|
logger.info("\n 【进入个微-判断是否添加客服】,入参:{}", param);
|
|
|
|
|
|
- if (!isUserCoursePeriodValid(param)) {
|
|
|
- return ResponseResult.fail(504, "请观看最新的课程项目");
|
|
|
- }
|
|
|
-
|
|
|
//查询用户
|
|
|
FsUser fsUser = fsUserMapper.selectFsUserById(param.getUserId());
|
|
|
if (fsUser == null) {
|
|
|
@@ -2055,6 +2051,11 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService {
|
|
|
}
|
|
|
return ResponseResult.ok(fsUser);
|
|
|
}
|
|
|
+
|
|
|
+ if (!isUserCoursePeriodValid(param)) {
|
|
|
+ return ResponseResult.fail(504, "请观看最新的课程项目");
|
|
|
+ }
|
|
|
+
|
|
|
//判断该销售是否存在
|
|
|
CompanyUser companyUser = companyUserMapper.selectCompanyUserById(param.getCompanyUserId());
|
|
|
if (companyUser == null) {
|