he2802 преди 1 година
родител
ревизия
a6094ed6b6
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

+ 6 - 1
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

@@ -811,7 +811,12 @@
             and cgu.period_status != -1
         </if>
         <if test="searchKey != null and searchKey != '' ">
-            and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey}, '%') or g.goods_name like concat('%', #{searchKey}, '%') or cg.class_name like concat('%', #{searchKey}, '%'))
+            and (
+            u.realname like concat('%', #{searchKey}, '%')
+        or u.id_card like concat('%', #{searchKey}, '%')
+        or g.goods_name like concat('%', #{searchKey}, '%')
+        or cg.class_name like concat('%', #{searchKey}, '%')
+        or u.company_name like concat('%', #{searchKey}, '%'))
         </if>
         <if test="searchStartTime != null and searchStartTime !='' ">
             AND cgu.create_time >=#{searchStartTime}