Search in sources :

Example 46 with PageParameter

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));
}
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)

Example 47 with 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));
}
Also used : ArrayList(java.util.ArrayList) PageParameter(com.bc.pmpheep.back.plugin.PageParameter) ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) TopicDeclarationVO(com.bc.pmpheep.back.vo.TopicDeclarationVO) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 48 with 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));
}
Also used : TopicOPtsManagerVO(com.bc.pmpheep.back.vo.TopicOPtsManagerVO) 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)

Example 49 with 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));
}
Also used : PageParameter(com.bc.pmpheep.back.plugin.PageParameter) ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) TopicDirectorVO(com.bc.pmpheep.back.vo.TopicDirectorVO) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 50 with 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));
}
Also used : TopicEditorVO(com.bc.pmpheep.back.vo.TopicEditorVO) 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

PageParameter (com.bc.pmpheep.back.plugin.PageParameter)78 LogDetail (com.bc.pmpheep.annotation.LogDetail)43 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)43 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)39 ResponseBean (com.bc.pmpheep.controller.bean.ResponseBean)37 BaseTest (com.bc.pmpheep.test.BaseTest)28 Test (org.junit.Test)28 PageResult (com.bc.pmpheep.back.plugin.PageResult)24 Rollback (org.springframework.test.annotation.Rollback)14 CheckedServiceException (com.bc.pmpheep.service.exception.CheckedServiceException)12 IOException (java.io.IOException)8 WriterUserManagerVO (com.bc.pmpheep.back.vo.WriterUserManagerVO)7 Workbook (org.apache.poi.ss.usermodel.Workbook)7 OrgVO (com.bc.pmpheep.back.vo.OrgVO)6 ArrayList (java.util.ArrayList)6 Material (com.bc.pmpheep.back.po.Material)5 OrgAndOrgUserVO (com.bc.pmpheep.back.vo.OrgAndOrgUserVO)5 BufferedOutputStream (java.io.BufferedOutputStream)5 OutputStream (java.io.OutputStream)5 UnsupportedEncodingException (java.io.UnsupportedEncodingException)5