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

ppt的网站导航栏怎么做上海牛巨微seo优化

ppt的网站导航栏怎么做,上海牛巨微seo优化,DW网站建设出现哪些问题,其它区便宜营销型网站建设if标签 用于判断条件是否成立。使用test属性进行条件判断&#xff0c;如果条件为true&#xff0c;则拼接sql。 <where>标签用于识别语句是否需要连接词and&#xff0c;识别sql语句。 package com.t0.maybatisc.mapper;import com.t0.maybatisc.pojo.Emp; import org.a…

if标签

用于判断条件是否成立。使用test属性进行条件判断,如果条件为true,则拼接sql。

<where>标签用于识别语句是否需要连接词and,识别sql语句。

package com.t0.maybatisc.mapper;import com.t0.maybatisc.pojo.Emp;
import org.apache.ibatis.annotations.*;import java.time.LocalDate;
import java.util.List;@Mapper
public interface EmpMapper {
//    条件查询public List<Emp> list( String name,  Short gender,  LocalDate begin,  LocalDate end);}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapperPUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""https://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.t0.maybatisc.mapper.EmpMapper"><select id="list" resultType="com.t0.maybatisc.pojo.Emp">select * from emp<where><if test="name != null">name like concat('%',#{name},'%')</if><if test="gender != null">and gender = #{gender}</if><if test="begin != null and end != null">and entrydate between #{begin} and #{end}</if></where>order by update_time desc</select>
</mapper>
//    根据条件查询@Testpublic void list(){
//        List<Emp> empList =empMapper.list("张",(short) 1,LocalDate.of(2010,01,01),LocalDate.of(2020,01,01));List<Emp> empList =empMapper.list(null,(short)1,null,null);System.out.println(empList);}
}

用于select、upgrade。

foreach标签

package com.t0.maybatisc.mapper;import com.t0.maybatisc.pojo.Emp;
import org.apache.ibatis.annotations.*;import java.time.LocalDate;
import java.util.List;@Mapper
public interface EmpMapper {
//    多条删除public  void deleteByids(List<Integer> ids);}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapperPUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""https://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.t0.maybatisc.mapper.EmpMapper"><select id="deleteByids" resultType="com.t0.maybatisc.pojo.Emp">delete from emp where id in<foreach collection="ids" item="id" separator="," open="(" close=")">#{id}</foreach></select></mapper>

collection="ids" item="id" separator="," open="(" close=")"

    @Testpublic void TestdeleteByids(){List<Integer> ids = Arrays.asList(19,18,16);empMapper.deleteByids(ids);}

sql和include

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapperPUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""https://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.t0.maybatisc.mapper.EmpMapper"><sql id="commonS">select id,username,password,name,gender,image,job,entrydate,dept_id,create_time,update_timefrom emp</sql><select id="list" resultType="com.t0.maybatisc.pojo.Emp"><include refid="commonS"></include><where><if test="name != null">name like concat('%',#{name},'%')</if><if test="gender != null">and gender = #{gender}</if><if test="begin != null and end != null">and entrydate between #{begin} and #{end}</if></where>order by update_time desc</select>
</mapper>

 

http://www.wangmingla.cn/news/116087.html

相关文章:

  • 做网站不会写代码品牌网站建设哪家好
  • 百度网站收录链接提交关键词优化排名软件哪家好
  • 做网站一定要服务器吗百度百科优化
  • 男人的天堂哔哩哔哩深圳市企业网站seo
  • 南昌企业做网站链接购买平台
  • 武汉响应式网站制作搜索引擎推广方式有哪些
  • 云浮市做网站的公司湛江今日头条
  • 网站诚信体制建设今日国际新闻最新消息事件
  • wordpress 默认html5网站排名优化方法
  • 整形医院网站建设泉州百度竞价开户
  • 网站模板整站裂变营销五种模式十六种方法
  • 去国外做外卖网站网络推广协议
  • 网网站制作开发百度seo流量
  • 安徽省淮南市城乡建设委员会网站申泽seo
  • 做网站怎么接业务不收费推广网站有哪些
  • 网站开发设计定制公司网站模版
  • 怎么做投票网站平台搭建
  • 网站后台权限管理企业推广网
  • 咸阳学校网站建设费用批量关键词调排名软件
  • 北京搬家公司收费价目表搜索引擎关键词优化
  • 南昌百度seo湖北seo关键词排名优化软件
  • 主流的自助建站网站杭州优化商务服务公司
  • 南山做网站多少钱关键词搜索方法
  • 哪个网站公司做的高端网站建设定制
  • 重庆建设教育协会网站首页网络营销主要是学什么的
  • 怎么样在网站做产品推广代推广app下载
  • 网站运营发展前景现在最好的营销方式
  • 重庆装修公司网站建设国际新闻稿件
  • 地方农村电商平台网站设计思路百度联盟官网
  • 建设网站模板免费国家再就业免费培训网