配置管理-机构管理 输入检索条件 查询 有12条 但是显示25条 25条是所有的数据数
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ public class TsUserServiceImpl extends ServiceImpl<TsUserDao, TsUser> implements
|
|||||||
Page<TsUser> tsUserPage = new Page<>();
|
Page<TsUser> tsUserPage = new Page<>();
|
||||||
System.out.println(tsUser.getCurrent());
|
System.out.println(tsUser.getCurrent());
|
||||||
System.out.println(tsUser.getSize());
|
System.out.println(tsUser.getSize());
|
||||||
List<TsUser> tsUserList = tsUserDao.getUserAndPositionPage((tsUser.getCurrent()-1)*tsUser.getSize(),1*tsUser.getSize(),tsUser);
|
List<TsUser> tsUserList = tsUserDao.getUserAndPositionPage((tsUser.getCurrent()-1)*tsUser.getSize(),tsUser.getSize(),tsUser);
|
||||||
Integer total = tsUserDao.getUserAndPositionCount(tsUser);
|
Integer total = tsUserDao.getUserAndPositionCount(tsUser);
|
||||||
tsUserPage.setRecords(tsUserList);
|
tsUserPage.setRecords(tsUserList);
|
||||||
tsUserPage.setCurrent(tsUser.getCurrent());
|
tsUserPage.setCurrent(tsUser.getCurrent());
|
||||||
|
|||||||
@@ -51,6 +51,12 @@
|
|||||||
left join ts_position p
|
left join ts_position p
|
||||||
on up.position_id=p.id
|
on up.position_id=p.id
|
||||||
where u.institution_id=#{TsUser.institutionId}
|
where u.institution_id=#{TsUser.institutionId}
|
||||||
|
<if test="TsUser.uname != null and TsUser.uname != '' ">
|
||||||
|
and u.uname like concat('%',#{TsUser.uname},'%')
|
||||||
|
</if>
|
||||||
|
<if test="TsUser.email != null and TsUser.email != '' ">
|
||||||
|
and u.email like concat('%',#{TsUser.email},'%')
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getUserIdsByPositionIds" resultType="String">
|
<select id="getUserIdsByPositionIds" resultType="String">
|
||||||
|
|||||||
Reference in New Issue
Block a user