Browse Source

学生保存有效状态修改

chenw 6 years ago
parent
commit
8e2ad62eee

+ 1 - 0
applications/school/school-server/src/main/java/com/usoftchina/smartschool/school/basic/service/impl/StudentServiceImpl.java

@@ -90,6 +90,7 @@ public class StudentServiceImpl implements StudentService{
             if(sysStudentMapper.count(student.getStu_number(), student.getSchool_id()) > 0){
                 throw new BizException(BizExceptionCode.REPEAT_STUDENT_NUMBER);
             }
+            student.setStu_status(1);
             sysStudentMapper.insertSelective(student);
             id = student.getStu_id();
             if (null != items && items.size() > 0) {