Search in sources :

Example 1 with BookPreferenceAnalysisVO

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());
}
Also used : BookPreferenceAnalysisVO(com.bc.pmpheep.back.vo.BookPreferenceAnalysisVO) PageParameter(com.bc.pmpheep.back.plugin.PageParameter) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest)

Example 2 with BookPreferenceAnalysisVO

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));
}
Also used : BookPreferenceAnalysisVO(com.bc.pmpheep.back.vo.BookPreferenceAnalysisVO) 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)2 BookPreferenceAnalysisVO (com.bc.pmpheep.back.vo.BookPreferenceAnalysisVO)2 LogDetail (com.bc.pmpheep.annotation.LogDetail)1 ResponseBean (com.bc.pmpheep.controller.bean.ResponseBean)1 BaseTest (com.bc.pmpheep.test.BaseTest)1 Test (org.junit.Test)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1