Search in sources :

Example 1 with DepartmentOptsVO

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

the class PmphDepartmentController method listOpts.

/**
 * 功能描述:选题申报运维人员获取部门和部门负责人
 *
 * @param dpName
 *            部门名称
 * @param pageSize
 *            当页条数
 * @param pageNumber
 *            当前页数
 * @return
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "获取部门与部门负责人")
@RequestMapping(value = "/listOpts", method = RequestMethod.GET)
public ResponseBean listOpts(String dpName, Integer pageSize, Integer pageNumber) {
    PageParameter<DepartmentOptsVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
    DepartmentOptsVO departmentOptsVO = new DepartmentOptsVO();
    departmentOptsVO.setDpName(dpName);
    pageParameter.setParameter(departmentOptsVO);
    return new ResponseBean(pmphDepartmentService.listOpts(pageParameter));
}
Also used : DepartmentOptsVO(com.bc.pmpheep.back.vo.DepartmentOptsVO) 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 DepartmentOptsVO (com.bc.pmpheep.back.vo.DepartmentOptsVO)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