Search in sources :

Example 41 with PageParameter

use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.

the class DecPositionController method schoolResultsChosen.

/**
 * Description:加载学校申报情况统计结果(按当选数排序)
 *
 * @author:lyc
 * @date:2017年12月1日下午3:03:36
 * @param
 * @return ResponseBean
 */
@ResponseBody
@RequestMapping(value = "/list/schoolResultsChosen", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "加载学校申报情况统计结果(按当选数排序)")
public ResponseBean schoolResultsChosen(Integer pageSize, Integer pageNumber, Long materialId, String schoolName) {
    PageParameter<DeclarationSituationSchoolResultVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
    DeclarationSituationSchoolResultVO declarationSituationSchoolResultVO = new DeclarationSituationSchoolResultVO();
    declarationSituationSchoolResultVO.setMaterialId(materialId);
    declarationSituationSchoolResultVO.setSchoolName(schoolName);
    pageParameter.setParameter(declarationSituationSchoolResultVO);
    return new ResponseBean(decPositionService.listChosenDeclarationSituationSchoolResultVOs(pageParameter));
}
Also used : PageParameter(com.bc.pmpheep.back.plugin.PageParameter) ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) DeclarationSituationSchoolResultVO(com.bc.pmpheep.back.vo.DeclarationSituationSchoolResultVO) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 42 with PageParameter

use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.

the class DecPositionController method bookResults.

/**
 * Description:加载书本申报情况统计结果
 *
 * @author:lyc
 * @date:2017年12月1日下午5:44:16
 * @param
 * @return ResponseBean
 */
@ResponseBody
@RequestMapping(value = "/list/bookResults", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "加载书本申报情况统计结果")
public ResponseBean bookResults(Integer pageSize, Integer pageNumber, Long materialId, String bookName) {
    PageParameter<DeclarationSituationBookResultVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
    DeclarationSituationBookResultVO declarationSituationBookResultVO = new DeclarationSituationBookResultVO();
    declarationSituationBookResultVO.setMaterialId(materialId);
    declarationSituationBookResultVO.setBookName(bookName);
    pageParameter.setParameter(declarationSituationBookResultVO);
    return new ResponseBean(decPositionService.listDeclarationSituationBookResultVOs(pageParameter));
}
Also used : DeclarationSituationBookResultVO(com.bc.pmpheep.back.vo.DeclarationSituationBookResultVO) 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 43 with PageParameter

use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.

the class DecPositionController method declaration.

/**
 * <pre>
 * 功能描述:
 * 使用示范:
 *
 * @param pageSize
 * @param pageNumber
 * @param textbookIds
 * @return
 * </pre>
 */
@ResponseBody
@RequestMapping(value = "/textbook/declaration", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "获取书籍的申报者")
public ResponseBean declaration(@RequestParam("pageNumber") Integer pageNumber, @RequestParam("pageSize") Integer pageSize, @RequestParam("textbookIds") String[] textbookIds) {
    PageParameter<TextBookDecPositionVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
    TextBookDecPositionVO textBookDecPositionVO = new TextBookDecPositionVO();
    textBookDecPositionVO.setTextBookIds(textbookIds);
    pageParameter.setParameter(textBookDecPositionVO);
    return new ResponseBean(decPositionService.listDeclarationByTextbookIds(pageParameter));
}
Also used : TextBookDecPositionVO(com.bc.pmpheep.back.vo.TextBookDecPositionVO) 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 44 with PageParameter

use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.

the class SchoolAndTeacherCheckController method writerList.

/**
 * <pre>
 * 功能描述:获取教师审核列表
 * 使用示范:
 *
 * @param pageNumber 当前页
 * @param pageSize 页面大小
 * @param writerUserManagerVO
 * @return 分页数据集
 * </pre>
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "查询系统消息列表")
@RequestMapping(value = "/writerList", method = RequestMethod.GET)
public ResponseBean writerList(@RequestParam(name = "pageNumber", defaultValue = "1") Integer pageNumber, @RequestParam(name = "pageSize") Integer pageSize, @RequestParam("realname") String realname, @RequestParam("orgName") String orgName, @RequestParam("progress") Short progress) {
    PageParameter pageParameter = new PageParameter<>();
    WriterUserManagerVO writerUserManagerVO = new WriterUserManagerVO();
    if (StringUtil.notEmpty(orgName)) {
        // 去除空格
        writerUserManagerVO.setOrgName(orgName.replaceAll(" ", ""));
    }
    if (StringUtil.notEmpty(realname)) {
        writerUserManagerVO.setRealname(realname.replaceAll(" ", ""));
    }
    writerUserManagerVO.setProgress(progress);
    pageParameter.setPageNumber(pageNumber);
    pageParameter.setPageSize(pageSize);
    pageParameter.setParameter(writerUserManagerVO);
    return new ResponseBean(writerUserService.getTeacherCheckList(pageParameter));
}
Also used : WriterUserManagerVO(com.bc.pmpheep.back.vo.WriterUserManagerVO) 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 45 with PageParameter

use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.

the class SchoolAndTeacherCheckController method orgList.

/**
 * <pre>
 * 功能描述:获取学校管理员审核列表
 * 使用示范:
 *
 * @param pageNumber 当前页
 * @param pageSize 页面大小
 * @param orgVO orgVO
 * @return 分页数据集
 * </pre>
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "查询系统消息列表")
@RequestMapping(value = "/orgList", method = RequestMethod.GET)
public ResponseBean orgList(@RequestParam(name = "pageNumber", defaultValue = "1") Integer pageNumber, @RequestParam("orgName") String orgName, @RequestParam("realname") String realname, @RequestParam("progress") Integer progress, @RequestParam(name = "pageSize") Integer pageSize) {
    PageParameter pageParameter = new PageParameter<>();
    OrgVO orgVO = new OrgVO();
    if (StringUtil.notEmpty(orgName)) {
        orgVO.setOrgName(orgName.replaceAll(" ", ""));
    }
    if (StringUtil.notEmpty(realname)) {
        orgVO.setRealname(realname.replaceAll(" ", ""));
    }
    orgVO.setProgress(progress);
    pageParameter.setPageNumber(pageNumber);
    pageParameter.setPageSize(pageSize);
    pageParameter.setParameter(orgVO);
    return new ResponseBean(orgService.getSchoolAdminCheckList(pageParameter));
}
Also used : OrgVO(com.bc.pmpheep.back.vo.OrgVO) 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