Преглед изворни кода

新生账号激活bug修复

dzx пре 4 месеци
родитељ
комит
f49d0f8d56

+ 1 - 0
src/main/java/com/xjrsoft/module/banding/service/impl/BandingTaskClassStudentServiceImpl.java

@@ -110,6 +110,7 @@ public class BandingTaskClassStudentServiceImpl extends MPJBaseServiceImpl<Bandi
                         setNewStudentId(newStudentId);
                         setBandingTaskClassId(dto.getBandingTaskClassId());
                         setCreateUserId(createUserId);
+                        setStatus(0);
                         if(dto.getIsHandle() != null && dto.getIsHandle() == 1){
                             setStatus(1);
                         }

+ 9 - 0
src/main/java/com/xjrsoft/module/organization/vo/UserStudentVo.java

@@ -12,4 +12,13 @@ public class UserStudentVo extends UserStudentUpdateDto {
     private Long classId;
     @ApiModelProperty("流程状态(0:审核中,1:通过,2:拒绝)")
     private Integer status;
+
+    @ApiModelProperty("班主任id")
+    private Long teacherId;
+
+    @ApiModelProperty("班主任姓名")
+    private String teacherName;
+
+    @ApiModelProperty("班主任电话")
+    private String teacherMobile;
 }

+ 1 - 1
src/main/java/com/xjrsoft/module/student/controller/BaseNewStudentController.java

@@ -251,7 +251,7 @@ public class BaseNewStudentController {
                 setDeleteMark(0);
                 setEnabledMark(1);
                 setPassword(BCrypt.hashpw(propertiesConfig.getDefaultPassword(), BCrypt.gensalt()));
-                setMobile(dto.getMobile());
+                setMobile(dto.getParentMobile());
             }};
             userService.save(parentUser);