use of com.bc.pmpheep.back.plugin.PageParameter 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));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class TopicController method checkTopic.
/**
* 功能描述:查看选题申报
*
* @param authProgress
* 申报状态
* @param bookname
* 申报标题
* @param submitTime
* 提交日期
* @param pageSize
* @param pageNumber
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "查看选题申报")
@RequestMapping(value = "/list/checkTopic", method = RequestMethod.GET)
public ResponseBean checkTopic(String authProgress, String bookname, String submitTime, Integer pageSize, Integer pageNumber) {
String[] strs = authProgress.split(",");
List<Long> progress = new ArrayList<>();
for (String str : strs) {
progress.add(Long.valueOf(str));
}
PageParameter<TopicDeclarationVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
TopicDeclarationVO topicDeclarationVO = new TopicDeclarationVO();
topicDeclarationVO.setBookname(bookname);
if (StringUtil.isEmpty(submitTime)) {
topicDeclarationVO.setSubmitTime(null);
} else {
topicDeclarationVO.setSubmitTime(DateUtil.str2Timestam(submitTime));
}
pageParameter.setParameter(topicDeclarationVO);
return new ResponseBean(topicService.listCheckTopic(progress, pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class TopicController method listOpts.
/**
* 功能描述:维护人员选题申报审核页面
*
* @param request
* @param pageSize
* 当前页条数
* @param pageNumber
* 当前页数
* @param bookname
* 选题名称
* @param submitTime
* 提交时间
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "维护人员查询可操作的选题")
@RequestMapping(value = "/listOpts", method = RequestMethod.GET)
public ResponseBean listOpts(HttpServletRequest request, Integer pageSize, Integer pageNumber, String bookname, String submitTime) {
PageParameter<TopicOPtsManagerVO> pageParameter = new PageParameter(pageNumber, pageSize);
TopicOPtsManagerVO topicOPtsManagerVO = new TopicOPtsManagerVO();
topicOPtsManagerVO.setBookname(bookname);
if (StringUtil.isEmpty(submitTime)) {
topicOPtsManagerVO.setSubmitTime(null);
} else {
topicOPtsManagerVO.setSubmitTime(DateUtil.str2Timestam(submitTime));
}
String sessionId = CookiesUtil.getSessionId(request);
pageParameter.setParameter(topicOPtsManagerVO);
return new ResponseBean(topicService.listOpts(sessionId, pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class TopicController method listDirector.
/**
* Description:后台部门主任查看可操作的选题
*
* @author:lyc
* @date:2017年12月22日下午2:59:37
* @param request
* @param pageSize
* 当前页条数
* @param pageNumber
* 当前页数
* @param bookname
* 选题名称
* @param submitTime
* 提交时间
* @return ResponseBean
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "部门主任查看可操作的选题")
@RequestMapping(value = "/listDirector", method = RequestMethod.GET)
public ResponseBean listDirector(HttpServletRequest request, Integer pageSize, Integer pageNumber, String bookname, String submitTime) {
PageParameter<TopicDirectorVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
TopicDirectorVO topicDirectorVO = new TopicDirectorVO();
topicDirectorVO.setBookname(bookname);
if (StringUtil.isEmpty(submitTime)) {
topicDirectorVO.setSubmitTime(null);
} else {
topicDirectorVO.setSubmitTime(DateUtil.str2Timestam(submitTime));
}
String sessionId = CookiesUtil.getSessionId(request);
pageParameter.setParameter(topicDirectorVO);
return new ResponseBean(topicService.listTopicDirectorVOs(sessionId, pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class TopicController method listEditor.
/**
* Description:后台部门编辑查看可操作的申报选题
*
* @author:lyc
* @date:2017年12月22日下午3:10:12
* @param request
* @param pageSize
* 当前页条数
* @param pageNumber
* 当前页数
* @param bookname
* 选题名称
* @param submitTime
* 提交时间
* @return ResponseBean
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "部门编辑查看可操作的申报选题")
@RequestMapping(value = "/listEditor", method = RequestMethod.GET)
public ResponseBean listEditor(HttpServletRequest request, Integer pageSize, Integer pageNumber, String bookname, String submitTime) {
PageParameter<TopicEditorVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
TopicEditorVO topicEditorVO = new TopicEditorVO();
topicEditorVO.setBookname(bookname);
if (StringUtil.isEmpty(submitTime)) {
topicEditorVO.setSubmitTime(null);
} else {
topicEditorVO.setSubmitTime(DateUtil.str2Timestam(submitTime));
}
String sessionId = CookiesUtil.getSessionId(request);
pageParameter.setParameter(topicEditorVO);
return new ResponseBean(topicService.listTopicEditorVOs(sessionId, pageParameter));
}
Aggregations