Browse Source

Merge branch 'developerB' of http://git.caimei365.com/caimei365/caimei365-www into developerB

xiebaomin 1 year ago
parent
commit
d2dd81ec01
1 changed files with 3 additions and 3 deletions
  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