yangys
2024-02-02 b82c71a3e3a97a78bd18ff598d27f3062600d22a
mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/WorkshopMapper.xml
@@ -8,4 +8,17 @@
    <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>