use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class OrgUserController method orgUser.
/**
* Description:分页查询机构用户
*
* @author:lyc
* @date:2017年9月26日下午5:43:59
* @Param: OrgUserManagerVO
* @Return:分页数据集
*/
@RequestMapping(value = "/list/orgUser", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询机构用户")
@ResponseBody
public ResponseBean orgUser(@RequestParam("pageSize") Integer pageSize, @RequestParam("pageNumber") Integer pageNumber, @RequestParam("name") String name, @RequestParam("orgName") String orgName, @RequestParam("orgTypeName") String orgTypeName, @RequestParam("isHospital") Integer isHospital) {
PageParameter pageParameter = new PageParameter<>();
OrgAndOrgUserVO orgAndOrgUserVO = new OrgAndOrgUserVO();
if (StringUtil.notEmpty(orgName)) {
orgAndOrgUserVO.setOrgName(orgName.replaceAll(" ", ""));
}
if (StringUtil.notEmpty(name)) {
// 去除空格
orgAndOrgUserVO.setName(name.replaceAll(" ", ""));
}
if (StringUtil.notEmpty(orgTypeName)) {
// 去除空格
orgAndOrgUserVO.setOrgTypeName(orgTypeName.replaceAll(" ", ""));
}
orgAndOrgUserVO.setIsHospital(isHospital);
pageParameter.setPageNumber(pageNumber);
pageParameter.setPageSize(pageSize);
pageParameter.setParameter(orgAndOrgUserVO);
return new ResponseBean(orgUserService.getListOrgUser(pageParameter));
}
use of com.bc.pmpheep.annotation.LogDetail 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));
}
use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class PmphUserController method pmphUser.
/**
* 功能描述:分页查询社内用户
*
* @param page
* 分页条件
* @param pmphUserManagerVO
* 查询条件
* @return 分好页的结果集
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询社内用户")
@RequestMapping(value = "/list/pmphUser", method = RequestMethod.GET)
public ResponseBean pmphUser(Integer pageSize, Integer pageNumber, String name, @RequestParam("path") String path, Long departmentId, Long groupId) {
PageParameter pageParameter = new PageParameter<>();
PmphUserManagerVO pmphUserManagerVO = new PmphUserManagerVO();
if (StringUtil.notEmpty(name)) {
// 去除空格
pmphUserManagerVO.setName(name.replaceAll(" ", ""));
}
pmphUserManagerVO.setPath(path);
pmphUserManagerVO.setDepartmentId(departmentId);
pageParameter.setPageNumber(pageNumber);
pageParameter.setPageSize(pageSize);
pageParameter.setParameter(pmphUserManagerVO);
return new ResponseBean(userService.getListPmphUser(pageParameter, groupId));
}
use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class WriterUserController method writerUser.
/**
* 功能描述:分页查询作家用户
*
* @param page
* 分页条件
* @param writerUserManagerVO
* 查询条件
* @return 分好页的结果集
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询作家用户")
@RequestMapping(value = "/list/writerUser", method = RequestMethod.GET)
public ResponseBean writerUser(Long groupId, @RequestParam("pageSize") Integer pageSize, @RequestParam("pageNumber") Integer pageNumber, @RequestParam("name") String name, @RequestParam("rank") Integer rank, @RequestParam("orgName") String orgName) {
PageParameter pageParameter = new PageParameter<>();
WriterUserManagerVO writerUserManagerVO = new WriterUserManagerVO();
if (StringUtil.notEmpty(name)) {
// 去除空格
writerUserManagerVO.setName(name.replaceAll(" ", ""));
}
if (StringUtil.notEmpty(orgName)) {
writerUserManagerVO.setOrgName(orgName.replaceAll(" ", ""));
}
writerUserManagerVO.setRank(rank);
pageParameter.setPageNumber(pageNumber);
pageParameter.setPageSize(pageSize);
pageParameter.setParameter(writerUserManagerVO);
return new ResponseBean(writerUserService.getListWriterUser(pageParameter, groupId));
}
use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class WriterUserController method groupMember.
/**
* 功能描述: 分页查询小组成员添加界面作家用户信息
*
* @param bookname
* 书籍名称
* @param chosenPosition
* 申报职位
* @param name
* 姓名/帐号
* @return 分好页的数据集
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = " 分页查询小组成员添加界面作家用户信息")
@RequestMapping(value = "/list/groupMember", method = RequestMethod.GET)
public ResponseBean groupMember(Integer pageSize, Integer pageNumber, String bookname, Integer chosenPosition, String name) {
PageParameter<GroupMemberWriterUserVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
GroupMemberWriterUserVO groupMemberWriterUserVO = new GroupMemberWriterUserVO();
groupMemberWriterUserVO.setBookname(bookname);
groupMemberWriterUserVO.setChosenPosition(chosenPosition);
groupMemberWriterUserVO.setName(name);
pageParameter.setParameter(groupMemberWriterUserVO);
return new ResponseBean(writerUserService.listGroupMemberWriterUsers(pageParameter));
}
Aggregations