mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/PlantMapper.xml
@@ -7,4 +7,17 @@ <result column="name" jdbcType="VARCHAR" property="name" /> <result column="grid_setting" jdbcType="VARCHAR" property="gridSetting" /> </resultMap> <select id="queryPage" resultType="com.qianwen.mdc.dto.plant.PlantDTO"> select id,name,grid_setting gridSetting from plant <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>