use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class WriterPointLogController method listExchange.
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询用户积分兑换记录列表")
@RequestMapping(value = "/listExchange", method = RequestMethod.GET)
public ResponseBean listExchange(@RequestParam("pageSize") Integer pageSize, @RequestParam("pageNumber") Integer pageNumber, @RequestParam("userId") Long userId, @RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime) {
PageParameter<WriterPointLogVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
WriterPointLogVO writerPointLogVO = new WriterPointLogVO();
writerPointLogVO.setUserId(userId);
writerPointLogVO.setStartTime(startTime);
writerPointLogVO.setEndTime(endTime);
pageParameter.setParameter(writerPointLogVO);
return new ResponseBean(writerPointLogService.getListWriterPointLogExchange(pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class WriterPointRuleController method exchangeList.
/**
* 分页查询兑换规则列表
* @param pageSize
* @param pageNumber
* @param ruleCode
* @param ruleName
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询兑换规则列表")
@RequestMapping(value = "/exchangeList", method = RequestMethod.GET)
public ResponseBean exchangeList(@RequestParam("pageSize") Integer pageSize, @RequestParam("pageNumber") Integer pageNumber, @RequestParam("ruleCode") String ruleCode, @RequestParam("ruleName") String ruleName) {
PageParameter<WriterPointRuleVO> pageParameter = new PageParameter<WriterPointRuleVO>(pageNumber, pageSize);
WriterPointRuleVO writerPointRuleVO = new WriterPointRuleVO();
writerPointRuleVO.setRuleName(ruleName);
writerPointRuleVO.setRuleCode(ruleCode);
pageParameter.setParameter(writerPointRuleVO);
return new ResponseBean(writerPointRuleService.getlistWriterPointRulePoint(pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class OrgSeviceTest method testListOrg.
@Test
public void testListOrg() {
OrgVO orgVO = new OrgVO();
orgVO.getOrgName();
PageResult<OrgVO> page = new PageResult<OrgVO>();
PageParameter<OrgVO> pageParameter = new PageParameter<OrgVO>();
pageParameter.setParameter(orgVO);
page = orgService.listOrg(pageParameter);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class OrgSeviceTest method testGetSchoolAdminCheckList.
@Test
public void testGetSchoolAdminCheckList() {
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("获取学校管理员审核列表失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class OrgUserSeviceTest method testGetListOrgUserVO.
@Test
public void testGetListOrgUserVO() {
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
OrgAndOrgUserVO managerVO = new OrgAndOrgUserVO();
managerVO.setUsername(null);
managerVO.setRealname(null);
managerVO.setOrgName(null);
pageParameter.setParameter(managerVO);
pageParameter.setStart(1);
pageParameter.setPageSize(15);
pageResult = orgUserService.getListOrgUser(pageParameter);
Assert.assertNotNull("获取失败", pageResult);
}
Aggregations