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/WorkshopMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/WorkshopMapper.xml b/mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/WorkshopMapper.xml
index ab371b4..269baa7 100644
--- a/mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/WorkshopMapper.xml
+++ b/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>
\ No newline at end of file

--
Gitblit v1.9.3