Commit e161f275 by 张富康

fix(platform-merchants): 修复商户品牌关联查询逻辑

- 将商户和商户品牌的连接方式由内连接改为左连接
- 确保查询结果包括所有商户,即使无对应品牌信息
- 改进查询的灵活性,避免因无关联品牌导致数据遗漏
1 parent 4f4bbf0c
......@@ -1221,7 +1221,7 @@
pm.merchant_name as merchantName,
pm.province_code as provinceCode
FROM platform_merchant pm
INNER JOIN platform_merchant_brand pmb
LEFT JOIN platform_merchant_brand pmb
ON pm.merchantNo = pmb.merchant_id
WHERE pm.del_flag = 0
<if test="provinceIds != null and provinceIds.size() > 0">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!