use of com.bc.pmpheep.back.vo.BookPreferenceAnalysisVO in project pmph by BCSquad.
the class BookServiceTest method testGetBookPreferenceAnalysis.
@Test
public void testGetBookPreferenceAnalysis() {
PageParameter<BookPreferenceAnalysisVO> pageParameter = new PageParameter<>(1, 10);
BookPreferenceAnalysisVO bookPreferenceAnalysisVO = new BookPreferenceAnalysisVO();
bookPreferenceAnalysisVO.setBookname(null);
pageParameter.setParameter(bookPreferenceAnalysisVO);
PageResult<BookPreferenceAnalysisVO> pageResult = bookService.getBookPreferenceAnalysis(pageParameter);
Assert.assertNotNull(pageResult.getRows());
}
use of com.bc.pmpheep.back.vo.BookPreferenceAnalysisVO in project pmph by BCSquad.
the class BaiduCountController method bookPreference.
/**
* 功能描述:获取图书偏好分析
*
* @param pageSize
* 当前页的数据条数
* @param pageNumber
* 当前页数
* @param bookname
* 书籍名称/isbn
* @return
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "获取图书偏好分析")
@RequestMapping(value = "/list/bookPreference", method = RequestMethod.GET)
public ResponseBean bookPreference(Integer pageSize, Integer pageNumber, String bookname, Long type, String path) {
PageParameter<BookPreferenceAnalysisVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
BookPreferenceAnalysisVO bookPreferenceAnalysisVO = new BookPreferenceAnalysisVO();
bookPreferenceAnalysisVO.setBookname(bookname);
bookPreferenceAnalysisVO.setType(type);
bookPreferenceAnalysisVO.setPath(path);
pageParameter.setParameter(bookPreferenceAnalysisVO);
return new ResponseBean(bookService.getBookPreferenceAnalysis(pageParameter));
}
Aggregations