Browse Source

no message

FengChaoYu 6 months ago
parent
commit
de9c87c709
1 changed files with 3 additions and 1 deletions
  1. 3 1
      mall-miniapp-service/src/main/resources/mapper/CommonMapper.xml

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

@@ -86,7 +86,9 @@
                 </foreach>
             </if>
             and a.company_wechat_id = #{companyWechatId}
-        HAVING distance &lt; 50000
+        <if test="lng != '0'.toString() and lat != '0'.toString()">
+            HAVING distance &lt; 50000
+        </if>
         ORDER BY distance
     </select>