yangys
2024-02-02 b82c71a3e3a97a78bd18ff598d27f3062600d22a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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.qianwen.mdc.mapper.WorkshopMapper">
  <resultMap id="BaseResultMap" type="com.qianwen.mdc.domain.workshop.Workshop">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="name" jdbcType="VARCHAR" property="name" />
  </resultMap>
   
  <select id="queryPage" resultType="com.qianwen.mdc.dto.workshop.WorkshopFullDTO">
          select id,name from workshop
        <where>
            
             <if test="dto.name != null and dto.name != ''">
                <bind name="name" value="'%' + dto.name + '%'" />
                and name like #{name}
             </if>
             
        </where>
        order by id
  </select>
</mapper>