yangys
2024-02-02 b82c71a3e3a97a78bd18ff598d27f3062600d22a
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>