Explorar el Código

快捷运营页面V1.3.10

kaick hace 2 años
padre
commit
63d5dd6d02
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/main/resources/mapper/BaseMapper.xml

+ 3 - 3
src/main/resources/mapper/BaseMapper.xml

@@ -18,9 +18,9 @@
             sort
 		from new_page_first_navigation
 		where wwwEnabledStatus='1' and delFlag = 0
-        <if test="type != null and type != ''">
-            <if test="type == 0 and type ==0">and (type = 0 or type is null )</if>
-            <if test="type != 0 and type !=0">and type = #{type}</if>
+        <if test="type != null ">
+            <if test="type == 0 ">and (type = 0 or type is null )</if>
+            <if test="type != 0 ">and type = #{type}</if>
         </if>
 		order by sort asc,createDate desc
 		limit 8