【新增、修改】1、新增 学生、教师关联关系;2、修改 用户表属性,权限属性
This commit is contained in:
@@ -36,13 +36,17 @@ public class ExamSpecialtyController{
|
||||
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "获取专业列表")
|
||||
public CommonResult<List<SpecialtyQueryVo>> getDeptList(SpecialtListReqVo reqVO) {
|
||||
public CommonResult<List<SpecialtyQueryVo>> getSpecialtyList(SpecialtListReqVo reqVO) {
|
||||
List<SpecialtyQueryVo> list = examSpecialtyService.selectExamSpecialtyList(reqVO);
|
||||
return success(BeanUtils.toBean(list, SpecialtyQueryVo.class));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@GetMapping("/part")
|
||||
@Operation(summary = "获取专业列表(不包含题型)")
|
||||
public CommonResult<List<SpecialtyQueryVo>> getSpecialtyPart() {
|
||||
List<SpecialtyQueryVo> list = examSpecialtyService.selectExamSpecialtyPart();
|
||||
return success(BeanUtils.toBean(list, SpecialtyQueryVo.class));
|
||||
}
|
||||
/**
|
||||
* 获取全部数据详细信息
|
||||
*/
|
||||
|
@@ -40,6 +40,13 @@ public interface ExamSpecialtyMapper extends BaseMapperX<ExamSpecialty>
|
||||
*/
|
||||
public List<SpecialtyQueryVo> selectExamSpecialtyListVo(SpecialtListReqVo reqVo);
|
||||
|
||||
/**
|
||||
* 查询部分数据信息
|
||||
*
|
||||
* @return 数据集合
|
||||
*/
|
||||
public List<SpecialtyQueryVo> selectExamSpecialtyPart();
|
||||
|
||||
/**
|
||||
* 查询数据信息列表
|
||||
*
|
||||
@@ -71,4 +78,6 @@ public interface ExamSpecialtyMapper extends BaseMapperX<ExamSpecialty>
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamSpecialtyBySpIds(Long[] spIds);
|
||||
|
||||
|
||||
}
|
||||
|
@@ -30,6 +30,13 @@ public interface ExamSpecialtyService
|
||||
*/
|
||||
public List<SpecialtyQueryVo> selectExamSpecialtyList(SpecialtListReqVo reqVO);
|
||||
|
||||
/**
|
||||
* 查询部分数据信息
|
||||
*
|
||||
* @return 全部信息集合
|
||||
*/
|
||||
public List<SpecialtyQueryVo> selectExamSpecialtyPart();
|
||||
|
||||
/**
|
||||
* 根据主键查询
|
||||
*
|
||||
|
@@ -46,6 +46,11 @@ public class ExamSpecialtyServiceImpl implements ExamSpecialtyService {
|
||||
return examSpecialtyMapper.selectExamSpecialtyListVo(reqVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SpecialtyQueryVo> selectExamSpecialtyPart() {
|
||||
return examSpecialtyMapper.selectExamSpecialtyPart();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键列表查询
|
||||
*
|
||||
|
@@ -28,6 +28,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectExamSpecialtyPart" resultType="pc.exam.pp.module.exam.controller.admin.specialty.vo.SpecialtyQueryVo">
|
||||
select sp_id as id, sp_name as name, parent_id, status, create_time
|
||||
FROM exam_specialty
|
||||
WHERE
|
||||
(
|
||||
LENGTH(ancestors) - LENGTH(REPLACE(ancestors, ',', ''))
|
||||
) + 1 <= 2 and status = 0 and deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectExamSpecialtyList" resultType="ExamSpecialty">
|
||||
<include refid="selectExamSpecialtyVo"/>
|
||||
<where>
|
||||
|
Reference in New Issue
Block a user