Search in sources :

Example 1 with PmphEditorVO

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

the class TopicController method listEditors.

/**
 * Description:部门主任获取部门人员信息列表
 *
 * @author:lyc
 * @date:2017年12月27日下午5:02:46
 * @param
 * @return ResponseBean
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "获取部门编辑列表")
@RequestMapping(value = "/listEditors", method = RequestMethod.GET)
public ResponseBean listEditors(Long departmentId, String realName, Integer pageSize, Integer pageNumber) {
    PageParameter<PmphEditorVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
    PmphEditorVO pmphEditorVO = new PmphEditorVO();
    pmphEditorVO.setDepartmentId(departmentId);
    pmphEditorVO.setRealName(realName);
    pageParameter.setParameter(pmphEditorVO);
    return new ResponseBean(pmphUserService.listEditors(pageParameter));
}
Also used : PageParameter(com.bc.pmpheep.back.plugin.PageParameter) ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) PmphEditorVO(com.bc.pmpheep.back.vo.PmphEditorVO) 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 PmphEditorVO (com.bc.pmpheep.back.vo.PmphEditorVO)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