|
@@ -1,6 +1,8 @@
|
|
|
package com.hssx.pcbms.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
import com.hssx.pcbms.entity.*;
|
|
|
import com.hssx.pcbms.entity.vo.UserVO;
|
|
|
import com.hssx.pcbms.mapper.*;
|
|
@@ -103,8 +105,10 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
@Override
|
|
|
public HttpRespMsg getList(UserVO userVO,PageUtil page) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ PageHelper.startPage(page.getPageNum(),page.getPageSize());
|
|
|
List<UserVO> list = userMapper.selectListByCondition(userVO);
|
|
|
- msg.data = list;
|
|
|
+ PageInfo<UserVO> info = new PageInfo<>(list);
|
|
|
+ msg.data = info;
|
|
|
return msg;
|
|
|
}
|
|
|
|