From b82c71a3e3a97a78bd18ff598d27f3062600d22a Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期五, 02 二月 2024 22:47:41 +0800 Subject: [PATCH] 增加车间和工段的维护接口 --- mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/PlantMapper.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/PlantMapper.xml b/mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/PlantMapper.xml index d603d12..ce5dd22 100644 --- a/mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/PlantMapper.xml +++ b/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> \ No newline at end of file -- Gitblit v1.9.3