diff --git a/src/main/java/com/msdw/tms/entity/vo/StudentVo.java b/src/main/java/com/msdw/tms/entity/vo/StudentVo.java
index 648238d..e1daa44 100644
--- a/src/main/java/com/msdw/tms/entity/vo/StudentVo.java
+++ b/src/main/java/com/msdw/tms/entity/vo/StudentVo.java
@@ -40,6 +40,8 @@ public class StudentVo extends StudentEntity {
private String schoolAppellationName;
//绑定所属院校id
private Integer schoolAppellationId;
+ //学生学号
+ private String workNumber;
//token
private String token;
}
diff --git a/src/main/resources/mapper/tms/StudentDao.xml b/src/main/resources/mapper/tms/StudentDao.xml
index a91bcac..e421705 100644
--- a/src/main/resources/mapper/tms/StudentDao.xml
+++ b/src/main/resources/mapper/tms/StudentDao.xml
@@ -29,8 +29,8 @@
u.disableAccount,
u.lastLoginTime,
s.roleId,
- s.workNumber,
- s.isdel ,
+ s.workNumber as workNumber,
+ s.isdel,
s.studentId
FROM
hr_user_info u,
@@ -43,7 +43,7 @@
AND u.isdel = 0
AND l.isdel = 0
AND s.isdel = 0
- AND (u.account LIKE CONCAT('%',#{searchContent},'%') OR u.userName LIKE CONCAT('%',#{searchContent},'%') OR s.workNumber LIKE CONCAT('%',#{searchContent},'%'))
+ AND (l.schoolName LIKE CONCAT('%',#{searchContent},'%') OR u.userName LIKE CONCAT('%',#{searchContent},'%'))
ORDER BY studentId DESC