he2802 1 ano atrás
pai
commit
a6094ed6b6

+ 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}