use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class BookUserCommentController method list.
/**
* 功能描述:分页初始化/模糊查询图书评论
*
* @param pageSize
* 当页的数据条数
* @param pageNumber
* 当前页码
* @param name
* 数据名称/isbn
* @param isAuth
* 是否通过审核
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页初始化/模糊查询图书评论")
@RequestMapping(value = "/list", method = RequestMethod.GET)
public ResponseBean list(Integer pageSize, Integer pageNumber, String name, Integer isAuth, Boolean isLong) {
PageParameter<BookUserCommentVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
BookUserCommentVO bookUserCommentVO = new BookUserCommentVO();
bookUserCommentVO.setIsAuth(isAuth);
// 去除空格
bookUserCommentVO.setName(name.replaceAll(" ", ""));
bookUserCommentVO.setIsLong(isLong);
pageParameter.setParameter(bookUserCommentVO);
return new ResponseBean(bookUserCommentService.listBookUserComment(pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class DecPositionController method schoolListPreset.
/**
* Description:加载学校统计结果(按申报数排序)
*
* @author:lyc
* @date:2017年12月5日下午2:57:51
* @param
* @return ResponseBean
*/
@ResponseBody
@RequestMapping(value = "/list/schoolListPreset", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "加载学校统计结果(按申报数排序)")
public ResponseBean schoolListPreset(Integer pageSize, Integer pageNumber, Long materialId, String schoolName) {
PageParameter<DeclarationResultSchoolVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
DeclarationResultSchoolVO declarationResultSchoolVO = new DeclarationResultSchoolVO();
declarationResultSchoolVO.setMaterialId(materialId);
declarationResultSchoolVO.setSchoolName(schoolName);
pageParameter.setParameter(declarationResultSchoolVO);
return new ResponseBean(decPositionService.listPresetDeclarationResultSchoolVOs(pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class DecPositionController method schoolResultsPreset.
/**
* Description:加载学校申报情况统计结果(按申报数排序)
*
* @author:lyc
* @date:2017年12月5日下午2:47:07
* @param
* @return ResponseBean
*/
@ResponseBody
@RequestMapping(value = "/list/schoolResultsPreset", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "加载学校申报情况统计结果(按申报数排序)")
public ResponseBean schoolResultsPreset(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.listPresetDeclarationSituationSchoolResultVOs(pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class PositionChooseController method editorList.
/**
* 分页查询该书籍下的已选主编和编委
*
* @param textbookId
* @param pageSize
* @param pageNumber
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "查询该书籍下的已选主编和编委")
@RequestMapping(value = "/editorList", method = RequestMethod.GET)
public ResponseBean editorList(@RequestParam("textbookId") Long textbookId, @RequestParam("pageSize") Integer pageSize, @RequestParam(name = "pageNumber", defaultValue = "1") Integer pageNumber) {
PageParameter<TextbookDecVO> pageParameter = new PageParameter<>();
TextbookDecVO textbookDecVO = new TextbookDecVO();
textbookDecVO.setTextBookId(textbookId);
pageParameter.setPageNumber(pageNumber);
pageParameter.setPageSize(pageSize);
pageParameter.setParameter(textbookDecVO);
return new ResponseBean(textbookService.listEditorSelection(pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class SensitiveController method list.
/**
* 功能描述:分页查询敏感词
*
* @param word
* @param pageSize
* @param pageNumber
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "分页查询敏感词")
@RequestMapping(value = "/list", method = RequestMethod.GET)
public ResponseBean list(String word, Integer pageSize, Integer pageNumber) {
PageParameter<Sensitive> pageParameter = new PageParameter<>(pageNumber, pageSize);
Sensitive sensitive = new Sensitive();
sensitive.setWord(word);
pageParameter.setParameter(sensitive);
return new ResponseBean(sensitiveService.list(pageParameter));
}
Aggregations