use of com.bc.pmpheep.back.vo.WriterPointVO in project pmph by BCSquad.
the class WriterPointServiceTest method getListWriterPoint.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void getListWriterPoint() {
WriterPoint writerPoint = this.addWriterPoints();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
WriterPointVO writerPointVO = new WriterPointVO();
pageParameter.setParameter(writerPointVO);
pageParameter.setPageSize(10);
pageResult = writerPointService.getListWriterPoint(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
use of com.bc.pmpheep.back.vo.WriterPointVO in project pmph by BCSquad.
the class WriterPointController method list.
/**
* 用户积分分页查询
* @param pageSize
* @param pageNumber
* @param username
* @param realname
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询用户积分列表")
@RequestMapping(value = "/list", method = RequestMethod.GET)
public ResponseBean list(@RequestParam("pageSize") Integer pageSize, @RequestParam("pageNumber") Integer pageNumber, @RequestParam("username") String username, @RequestParam("realname") String realname) {
PageParameter<WriterPointVO> pageParameter = new PageParameter<WriterPointVO>(pageNumber, pageSize);
WriterPointVO writerPoint = new WriterPointVO();
writerPoint.setUsername(username);
writerPoint.setRealname(realname);
pageParameter.setParameter(writerPoint);
return new ResponseBean(writerPointService.getListWriterPoint(pageParameter));
}
Aggregations