|
@@ -1,9 +1,5 @@
|
|
|
package com.hssx.cloudmodel;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
-import com.github.pagehelper.PageHelper;
|
|
|
-import com.github.pagehelper.PageInfo;
|
|
|
-import com.hssx.cloudmodel.entity.Role;
|
|
|
import com.hssx.cloudmodel.service.RoleService;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
@@ -20,18 +16,6 @@ public class CloudModelApplicationTests {
|
|
|
private RoleService roleService;
|
|
|
@Test
|
|
|
public void contextLoads() {
|
|
|
- QueryWrapper<Role> qw = new QueryWrapper<>();
|
|
|
-//
|
|
|
-// if (cif (keyName != null) {
|
|
|
-//// qw.like("role_name", keyName);
|
|
|
-//// }urrentPage == null || currentPage <= 0) {
|
|
|
-// currentPage = 1;
|
|
|
-// }
|
|
|
- PageHelper.startPage(1,5);
|
|
|
- List<Role> roles = roleService.list(qw);
|
|
|
- PageInfo page = new PageInfo(roles);
|
|
|
- System.out.println("CloudModelApplicationTests.contextLoads"+page);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
}
|