hfxc226 6 месяцев назад
Родитель
Сommit
ebd1479595

+ 3 - 3
platform-dao/src/main/resources/mapper/remote/RemoteDegreeLogMapper.xml

@@ -115,12 +115,12 @@
         </if>
         <if test="keyword != null and keyword != ''">
             and (
-                degree.sb_name like concat(concat('%',#{keyword}),'%')
-                or degree_log.position_num like concat(concat('%',#{keyword}),'%')
+                degree.sb_name like concat('%',#{keyword},'%')
+                or degree_log.position_num like concat('%',#{keyword},'%')
             )
         </if>
         <if test="sbName != null and sbName != ''">
-            and degree.sb_name like concat(concat('%',#{sbName}),'%')
+            and degree.sb_name like concat('%',#{sbName},'%')
         </if>
         <if test="line != null">
             and degree.line = #{line}

+ 1 - 4
platform-dao/src/main/resources/mapper/remote/RemoteDegreeMapper.xml

@@ -95,10 +95,7 @@
             and degree.update_time = #{updateTime}
         </if>
         <if test="keyword != null and keyword != ''">
-            and (
-            degree.id like concat(concat('%',#{keyword}),'%')
-            or degree.position_num like concat(concat('%',#{keyword}),'%')
-            }
+            degree.position_num like concat('%',#{keyword},'%')
         </if>
     </sql>
     <select id="selectList" parameterType="com.platform.dao.dto.remote.RemoteDegreeDTO"