浏览代码

海报管理接口修改

785834757 2 年之前
父节点
当前提交
cc08049d6a
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/main/resources/mapper/modules/admin/SysPosterMapper.xml

+ 3 - 4
src/main/resources/mapper/modules/admin/SysPosterMapper.xml

@@ -13,6 +13,9 @@
 
     <sql id="Base_Where">
         <where>
+            1=1
+            AND
+            sp.file_id = iuf.id
             <if test="type != null and type != ''">
                 AND type = #{type}
             </if>
@@ -24,10 +27,6 @@
 
     <select id="posterList" resultType="com.ydtech.modules.admin.model.SysPoster">
         <include refid="Base_Column_List"/>
-        WHERE
-            1=1
-        AND
-            sp.file_id = iuf.id
         <include refid="Base_Where"/>
             ORDER BY update_time DESC
     </select>