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>