|
@@ -8,7 +8,6 @@ import com.qmth.boot.core.solar.crypto.AppLicenseUtil;
|
|
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.service.AuthInfoService;
|
|
import com.qmth.distributed.print.business.service.AuthInfoService;
|
|
-import com.qmth.teachcloud.common.bean.dto.AuthOrgInfoDto;
|
|
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.entity.BasicSchool;
|
|
import com.qmth.teachcloud.common.entity.BasicSchool;
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
@@ -79,16 +78,7 @@ public class TSAuthController {
|
|
@ApiResponses({@ApiResponse(code = 200, message = "授权配置信息", response = Long.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "授权配置信息", response = Long.class)})
|
|
@RequestMapping(value = "/select", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/select", method = RequestMethod.POST)
|
|
public Result select() {
|
|
public Result select() {
|
|
- Long schoolId = SystemConstant.getHeadOrUserSchoolId();
|
|
|
|
- Long expireTime = null;
|
|
|
|
- if (Objects.nonNull(schoolId)) {
|
|
|
|
- BasicSchool basicSchool = commonCacheService.schoolCache(schoolId);
|
|
|
|
- AuthOrgInfoDto authOrgInfoDto = commonCacheService.authInfoCache(basicSchool.getCode());
|
|
|
|
- if (Objects.nonNull(authOrgInfoDto) && Objects.nonNull(authOrgInfoDto.getControl())) {
|
|
|
|
- expireTime = Objects.nonNull(authOrgInfoDto.getControl().getExpireTime()) ? authOrgInfoDto.getControl().getExpireTime() : -1L;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return ResultUtil.ok(expireTime);
|
|
|
|
|
|
+ return ResultUtil.ok(authInfoService.selectAuthInfo());
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "测试推送信息给教研分析")
|
|
@ApiOperation(value = "测试推送信息给教研分析")
|