张延森 4 anni fa
parent
commit
0d45891779

+ 1
- 1
src/main/java/com/yunzhi/demo/controller/TaStudentController.java Vedi File

@@ -87,7 +87,7 @@ public class TaStudentController extends BaseController {
87 87
 
88 88
         if (!StringUtils.isEmpty(taStudent.getStudentNo())) {
89 89
             TaStudent stu = iTaStudentService.getByStudentNo(taStudent.getSchoolId(), taStudent.getStudentNo());
90
-            if (null != stu && !StringUtils.isEmpty(taStudent.getStudentId()) && stu.getStudentId().equals(taStudent.getStudentId())) {
90
+            if (null != stu && !StringUtils.isEmpty(taStudent.getStudentId()) && !stu.getStudentId().equals(taStudent.getStudentId())) {
91 91
                 throw new Exception("学号信息重复");
92 92
             }
93 93
         }