【新增】根据不同的用户类型,查询不同的专业数据
This commit is contained in:
@@ -6,7 +6,10 @@ import pc.exam.pp.framework.common.enums.CommonStatusEnum;
|
||||
import pc.exam.pp.framework.common.pojo.CommonResult;
|
||||
import pc.exam.pp.framework.common.pojo.PageParam;
|
||||
import pc.exam.pp.framework.common.pojo.PageResult;
|
||||
import pc.exam.pp.framework.common.util.object.BeanUtils;
|
||||
import pc.exam.pp.framework.excel.core.util.ExcelUtils;
|
||||
import pc.exam.pp.module.exam.controller.admin.specialty.vo.SpecialtListByUserReqVo;
|
||||
import pc.exam.pp.module.exam.controller.admin.specialty.vo.SpecialtyQueryVo;
|
||||
import pc.exam.pp.module.exam.dal.dataobject.classs.ClassDO;
|
||||
import pc.exam.pp.module.exam.service.classs.ClassService;
|
||||
import pc.exam.pp.module.system.controller.admin.user.vo.user.*;
|
||||
@@ -232,4 +235,13 @@ public class UserController {
|
||||
return success(userService.importUserList(list, updateSupport));
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/getSpeciatListByUser")
|
||||
@Operation(summary = "获取专业信息,判断用户类型")
|
||||
public CommonResult<List<SpecialtyQueryVo>> getListByUser() {
|
||||
|
||||
List<SpecialtyQueryVo> list = userService.getListByUser();
|
||||
return success(BeanUtils.toBean(list, SpecialtyQueryVo.class));
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -3,6 +3,8 @@ package pc.exam.pp.module.system.service.user;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import pc.exam.pp.framework.common.pojo.PageResult;
|
||||
import pc.exam.pp.framework.common.util.collection.CollectionUtils;
|
||||
import pc.exam.pp.module.exam.controller.admin.specialty.vo.SpecialtListByUserReqVo;
|
||||
import pc.exam.pp.module.exam.controller.admin.specialty.vo.SpecialtyQueryVo;
|
||||
import pc.exam.pp.module.system.controller.admin.auth.vo.AuthRegisterReqVO;
|
||||
import pc.exam.pp.module.system.controller.admin.user.vo.profile.UserProfileUpdatePasswordReqVO;
|
||||
import pc.exam.pp.module.system.controller.admin.user.vo.profile.UserProfileUpdateReqVO;
|
||||
@@ -256,5 +258,11 @@ public interface AdminUserService {
|
||||
* @return 是否匹配
|
||||
*/
|
||||
boolean isPasswordMatch(String rawPassword, String encodedPassword);
|
||||
/**
|
||||
* 获取专业信息,判断用户类型
|
||||
*
|
||||
* @return 全部信息集合
|
||||
*/
|
||||
List<SpecialtyQueryVo> getListByUser();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user