Bladeren bron

no message

FengChaoYu 9 maanden geleden
bovenliggende
commit
59e89375ee
1 gewijzigde bestanden met toevoegingen van 6 en 2 verwijderingen
  1. 6 2
      mall-miniapp-service/src/main/resources/mapper/MaterialMapper.xml

+ 6 - 2
mall-miniapp-service/src/main/resources/mapper/MaterialMapper.xml

@@ -776,8 +776,12 @@
 
         from admin_websit a
         <where>
-            <if test="websitId == null">
-                AND a.status = 1
+            a.company_wechat_id = #{companyWechatId}
+            AND a.type = 'C'
+            AND a.parts_websit_id IS NOT NULL
+            AND a.status = 1
+            <if test="websitId != null and websitId != ''">
+                AND a.websit_id = #{websitId}
             </if>
         </where>
         order by distance asc, websit_id