|
@@ -4,7 +4,9 @@ import com.alibaba.fastjson.JSON;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.qmth.boot.tools.signature.SignatureEntity;
|
|
import com.qmth.boot.tools.signature.SignatureEntity;
|
|
import com.qmth.boot.tools.signature.SignatureType;
|
|
import com.qmth.boot.tools.signature.SignatureType;
|
|
|
|
+import com.qmth.distributed.print.business.bean.result.DictionaryResult;
|
|
import com.qmth.distributed.print.business.service.SsoService;
|
|
import com.qmth.distributed.print.business.service.SsoService;
|
|
|
|
+import com.qmth.distributed.print.business.service.TeachCourseService;
|
|
import com.qmth.teachcloud.common.bean.params.OpenParams;
|
|
import com.qmth.teachcloud.common.bean.params.OpenParams;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.entity.*;
|
|
import com.qmth.teachcloud.common.entity.*;
|
|
@@ -17,7 +19,6 @@ import com.qmth.teachcloud.common.util.JacksonUtil;
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -32,8 +33,8 @@ import java.util.*;
|
|
public class SsoServiceImpl implements SsoService {
|
|
public class SsoServiceImpl implements SsoService {
|
|
private final static Logger log = LoggerFactory.getLogger(SsoServiceImpl.class);
|
|
private final static Logger log = LoggerFactory.getLogger(SsoServiceImpl.class);
|
|
|
|
|
|
- @Autowired
|
|
|
|
- private SysUserService sysUserService;
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ SysUserService sysUserService;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
CommonCacheService commonCacheService;
|
|
CommonCacheService commonCacheService;
|
|
@@ -47,6 +48,9 @@ public class SsoServiceImpl implements SsoService {
|
|
@Resource
|
|
@Resource
|
|
SysUserRoleService sysUserRoleService;
|
|
SysUserRoleService sysUserRoleService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TeachCourseService teachCourseService;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Map<String, Object> markerLoginInfo() {
|
|
public Map<String, Object> markerLoginInfo() {
|
|
try {
|
|
try {
|
|
@@ -255,10 +259,15 @@ public class SsoServiceImpl implements SsoService {
|
|
stringJoiner = stringJoiner.add(SystemConstant.GET_SYMBOL).add(SystemConstant.PARAMS).add(SystemConstant.GET_EQUAL).add(JacksonUtil.parseJson(openParams));
|
|
stringJoiner = stringJoiner.add(SystemConstant.GET_SYMBOL).add(SystemConstant.PARAMS).add(SystemConstant.GET_EQUAL).add(JacksonUtil.parseJson(openParams));
|
|
map.computeIfAbsent(SystemConstant.PARAMS, v -> JacksonUtil.parseJson(openParams));
|
|
map.computeIfAbsent(SystemConstant.PARAMS, v -> JacksonUtil.parseJson(openParams));
|
|
}
|
|
}
|
|
|
|
+ Long userId = sysUser.getId();
|
|
|
|
+ List<DictionaryResult> dictionaryResultList = teachCourseService.findTeacherCourseInfo(userId);
|
|
|
|
+
|
|
|
|
+
|
|
map.computeIfAbsent("loginName", v -> loginName);
|
|
map.computeIfAbsent("loginName", v -> loginName);
|
|
map.computeIfAbsent("realName", v -> realName);
|
|
map.computeIfAbsent("realName", v -> realName);
|
|
map.computeIfAbsent("role", v -> role);
|
|
map.computeIfAbsent("role", v -> role);
|
|
map.computeIfAbsent("returnUrl", v -> returnUrl);
|
|
map.computeIfAbsent("returnUrl", v -> returnUrl);
|
|
|
|
+ map.computeIfAbsent("course", v -> dictionaryResultList);
|
|
map.put("redirectUrl", stringJoiner.toString());
|
|
map.put("redirectUrl", stringJoiner.toString());
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|