Ver Fonte

调整 selectUploadFileCategoryList

tsurumure há 3 meses atrás
pai
commit
a5b1f1b98f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/main/resources/mapper/upload/SysFileCategoryDao.xml

+ 1 - 1
src/main/resources/mapper/upload/SysFileCategoryDao.xml

@@ -27,7 +27,7 @@
         <where>
             <if test="user_id != null and user_id != ''">
                 AND fc.user_id = #{user_id}
-                AND f.user_id = #{user_id}
+                AND (f.user_id = #{user_id} OR f.user_id IS NULL)
             </if>
             <if test="category_name != null and category_name != ''">
                 AND fc.category_name LIKE CONCAT('%', #{category_name}, '%')