瀏覽代碼

评价管理发布功能

dzx 1 年之前
父節點
當前提交
932e80f726

+ 34 - 0
src/main/java/com/xjrsoft/module/schedule/vo/ClassroomJianyuekbVo.java

@@ -0,0 +1,34 @@
+package com.xjrsoft.module.schedule.vo;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+* @title: 学生职务设置表单出参
+* @Author dzx
+* @Date: 2023-11-13
+* @Version 1.0
+*/
+@Data
+public class ClassroomJianyuekbVo {
+
+    @ApiModelProperty("学号")
+    private String name;
+
+
+    @ApiModelProperty("姓名")
+    private String peopleCount;
+
+
+    @ApiModelProperty("年级id")
+    private Long location;
+
+
+    @ApiModelProperty("别名")
+    private String floor;
+
+
+    @ApiModelProperty("创建扩展id")
+    private String extendId;
+
+}

+ 48 - 0
src/main/java/com/xjrsoft/module/schedule/vo/StudentJianyuekbVo.java

@@ -0,0 +1,48 @@
+package com.xjrsoft.module.schedule.vo;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+* @title: 学生职务设置表单出参
+* @Author dzx
+* @Date: 2023-11-13
+* @Version 1.0
+*/
+@Data
+public class StudentJianyuekbVo {
+
+    /**
+    * 主键编号
+    */
+    @ApiModelProperty("学号")
+    private String registerNo;
+    /**
+    * 序号
+    */
+    @ApiModelProperty("姓名")
+    private String realName;
+    /**
+    * 职务
+    */
+    @ApiModelProperty("年级id")
+    private Long gradeSerialNo;
+    /**
+    * 职务级别
+    */
+    @ApiModelProperty("别名")
+    private String alias;
+    /**
+    * 是否允许德育检查(1:是 0:否)
+    */
+    @ApiModelProperty("性别:1男,2女")
+    private Integer gender;
+    /**
+    * 职责描述
+    */
+    @ApiModelProperty("创建扩展id")
+    private String extendId;
+
+}

+ 5 - 0
src/main/java/com/xjrsoft/module/student/mapper/BaseStudentMapper.java

@@ -1,10 +1,13 @@
 package com.xjrsoft.module.student.mapper;
 
 import com.github.yulichang.base.MPJBaseMapper;
+import com.xjrsoft.module.schedule.vo.StudentJianyuekbVo;
 import com.xjrsoft.module.student.entity.BaseStudent;
 import com.xjrsoft.module.student.vo.StudentInfoVo;
 import org.apache.ibatis.annotations.Mapper;
 
+import java.util.List;
+
 /**
  * @title: mapper
  * @Author 管理员
@@ -18,4 +21,6 @@ public interface BaseStudentMapper extends MPJBaseMapper<BaseStudent> {
      * @return
      */
     StudentInfoVo getStudentInfo(Long userId);
+
+    List<StudentJianyuekbVo> getJianyueStudentList();
 }

+ 9 - 0
src/main/resources/mapper/student/BaseStudentMapper.xml

@@ -12,4 +12,13 @@
         LEFT JOIN base_major_set t6 ON t3.major_set_id = t6.id
         where  t1.delete_mark=0 and t2.delete_mark=0 and t1.user_id=#{userId};
     </select>
+    <!--姓名和性别,测试阶段采用姓名第一个字拼接user_id的方式脱敏-->
+    <select id="getJianyueStudentList" resultType="com.xjrsoft.module.schedule.vo.StudentJianyuekbVo">
+        SELECT t1.id AS registerNo, CONCAT(SUBSTRING(t2.name,1,1),t2.id) AS realName,t3.grade_id AS gradeSerialNo,CONCAT(SUBSTRING(t2.name,1,1),t2.id) AS alias,t2.gender,t2.id AS extendId FROM base_student t1
+        INNER JOIN xjr_user t2 ON t1.user_id = t2.id
+        INNER JOIN base_student_school_roll t3 ON t1.user_id = t3.user_id
+        WHERE t1.delete_mark = 0 AND t2.delete_mark = 0
+        AND t1.student_id IS NOT NULL AND t1.student_id != ''
+        AND t3.archives_status = 'FB2901';
+    </select>
 </mapper>