Commit fb78763d authored by Mindfaker's avatar Mindfaker

fix

parent 63a32eb7
......@@ -63,6 +63,10 @@ public class StudentInfoService {
* @return
*/
public Object updateStudentInfo(StudentInfo studentInfo) {
StudentInfo studentInfo1 = selectStudentInfoByUniqueId(studentInfo.getStudentUniqueId());
if (studentInfo1 != null && !studentInfo1.getId().equals(studentInfo.getId())) {
return "Fail 学号重复! 请重新输入学号";
}
studentInfo.setUpdateTime(LocalDateTime.now());
studentInfoMapper.updateByPrimaryKey(studentInfo);
return "OK 修改成功";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment