Sfoglia il codice sorgente

班主任和电话拆分

dzx 1 anno fa
parent
commit
7b9c4807cf

+ 4 - 0
src/main/java/com/xjrsoft/module/student/vo/BaseStudentInfoPageVo.java

@@ -42,6 +42,10 @@ public class BaseStudentInfoPageVo {
     @ApiModelProperty("班主任名称")
     private String teacherName;
 
+    @ContentStyle(dataFormat = 49)
+    @ApiModelProperty("班主任电话")
+    private String teacherPhone;
+
     @ContentStyle(dataFormat = 49)
     @ApiModelProperty("班级名称")
     private String className;

+ 2 - 2
src/main/resources/mapper/student/BaseStudentSchoolRollMapper.xml

@@ -8,7 +8,7 @@
         t2.name AS student_name,
         t1.student_id,
         t2.mobile AS phone,
-        CONCAT(t5.name, ' ', t5.mobile) AS teacher_name,
+        t2.mobile AS phone,t5.name as teacher_name,
         t4.name AS class_name,
         t6.mobile AS guardian_phone
         FROM base_student t1
@@ -42,7 +42,7 @@
         </if>
     </select>
     <select id="getInfoById" resultType="com.xjrsoft.module.student.vo.BaseStudentInfoDetailVo">
-        SELECT t2.id,t2.name AS student_name,t1.student_id,t2.mobile AS phone,t5.name as teacher_name, t5.mobile AS teacher_phone,t4.name AS class_name,
+        SELECT t2.id,t2.name AS student_name,t1.student_id,CONCAT(t5.name, ' ', t5.mobile) AS teacher_name, t5.mobile AS teacher_phone,t4.name AS class_name,
         (SELECT mobile FROM base_student_family_member WHERE delete_mark = 0 AND user_id = t2.id AND is_guardian = 1) AS guardian_phone,
         t8.name AS archives_status,t7.name AS stduy_status,t9.name AS roll_modality,t2.birth_date, t2.gender,t2.avatar,
         t6.name AS nation,t10.name AS major_set_name,t3.archives_status as archivesStatusCode,t3.stduy_status as stduyStatusCode,t3.roll_modality as rollModalityCode