‘linchangsheng’ 7 달 전
부모
커밋
97be512451
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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>
 
             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}
         </if>
         ORDER BY distance