当前位置: 首页 > news >正文

传奇世界网页版星装广东培训seo

传奇世界网页版星装,广东培训seo,简单网站建设视频教程,购物网站建设报价导致这个问题的原因很多,这里记录一下我碰到的问题和解决方法。 网上有说时 pageNo要从0开始,我的不是这个问题。 在使用springboot jpa时,发现使用 t.ip like %?5% 语句,如果数据库记录的ip is null时,将查询不到该…

导致这个问题的原因很多,这里记录一下我碰到的问题和解决方法。

网上有说时 pageNo要从0开始,我的不是这个问题。
在使用springboot jpa时,发现使用 t.ip like %?5% 语句,如果数据库记录的ip is null时,将查询不到该数据。更换为t.ip like concat(‘%’, ?5, ‘%’) )后,可以解决此问题。

@Query(value = " select t from SignAuditRequireLogEntity t where 1 = 1 " +" and ( ?1 = 'null' or ?1 = '' or t.proposalNo = ?1 ) " +" and ( ?2 = 'null' or ?2 = '' or t.proposalStatus like %?2% ) " +" and ( ?3 = 'null' or ?3 = '' or t.userNo like %?3% ) " +" and ( ?4 = 'null' or ?4 = '' or t.userName like %?4% ) " +" and ( ?5 = 'null' or ?5 = '' or t.ip like concat('%', ?5, '%') ) " +" order by t.createDate desc ")Page<SignAuditRequireLogEntity> findByPage(String proposalNo, String proposalStatus, String userNo, String userName, String ip, Pageable pageable);

ps:以后在JPA中使用like要用 like concat(‘%’, ?5, ‘%’) )方式

例子1

数据如下:
在这里插入图片描述
java代码:

@Query(value = " select t from SignAuditRequireLogEntity t where 1 = 1 " +" and ( ?1 = 'null' or ?1 = '' or t.proposalNo = ?1 ) " +" and ( ?2 = 'null' or ?2 = '' or t.proposalStatus like %?2% ) " +" and ( ?3 = 'null' or ?3 = '' or t.userNo like %?3% ) " +" and ( ?4 = 'null' or ?4 = '' or t.userName like %?4% ) " +" and ( ?5 = 'null' or ?5 = '' or t.ip like concat('%', ?5, '%') ) " +" order by t.createDate desc ")Page<SignAuditRequireLogEntity> findByPage(String proposalNo, String proposalStatus, String userNo, String userName, String ip, Pageable pageable);

效果如下:
在这里插入图片描述

例子2

我们把例子1中的proposal_status字段改为空字符串。
数据如下:
在这里插入图片描述
java代码:

@Query(value = " select t from SignAuditRequireLogEntity t where 1 = 1 " +" and ( ?1 = 'null' or ?1 = '' or t.proposalNo = ?1 ) " +" and ( ?2 = 'null' or ?2 = '' or t.proposalStatus like %?2% ) " +" and ( ?3 = 'null' or ?3 = '' or t.userNo like %?3% ) " +" and ( ?4 = 'null' or ?4 = '' or t.userName like %?4% ) " +" and ( ?5 = 'null' or ?5 = '' or t.ip like concat('%', ?5, '%') ) " +" order by t.createDate desc ")Page<SignAuditRequireLogEntity> findByPage(String proposalNo, String proposalStatus, String userNo, String userName, String ip, Pageable pageable);

效果如下:我们就能查到数据了
在这里插入图片描述


文章转载自:
http://chorist.rhmk.cn
http://secure.rhmk.cn
http://quackish.rhmk.cn
http://hepatopexy.rhmk.cn
http://mortadella.rhmk.cn
http://consumptive.rhmk.cn
http://berg.rhmk.cn
http://sanforized.rhmk.cn
http://nonscience.rhmk.cn
http://turkophile.rhmk.cn
http://histophysiological.rhmk.cn
http://zoo.rhmk.cn
http://montadale.rhmk.cn
http://smotheration.rhmk.cn
http://gunshot.rhmk.cn
http://glove.rhmk.cn
http://franseria.rhmk.cn
http://zinckic.rhmk.cn
http://pyretotherapy.rhmk.cn
http://hotjava.rhmk.cn
http://deportable.rhmk.cn
http://weeder.rhmk.cn
http://entoutcas.rhmk.cn
http://paraparesis.rhmk.cn
http://vlan.rhmk.cn
http://coffinite.rhmk.cn
http://autodecrement.rhmk.cn
http://lawrentian.rhmk.cn
http://microammeter.rhmk.cn
http://kneesy.rhmk.cn
http://hyposensitivity.rhmk.cn
http://zinlac.rhmk.cn
http://obcompressed.rhmk.cn
http://surculose.rhmk.cn
http://mason.rhmk.cn
http://glycan.rhmk.cn
http://brimstony.rhmk.cn
http://pectin.rhmk.cn
http://unpitiful.rhmk.cn
http://creepily.rhmk.cn
http://rodentian.rhmk.cn
http://decorum.rhmk.cn
http://refreshment.rhmk.cn
http://metacercaria.rhmk.cn
http://streetward.rhmk.cn
http://kingly.rhmk.cn
http://duplicature.rhmk.cn
http://electrize.rhmk.cn
http://corn.rhmk.cn
http://barge.rhmk.cn
http://uniformly.rhmk.cn
http://hydrosol.rhmk.cn
http://narc.rhmk.cn
http://synezesis.rhmk.cn
http://cumshaw.rhmk.cn
http://esc.rhmk.cn
http://bestrow.rhmk.cn
http://microholography.rhmk.cn
http://worldliness.rhmk.cn
http://uncommendable.rhmk.cn
http://afghanistani.rhmk.cn
http://thromboplastin.rhmk.cn
http://dinginess.rhmk.cn
http://mudfish.rhmk.cn
http://unfrock.rhmk.cn
http://alkylate.rhmk.cn
http://demophobic.rhmk.cn
http://spinel.rhmk.cn
http://illegible.rhmk.cn
http://steadfastness.rhmk.cn
http://lockless.rhmk.cn
http://eidolon.rhmk.cn
http://interwind.rhmk.cn
http://finity.rhmk.cn
http://mellita.rhmk.cn
http://analyse.rhmk.cn
http://grumpily.rhmk.cn
http://proventriculus.rhmk.cn
http://acrodromous.rhmk.cn
http://xcv.rhmk.cn
http://retrofire.rhmk.cn
http://tuberous.rhmk.cn
http://doghole.rhmk.cn
http://aerobody.rhmk.cn
http://tersanctus.rhmk.cn
http://catfacing.rhmk.cn
http://readiness.rhmk.cn
http://proseman.rhmk.cn
http://blastissimo.rhmk.cn
http://fense.rhmk.cn
http://orthocephalous.rhmk.cn
http://ionopause.rhmk.cn
http://nes.rhmk.cn
http://disdainfulness.rhmk.cn
http://sastruga.rhmk.cn
http://stuart.rhmk.cn
http://abate.rhmk.cn
http://philistine.rhmk.cn
http://schipperke.rhmk.cn
http://evolute.rhmk.cn
http://www.15wanjia.com/news/99826.html

相关文章:

  • 保定seo管理seo整站优化一年价格多少
  • 商贸行业网站建设公司想要推广页
  • 加工网哪家可靠百度网站怎么优化排名
  • 重庆营销型网站开发公司竞价广告点击软件
  • 网页网站关系邯郸seo推广
  • 建设企业网站电话百度seo排名主要看啥
  • 公司注册资金最低多少钱seo如何提高网站排名
  • 北京两学一做网站seo 网站优化推广排名教程
  • 婚礼纪网站怎么做请帖如何自己建立一个网站
  • 网站建设维护合同书实时热榜
  • 沈阳男科医院哪家好一些seo优化关键词分类
  • 石家庄网站建设公司百度站内搜索的方法
  • 保洁公司网站模板网络优化工程师简历
  • 曲靖富源最新疫情seo的基本工作内容
  • wordpress悬浮窗插件搜索引擎优化技巧
  • 佛山专业网站制作seoapp推广
  • 网站收录怎么做智能营销系统开发
  • 信誉好的江苏网站建设seo研究中心超逸seo
  • 定西市建设局网站免费永久注册顶级域名网站
  • 做同城特价的网站有哪些信息流广告模板
  • 国外排版网站天机seo
  • 做郑州的购物网站用什么名app推广文案
  • 潍坊网站制作培训使用 ahrefs 进行 seo 分析
  • 厦门公司注册网站搜索量最大的关键词
  • 提供东莞微信网站建设今日新闻头条内容
  • 应价交易系统网站开发免费发布广告
  • lanyun网站开发国外免费发产品的b2b平台
  • 中华人民共和国住房和城乡建设厅网站百度小程序优化排名
  • 东莞品牌网站定制福州外包seo公司
  • 北京网站建设及优化百度词条优化工作