Files
mp-java/docs/检查微信小程序配置.sql
赵忠林 644de09f21 refactor(shop): 重构 ShopOrderUpdate10550Service
- 移除对 RequestUtil 的依赖,提高性能和可维护性
- 重构用户等级升级和分销业务逻辑,提高代码清晰度
- 增加日志记录,提高系统可监控性
- 优化异常处理,提高系统稳定性
- 支持通过字典配置管理合伙人条件,提高灵活性
2025-08-23 04:59:17 +08:00

74 lines
1.5 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 检查微信小程序配置问题
-- 用于排查"租户 10550 的小程序未配置"的问题
-- 1. 查看你提到的配置记录
SELECT
setting_id,
setting_key,
tenant_id,
content,
deleted,
comments
FROM gxwebsoft_core.sys_setting
WHERE setting_id = 292;
-- 2. 查看租户10550的所有配置
SELECT
setting_id,
setting_key,
tenant_id,
content,
deleted,
comments
FROM gxwebsoft_core.sys_setting
WHERE tenant_id = 10550
ORDER BY setting_key;
-- 3. 查看所有mp-weixin相关的配置
SELECT
setting_id,
setting_key,
tenant_id,
content,
deleted,
comments
FROM gxwebsoft_core.sys_setting
WHERE setting_key = 'mp-weixin'
ORDER BY tenant_id;
-- 4. 查看租户10550的mp-weixin配置这是代码实际查询的条件
SELECT
setting_id,
setting_key,
tenant_id,
content,
deleted,
comments
FROM gxwebsoft_core.sys_setting
WHERE setting_key = 'mp-weixin'
AND tenant_id = 10550
AND deleted = 0;
-- 5. 检查是否有其他租户的mp-weixin配置可以参考
SELECT
setting_id,
setting_key,
tenant_id,
content,
deleted,
comments
FROM gxwebsoft_core.sys_setting
WHERE setting_key = 'mp-weixin'
AND deleted = 0
ORDER BY tenant_id;
-- 6. 查看所有租户的配置情况
SELECT
tenant_id,
COUNT(*) as config_count,
GROUP_CONCAT(setting_key) as setting_keys
FROM gxwebsoft_core.sys_setting
WHERE deleted = 0
GROUP BY tenant_id
ORDER BY tenant_id;