12345678910111213141516171819202122 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.zhgd.scs.mapper.EngVehicleTypeMapper">
- <resultMap id="BaseResultMap" type="com.zhgd.scs.domain.EngVehicleType">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="type" column="type" jdbcType="VARCHAR"/>
- <result property="projectId" column="project_id" jdbcType="BIGINT"/>
- </resultMap>
- <select id="pagelist" resultType="com.zhgd.scs.domain.EngVehicleType">
- SELECT v.*
- FROM eng_vehicle_type v
- WHERE v.project_id=#{projectId}
- <if test="type!=null and type!= ''">
- AND v.type LIKE concat('%',#{type},'%')
- </if>
- </select>
- </mapper>
|