上传代码

hehai
zhiyong.ning 4 years ago
parent b1d580117d
commit fdf5990086
  1. 2
      src/main/java/com/msdw/tms/entity/vo/StudentVo.java
  2. 4
      src/main/resources/mapper/tms/StudentDao.xml

@ -40,6 +40,8 @@ public class StudentVo extends StudentEntity {
private String schoolAppellationName; private String schoolAppellationName;
//绑定所属院校id //绑定所属院校id
private Integer schoolAppellationId; private Integer schoolAppellationId;
//学生学号
private String workNumber;
//token //token
private String token; private String token;
} }

@ -29,7 +29,7 @@
u.disableAccount, u.disableAccount,
u.lastLoginTime, u.lastLoginTime,
s.roleId, s.roleId,
s.workNumber, s.workNumber as workNumber,
s.isdel, s.isdel,
s.studentId s.studentId
FROM FROM
@ -43,7 +43,7 @@
AND u.isdel = 0 AND u.isdel = 0
AND l.isdel = 0 AND l.isdel = 0
AND s.isdel = 0 AND s.isdel = 0
<if test="searchContent!=null">AND (u.account LIKE CONCAT('%',#{searchContent},'%') OR u.userName LIKE CONCAT('%',#{searchContent},'%') OR s.workNumber LIKE CONCAT('%',#{searchContent},'%'))</if> <if test="searchContent!=null">AND (l.schoolName LIKE CONCAT('%',#{searchContent},'%') OR u.userName LIKE CONCAT('%',#{searchContent},'%'))</if>
ORDER BY studentId DESC ORDER BY studentId DESC
</select> </select>

Loading…
Cancel
Save