按时间查询和关键字查询
public Page<AdTesify> getPage(Page<AdTesify> page, String searchKey,int flowStatus){ Criterion cri; if(flowStatus==-1) { cri =Restrictions.like(AdTesify.Pro_Content, searchKey, MatchMode.ANYWHERE); } else{ cri = Restrictions.and(Restrictions.like(AdTesify.Pro_Content, searchKey, MatchMode.ANYWHERE), Restrictions.eq(AdTesify.Pro_FlowStatus, flowStatus) ); } return adTesifyDao.findPage(page,cri); }