最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
jsp 关键字模糊查询代码
时间:2010-07-06 编辑:简简单单 来源:一聚教程网
网页特效p/网页特效p.html target=_blank >jsp教程 关键字模糊查询代码
public pagegetpage(page 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);
}
现在这个只是实现按关键字(content)查询
-
上一个: java连接mysql数据代码
-
下一个: 完整java用户登陆代码
相关文章
- js 查询表格内容并加亮相应内容单元格 07-19
- jsp 关键字:查询,事务,粒度 09-04
- jsp+access 模糊查询 06-12
- JSP代码(添加,查询) 01-12
- SpringBoot测试配置属性与web启动环境解析 10-24
- vue中将el-switch值true、false改为number类型的1和0解析 10-24