Search in sources :

Example 1 with MateriaHistorylVO

use of com.bc.pmpheep.back.vo.MateriaHistorylVO in project pmph by BCSquad.

the class MaterialExtraController method history.

/**
 * <pre>
 * 功能描述:查询历史教材通知列表
 * 使用示范:
 *
 * @param pageNumber 当前页数
 * @param pageSize 当前页条数
 * @param request
 * @return
 * </pre>
 */
@ResponseBody
@LogDetail(businessType = BUSINESS_TYPE, logRemark = "查询历史教材通知列表")
@RequestMapping(value = "/history", method = RequestMethod.GET)
public ResponseBean history(@RequestParam(name = "pageNumber", defaultValue = "1") Integer pageNumber, @RequestParam(name = "pageSize", defaultValue = "5") Integer pageSize, HttpServletRequest request) {
    PageParameter<MateriaHistorylVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
    MateriaHistorylVO materiaHistorylVO = new MateriaHistorylVO();
    pageParameter.setParameter(materiaHistorylVO);
    String sessionId = CookiesUtil.getSessionId(request);
    return new ResponseBean(materialExtraService.listMaterialHistory(pageParameter, sessionId));
}
Also used : MateriaHistorylVO(com.bc.pmpheep.back.vo.MateriaHistorylVO) 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

LogDetail (com.bc.pmpheep.annotation.LogDetail)1 PageParameter (com.bc.pmpheep.back.plugin.PageParameter)1 MateriaHistorylVO (com.bc.pmpheep.back.vo.MateriaHistorylVO)1 ResponseBean (com.bc.pmpheep.controller.bean.ResponseBean)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1