日期:2014-05-20 浏览次数:20942 次
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); }