Search in sources :

Example 1 with WriterPointVO

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);
}
Also used : WriterPointVO(com.bc.pmpheep.back.vo.WriterPointVO) PageParameter(com.bc.pmpheep.back.plugin.PageParameter) WriterPoint(com.bc.pmpheep.back.po.WriterPoint) PageResult(com.bc.pmpheep.back.plugin.PageResult) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Example 2 with WriterPointVO

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));
}
Also used : WriterPointVO(com.bc.pmpheep.back.vo.WriterPointVO) PageParameter(com.bc.pmpheep.back.plugin.PageParameter) ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

PageParameter (com.bc.pmpheep.back.plugin.PageParameter)2 WriterPointVO (com.bc.pmpheep.back.vo.WriterPointVO)2 LogDetail (com.bc.pmpheep.annotation.LogDetail)1 PageResult (com.bc.pmpheep.back.plugin.PageResult)1 WriterPoint (com.bc.pmpheep.back.po.WriterPoint)1 ResponseBean (com.bc.pmpheep.controller.bean.ResponseBean)1 BaseTest (com.bc.pmpheep.test.BaseTest)1 Test (org.junit.Test)1 Rollback (org.springframework.test.annotation.Rollback)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1