瀏覽代碼

no message

FengChaoYu 6 月之前
父節點
當前提交
de9c87c709
共有 1 個文件被更改,包括 3 次插入1 次删除
  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>