‘linchangsheng’ 7 months ago
parent
commit
97be512451
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mall-miniapp-service/src/main/resources/mapper/CommonMapper.xml

+ 1 - 1
mall-miniapp-service/src/main/resources/mapper/CommonMapper.xml

@@ -96,7 +96,7 @@
             </if>
             </if>
 
 
             and a.company_wechat_id = #{companyWechatId}
             and a.company_wechat_id = #{companyWechatId}
-        <if test="websitIdsQuchu != null and websitIdsQuchu.size > 0 and lng != '0'.toString() and lat != '0'.toString()">
+        <if test="websitIdsQuchu != null and websitIdsQuchu != '' and lng != '0'.toString() and lat != '0'.toString()">
             HAVING distance &lt; #{rice}
             HAVING distance &lt; #{rice}
         </if>
         </if>
         ORDER BY distance
         ORDER BY distance