Prechádzať zdrojové kódy

司机管理搜索字段去除空格

donglang 2 mesiacov pred
rodič
commit
b7cf26a30a

+ 2 - 2
sckw-modules/sckw-fleet/src/main/resources/mapper/KwfDriverMapper.xml

@@ -221,8 +221,8 @@
         </choose>
         <if test="keywords != null and keywords != ''">
             and (
-            dr.name like concat('%',#{keywords},'%')
-            or dr.phone like concat('%',#{keywords},'%')
+            dr.name like concat('%',trim(#{keywords}),'%')
+            or dr.phone like concat('%',trim(#{keywords}),'%')
             )
         </if>
         ORDER BY dr.create_time desc