use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class OrgSeviceTest method testListOrgByOrgName.
@Test
public void testListOrgByOrgName() {
PageParameter pageParameter = new PageParameter<>();
PageResult<OrgVO> pageResult = new PageResult<OrgVO>();
OrgVO orgVO = new OrgVO();
orgVO.setOrgName(null);
orgVO.setAreaId(null);
orgVO.setRealname(null);
pageParameter.setPageNumber(1);
pageParameter.setPageSize(20);
pageParameter.setParameter(orgVO);
pageResult = orgService.getSchoolAdminCheckList(pageParameter);
Assert.assertNotNull("在新增用户与修改用户时查询机构失败", orgService.listOrgByOrgName("机构名称"));
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class OrgSeviceTest method testListSendToSchoolAdminOrAllUser.
@Test
public void testListSendToSchoolAdminOrAllUser() {
PageParameter pageParameter = new PageParameter<>();
PageResult<OrgVO> pageResult = new PageResult<OrgVO>();
OrgVO orgVO = new OrgVO();
orgVO.setOrgName(null);
orgVO.setAreaId(null);
orgVO.setRealname(null);
pageParameter.setPageNumber(1);
pageParameter.setPageSize(20);
pageParameter.setParameter(orgVO);
pageResult = orgService.getSchoolAdminCheckList(pageParameter);
Assert.assertNotNull("系统消息——发送新消息——发送对象失败", orgService.listSendToSchoolAdminOrAllUser("机构名称", 1L));
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class PmphGroupFileServiceTest method testGetList.
@Test
public void testGetList() {
pmphGroupFileService.add(pmphGroupFile);
PageResult pageResult = new PageResult<>();
PageParameter pageParameter = new PageParameter<>();
PmphGroupFileVO fileVO = new PmphGroupFileVO();
fileVO.setFileName(null);
fileVO.setFileId(null);
fileVO.setGroupId(pmphGroupFile.getGroupId());
;
pageParameter.setParameter(fileVO);
pageParameter.setPageSize(15);
pageResult = pmphGroupFileService.listGroupFile(pageParameter);
Assert.assertNotNull("没有获取到数据", pageResult.getRows());
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class PmphUserServiceTest method testTetListPmphUserVO.
@Test
public void testTetListPmphUserVO() {
PageResult pageResult = new PageResult<>();
PageParameter pageParameter = new PageParameter<>();
PmphUserManagerVO managerVO = new PmphUserManagerVO();
managerVO.setUsername(null);
managerVO.setRealname(null);
managerVO.setPath("0-92-174");
managerVO.setDepartmentId(176L);
pageParameter.setParameter(managerVO);
pageParameter.setPageNumber(1);
pageParameter.setPageSize(30);
pageResult = userService.getListPmphUser(pageParameter, null);
Assert.assertNotNull("查找失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class UserMessageServiceTest method testListMyMessage.
@Test
@Rollback(Const.ISROLLBACK)
public void testListMyMessage() {
MyMessageVO myMessageVO = new MyMessageVO();
myMessageVO.setUserId(1L);
myMessageVO.setUserType(1);
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
pageParameter.setParameter(myMessageVO);
pageResult = userMessageService.listMyMessage(pageParameter);
Assert.assertNotNull("查询成功了", pageResult);
}
Aggregations