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

网站服务器是主机吗帮平台做推广怎么赚钱

网站服务器是主机吗,帮平台做推广怎么赚钱,wordpress 简繁体 插件,国内国外重大新闻OGNL if 要求#xff1a;查询员工#xff0c;要求#xff0c;携带了哪个字段查询条件就带上这个字段的值 //携带了哪个字段查询条件就带上这个字段的值public ListEmployee getEmpsByConditionIf(Employee employee);!-- public ListEmployee getEm…OGNL if 要求查询员工要求携带了哪个字段查询条件就带上这个字段的值 //携带了哪个字段查询条件就带上这个字段的值public ListEmployee getEmpsByConditionIf(Employee employee);!-- public ListEmployee getEmpsByConditionIf(Employee employee);-- select idgetEmpsByConditionIf resultTypecom.atguigu.mybatis.bean.Employeeselect * from tb1_employeewhere!--test,判断表达式(OGNL)OGNL参照PPT或者官方文档c:if test从参数中取值进行判断遇见特殊符号应该去写转义字符;--if test id!nullid #{id}/ifif test lastName!null amp;amp; lastName!quot;quot;and last_name like #{lastName}/if if testemail!null and email.trim()!quot;quot;and email #{email} /if!--ognl会进行字符串与数字的转换判断 00 -- if testgender0 or gender1and gender #{gender}/if/selectTestpublic void test04() throws IOException {SqlSessionFactory sqlSessionFactory getSqlSessionFactory();SqlSession sqlSession sqlSessionFactory.openSession();try{EmployeeMapperDynamicSQL mapper sqlSession.getMapper(EmployeeMapperDynamicSQL.class);Employee employee new Employee(3,%e%,jerryqq.com,null);ListEmployee emps mapper.getEmpsByConditionIf(employee);for (Employee emp:emps){System.out.println(emp);}}finally {sqlSession.close();}}查询的时候如果某些条件没带sql的拼装可能出现问题 解决方法使用where where 第一种方法 给where后面加上11以后的条件都and xxx 第二种方法 mybatis使用where标签来将所有的查询条件包括在内。mybatis就会将where标签中拼接的sql多出来的and或者or去掉where只会去掉第一个多出来的and或者or。 !-- public ListEmployee getEmpsByConditionIf(Employee employee);-- select idgetEmpsByConditionIf resultTypecom.atguigu.mybatis.bean.Employeeselect * from tb1_employeewhereif test id!nullid #{id}/ifif test lastName!null amp;amp; lastName!quot;quot;and last_name like #{lastName}/ifif testemail!null and email.trim()!quot;quot;and email #{email}/if!--ognl会进行字符串与数字的转换判断 00 --if testgender0 or gender1and gender #{gender}/if/where/selecttrim 后面多出的and或者or where标签不能解决 prefix “”:前缀;trim标签体中整个字符串拼串后的结果。prefix给拼串后的整个字符串加一个前缀prefixOverrides “”:前缀覆盖;去掉整个字符串多余的字符suffix “”:给拼串后的整个字符串加一个后缀suffixOverrides “”:后缀覆盖去掉整个字符串后面多余的字符 !-- public ListEmployee getEmpsByConditionIf(Employee employee);-- select idgetEmpsByConditionIf resultTypecom.atguigu.mybatis.bean.Employeeselect * from tb1_employeetrim prefixwhere suffixOverridesandif test id!nullid #{id} and/ifif test lastName!null amp;amp; lastName!quot;quot;last_name like #{lastName} and/ifif testemail!null and email.trim()!quot;quot;email #{email} and/if!--ognl会进行字符串与数字的转换判断 00 --if testgender0 or gender1gender #{gender}/if/trim/select
http://www.pierceye.com/news/3563/

相关文章:

  • 如何编辑网站标题栏开厂做哪个网站比较好
  • 创办网站需要怎么做社群营销怎么做
  • 网站开发一般多少钱免费网站app使用排名
  • 平面设计网站有什么青岛网络公司有哪些
  • 网站怎么自己做优化网贷网站开发
  • 网站开发汇报ppt湘潭优化公司
  • 如何做好营销型网站建设网站怎么做交易市场
  • 西安网站开发的空间上海网站建设公司四叶互联
  • 招聘网站评估怎么做客户端
  • 去国外做非法网站广告推广方式
  • 广州比较有名的网站建设公司高埗镇仿做网站
  • 网站设计一般用什么软件青岛网站定制
  • 电商网站排名wordpress主题清除数据
  • 网站服务器租用价格怎么在阿里云建网站
  • 做电影网站赚钱网站开发搭建合同范本
  • flash网站导航条怎么做马鞍山网站建设服务开发
  • 网站建设的自查报告网站调用视频
  • 北京上地网站建设邯郸平台公司
  • 学校网页网站模板软件开发工具通常也称为什么工具
  • 做网站公司需要什么条件河北省住房和城乡建设厅官网
  • 自动生成图片的网站嘉兴 网站建设
  • 织梦网站建设教程wordpress 主题破解版
  • 怎么做快三彩票网站跨境网络营销案例
  • 建设网站包维护如何在免费网站上做推扩
  • chatgpt入口优化营商环境工作开展情况汇报
  • 杭州滨江区建设局网站全球互联网十大网站
  • 网站推广要点 优帮云wordpress弹出登陆
  • 网站建设的需求文档网站建设公司-跨界鱼科技
  • wordpress下载站网站建设与小程序开发熊掌号
  • 公司做网站需要准备什么材料小型培训机构管理系统