|
@@ -218,6 +218,7 @@ public class ClassStudentService {
|
218
|
218
|
throw new Exception("准考证号长度不符合要求");
|
219
|
219
|
}
|
220
|
220
|
}
|
|
221
|
+ if (examno.equals("")) examno = null;
|
221
|
222
|
stu.setExamno(examno);
|
222
|
223
|
Integer userid = user.getUserid();
|
223
|
224
|
stu.setUserid(userid);
|
|
@@ -310,6 +311,7 @@ public class ClassStudentService {
|
310
|
311
|
user.setLoginpwd(N_Utils.getMD5Pwd("123456"));
|
311
|
312
|
user.setUsersex(model.getUsersex());
|
312
|
313
|
user.setStudentno(model.getStudentno());
|
|
314
|
+ if (examno.equals("")) examno = null;
|
313
|
315
|
user.setExamno(examno);
|
314
|
316
|
user.setCreateid(model.getCreateid());
|
315
|
317
|
user.setSchoolid(schoolid);
|
|
@@ -396,7 +398,7 @@ public class ClassStudentService {
|
396
|
398
|
}
|
397
|
399
|
String examno = model.getExamno();
|
398
|
400
|
if (N_Utils.isNotEmpty(examno)) {
|
399
|
|
- TSchool school = schoolMapper.getSchoolInfoById(u.getSchoolid());
|
|
401
|
+ TSchool school = schoolMapper.getSchoolInfoByUserid(model.getStudentid());
|
400
|
402
|
Integer limitenolen = school.getLimitenolen();
|
401
|
403
|
if (!N_Utils.isEmptyInteger(limitenolen) && !limitenolen.equals(examno.length())) {
|
402
|
404
|
return new ResultVo(1, "准考证号长度不符合要求");
|
|
@@ -408,6 +410,7 @@ public class ClassStudentService {
|
408
|
410
|
user.setUsersex(model.getUsersex());
|
409
|
411
|
user.setUsername(model.getStudentname());
|
410
|
412
|
user.setStudentno(model.getStudentno());
|
|
413
|
+ if (examno.equals("")) examno = null;
|
411
|
414
|
user.setExamno(examno);
|
412
|
415
|
user.setLoginname(model.getStudentno());
|
413
|
416
|
user.setUserphone(model.getUserphone());
|
|
@@ -429,7 +432,7 @@ public class ClassStudentService {
|
429
|
432
|
user.setUsertime(null);
|
430
|
433
|
}
|
431
|
434
|
user.setCreatetime(N_Utils.getSecondTimestamp());
|
432
|
|
- userMapper.updateByPrimaryKeySelective(user);
|
|
435
|
+ userMapper.updateStudent(user);
|
433
|
436
|
return new ResultVo(0, "修改成功");
|
434
|
437
|
}
|
435
|
438
|
|