feat(config): update database and Redis configurations

- Changed MySQL datasource URL from 47.121.133.163:3308 to 8.134.169.209:13306
- Updated database username from 'mp' to 'modules'
- Updated database password
- Changed Redis host from IP address to 1Panel-redis-Q1LE
- Updated Redis port from 16379 to 6379

feat(core): replace web
This commit is contained in:
2025-11-19 19:29:55 +08:00
parent af28fd5b54
commit bd8564ea66
49 changed files with 144 additions and 144 deletions

View File

@@ -2,65 +2,65 @@
-- 用于解决"租户 10550 的小程序未配置"问题 -- 用于解决"租户 10550 的小程序未配置"问题
-- 1. 检查当前cms_website_field表中租户10550的配置 -- 1. 检查当前cms_website_field表中租户10550的配置
SELECT SELECT
id, id,
name, name,
value, value,
tenant_id, tenant_id,
deleted, deleted,
comments comments
FROM cms_website_field FROM cms_website_field
WHERE tenant_id = 10550 WHERE tenant_id = 10550
AND deleted = 0 AND deleted = 0
ORDER BY name; ORDER BY name;
-- 2. 检查是否已有AppID和AppSecret配置 -- 2. 检查是否已有AppID和AppSecret配置
SELECT SELECT
id, id,
name, name,
value, value,
tenant_id, tenant_id,
deleted, deleted,
comments comments
FROM cms_website_field FROM cms_website_field
WHERE tenant_id = 10550 WHERE tenant_id = 10550
AND name IN ('AppID', 'AppSecret') AND name IN ('AppID', 'AppSecret')
AND deleted = 0; AND deleted = 0;
-- 3. 如果没有AppID配置创建一个请替换为实际的AppID -- 3. 如果没有AppID配置创建一个请替换为实际的AppID
INSERT INTO cms_website_field ( INSERT INTO cms_website_field (
type, type,
name, name,
value, value,
tenant_id, tenant_id,
comments, comments,
deleted, deleted,
create_time create_time
) )
SELECT 0, 'AppID', 'wx1234567890abcdef', 10550, '微信小程序AppID', 0, NOW() SELECT 0, 'AppID', 'wx1234567890abcdef', 10550, '微信小程序AppID', 0, NOW()
WHERE NOT EXISTS ( WHERE NOT EXISTS (
SELECT 1 FROM cms_website_field SELECT 1 FROM cms_website_field
WHERE name = 'AppID' AND tenant_id = 10550 AND deleted = 0 WHERE name = 'AppID' AND tenant_id = 10550 AND deleted = 0
); );
-- 4. 如果没有AppSecret配置创建一个请替换为实际的AppSecret -- 4. 如果没有AppSecret配置创建一个请替换为实际的AppSecret
INSERT INTO cms_website_field ( INSERT INTO cms_website_field (
type, type,
name, name,
value, value,
tenant_id, tenant_id,
comments, comments,
deleted, deleted,
create_time create_time
) )
SELECT 0, 'AppSecret', 'abcdef1234567890abcdef1234567890', 10550, '微信小程序AppSecret', 0, NOW() SELECT 0, 'AppSecret', 'abcdef1234567890abcdef1234567890', 10550, '微信小程序AppSecret', 0, NOW()
WHERE NOT EXISTS ( WHERE NOT EXISTS (
SELECT 1 FROM cms_website_field SELECT 1 FROM cms_website_field
WHERE name = 'AppSecret' AND tenant_id = 10550 AND deleted = 0 WHERE name = 'AppSecret' AND tenant_id = 10550 AND deleted = 0
); );
-- 5. 验证配置是否创建成功 -- 5. 验证配置是否创建成功
SELECT SELECT
id, id,
name, name,
value, value,
@@ -68,43 +68,43 @@ SELECT
deleted, deleted,
comments, comments,
create_time create_time
FROM cms_website_field FROM cms_website_field
WHERE tenant_id = 10550 WHERE tenant_id = 10550
AND name IN ('AppID', 'AppSecret') AND name IN ('AppID', 'AppSecret')
AND deleted = 0; AND deleted = 0;
-- 6. 检查sys_setting表中是否有mp-weixin配置用于对比 -- 6. 检查sys_setting表中是否有mp-weixin配置用于对比
SELECT SELECT
setting_id, setting_id,
setting_key, setting_key,
content, content,
tenant_id, tenant_id,
deleted, deleted,
comments comments
FROM websoft_core.sys_setting FROM gxwebsoft_core.sys_setting
WHERE setting_key = 'mp-weixin' WHERE setting_key = 'mp-weixin'
AND tenant_id = 10550 AND tenant_id = 10550
AND deleted = 0; AND deleted = 0;
-- 7. 查看所有租户的mp-weixin配置情况 -- 7. 查看所有租户的mp-weixin配置情况
SELECT SELECT
setting_id, setting_id,
setting_key, setting_key,
content, content,
tenant_id, tenant_id,
deleted deleted
FROM websoft_core.sys_setting FROM gxwebsoft_core.sys_setting
WHERE setting_key = 'mp-weixin' WHERE setting_key = 'mp-weixin'
AND deleted = 0 AND deleted = 0
ORDER BY tenant_id; ORDER BY tenant_id;
-- 8. 如果你有实际的微信小程序配置,请更新这些值 -- 8. 如果你有实际的微信小程序配置,请更新这些值
-- 更新AppID请替换为实际值 -- 更新AppID请替换为实际值
-- UPDATE cms_website_field -- UPDATE cms_website_field
-- SET value = '你的实际AppID' -- SET value = '你的实际AppID'
-- WHERE name = 'AppID' AND tenant_id = 10550 AND deleted = 0; -- WHERE name = 'AppID' AND tenant_id = 10550 AND deleted = 0;
-- 更新AppSecret请替换为实际值 -- 更新AppSecret请替换为实际值
-- UPDATE cms_website_field -- UPDATE cms_website_field
-- SET value = '你的实际AppSecret' -- SET value = '你的实际AppSecret'
-- WHERE name = 'AppSecret' AND tenant_id = 10550 AND deleted = 0; -- WHERE name = 'AppSecret' AND tenant_id = 10550 AND deleted = 0;

View File

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

View File

@@ -76,12 +76,12 @@ public User getByIdIgnoreTenant(Integer userId) {
c.dict_data_name sex_name, c.dict_data_name sex_name,
e.tenant_name, e.tenant_name,
h.dealer_id h.dealer_id
FROM gxwebsoft_core.sys_user a FROM gxgxwebsoft_core.sys_user a
LEFT JOIN ( LEFT JOIN (
<include refid="selectSexDictSql"/> <include refid="selectSexDictSql"/>
) c ON a.sex = c.dict_data_code ) c ON a.sex = c.dict_data_code
LEFT JOIN gxwebsoft_core.sys_tenant e ON a.tenant_id = e.tenant_id LEFT JOIN gxgxwebsoft_core.sys_tenant e ON a.tenant_id = e.tenant_id
LEFT JOIN gxwebsoft_core.sys_user_referee h ON a.user_id = h.user_id and h.deleted = 0 LEFT JOIN gxgxwebsoft_core.sys_user_referee h ON a.user_id = h.user_id and h.deleted = 0
WHERE a.user_id = #{userId} WHERE a.user_id = #{userId}
AND a.deleted = 0 AND a.deleted = 0
</select> </select>

View File

@@ -8,7 +8,7 @@
FROM bszx_bm a FROM bszx_bm a
LEFT JOIN cms_article b ON a.form_id = b.article_id LEFT JOIN cms_article b ON a.form_id = b.article_id
LEFT JOIN bszx_branch c ON a.branch_id = c.id LEFT JOIN bszx_branch c ON a.branch_id = c.id
LEFT JOIN websoft_core.sys_user u ON a.user_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -7,7 +7,7 @@
SELECT a.*,b.title as formName,u.phone as mobile,u.avatar,u.nickname SELECT a.*,b.title as formName,u.phone as mobile,u.avatar,u.nickname
FROM bszx_pay a FROM bszx_pay a
LEFT JOIN cms_article b ON a.form_id = b.article_id LEFT JOIN cms_article b ON a.form_id = b.article_id
LEFT JOIN websoft_core.sys_user u ON a.user_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.nickname, b.phone, c.real_name as doctorName, c.position as doctorPosition SELECT a.*, b.nickname, b.phone, c.real_name as doctorName, c.position as doctorPosition
FROM clinic_appointment a FROM clinic_appointment a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
LEFT JOIN clinic_doctor_user c ON a.doctor_id = c.user_id LEFT JOIN clinic_doctor_user c ON a.doctor_id = c.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.nickname, b.phone, b.avatar SELECT a.*, b.nickname, b.phone, b.avatar
FROM clinic_doctor_user a FROM clinic_doctor_user a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.phone, b.avatar SELECT a.*, b.phone, b.avatar
FROM clinic_patient_user a FROM clinic_patient_user a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -8,7 +8,7 @@
FROM cms_article a FROM cms_article a
LEFT JOIN cms_navigation b ON a.category_id = b.navigation_id LEFT JOIN cms_navigation b ON a.category_id = b.navigation_id
LEFT JOIN cms_navigation c ON b.parent_id = c.navigation_id LEFT JOIN cms_navigation c ON b.parent_id = c.navigation_id
LEFT JOIN websoft_core.sys_user u ON a.user_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
<where> <where>
<if test="param.articleId != null"> <if test="param.articleId != null">
AND a.article_id = #{param.articleId} AND a.article_id = #{param.articleId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.tenant_name as tenantName SELECT a.*, b.tenant_name as tenantName
FROM cms_website a FROM cms_website a
LEFT JOIN websoft_core.sys_tenant b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_tenant b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.websiteId != null"> <if test="param.websiteId != null">
AND a.website_id = #{param.websiteId} AND a.website_id = #{param.websiteId}
@@ -180,7 +180,7 @@
<select id="getByTenantId" resultType="com.gxwebsoft.cms.entity.CmsWebsite"> <select id="getByTenantId" resultType="com.gxwebsoft.cms.entity.CmsWebsite">
SELECT a.*, b.tenant_name as tenantName SELECT a.*, b.tenant_name as tenantName
FROM cms_website a FROM cms_website a
LEFT JOIN websoft_core.sys_tenant b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_tenant b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="tenantId != null"> <if test="tenantId != null">
AND a.tenant_id = #{tenantId} AND a.tenant_id = #{tenantId}
@@ -287,7 +287,7 @@
SELECT a.*,b.app_id, u.phone as superAdminPhone SELECT a.*,b.app_id, u.phone as superAdminPhone
FROM cms_website a FROM cms_website a
LEFT JOIN project b ON a.website_id = b.website_id LEFT JOIN project b ON a.website_id = b.website_id
LEFT JOIN websoft_core.sys_user u ON a.user_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
<where> <where>
<if test="param.websiteId != null"> <if test="param.websiteId != null">
AND a.website_id = #{param.websiteId} AND a.website_id = #{param.websiteId}

View File

@@ -5,9 +5,9 @@
<!-- 关联查询sql --> <!-- 关联查询sql -->
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*,b.tenant_id,b.tenant_name,b.tenant_code,c.title as categoryName SELECT a.*,b.tenant_id,b.tenant_name,b.tenant_code,c.title as categoryName
FROM websoft_core.sys_company a FROM gxwebsoft_core.sys_company a
LEFT JOIN websoft_core.sys_tenant b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_tenant b ON a.tenant_id = b.tenant_id
LEFT JOIN websoft_core.cms_navigation c ON a.category_id = c.navigation_id LEFT JOIN gxwebsoft_core.cms_navigation c ON a.category_id = c.navigation_id
<where> <where>
<if test="param.companyId != null"> <if test="param.companyId != null">
AND a.company_id = #{param.companyId} AND a.company_id = #{param.companyId}

View File

@@ -7,8 +7,8 @@
SELECT a.*, SELECT a.*,
b.dict_code, b.dict_code,
b.dict_name b.dict_name
FROM websoft_core.sys_dict_data a FROM gxwebsoft_core.sys_dict_data a
LEFT JOIN websoft_core.sys_dict b ON a.dict_id = b.dict_id LEFT JOIN gxwebsoft_core.sys_dict b ON a.dict_id = b.dict_id
<where> <where>
AND a.deleted = 0 AND a.deleted = 0
<if test="param.dictDataId != null"> <if test="param.dictDataId != null">
@@ -63,7 +63,7 @@
b.dict_code, b.dict_code,
b.dict_name b.dict_name
FROM sys_dict_data a FROM sys_dict_data a
LEFT JOIN websoft_core.sys_dict b ON a.dict_id = b.dict_id LEFT JOIN gxwebsoft_core.sys_dict b ON a.dict_id = b.dict_id
WHERE a.dict_data_name = #{dictDataName} WHERE a.dict_data_name = #{dictDataName}
AND b.dict_code = #{dictCode} AND b.dict_code = #{dictCode}
</select> </select>

View File

@@ -8,7 +8,7 @@
b.dict_code, b.dict_code,
b.dict_name b.dict_name
FROM sys_dictionary_data a FROM sys_dictionary_data a
LEFT JOIN websoft_core.sys_dictionary b ON a.dict_id = b.dict_id LEFT JOIN gxwebsoft_core.sys_dictionary b ON a.dict_id = b.dict_id
<where> <where>
AND a.deleted = 0 AND a.deleted = 0
<if test="param.dictDataId != null"> <if test="param.dictDataId != null">
@@ -63,7 +63,7 @@
b.dict_code, b.dict_code,
b.dict_name b.dict_name
FROM sys_dictionary_data a FROM sys_dictionary_data a
LEFT JOIN websoft_core.sys_dictionary b ON a.dict_id = b.dict_id LEFT JOIN gxwebsoft_core.sys_dictionary b ON a.dict_id = b.dict_id
WHERE a.dict_data_name = #{dictDataName} WHERE a.dict_data_name = #{dictDataName}
AND b.dict_code = #{dictCode} AND b.dict_code = #{dictCode}
</select> </select>

View File

@@ -10,7 +10,7 @@
b.avatar, b.avatar,
c.merchant_code c.merchant_code
FROM sys_file_record a FROM sys_file_record a
LEFT JOIN websoft_core.sys_user b ON a.create_user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.create_user_id = b.user_id
LEFT JOIN shop_merchant c ON a.merchant_code = c.merchant_code LEFT JOIN shop_merchant c ON a.merchant_code = c.merchant_code
<where> <where>
<if test="param.id != null"> <if test="param.id != null">

View File

@@ -8,7 +8,7 @@
b.user_id, b.user_id,
b.nickname b.nickname
FROM sys_login_record a FROM sys_login_record a
LEFT JOIN websoft_core.sys_user b ON a.username = b.username LEFT JOIN gxwebsoft_core.sys_user b ON a.username = b.username
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -7,8 +7,8 @@
SELECT a.*, SELECT a.*,
b.nickname, b.nickname,
b.username b.username
FROM websoft_core.sys_operation_record a FROM gxwebsoft_core.sys_operation_record a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectOrgTypeDictSql"> <sql id="selectOrgTypeDictSql">
SELECT ta.* SELECT ta.*
FROM sys_dictionary_data ta FROM sys_dictionary_data ta
LEFT JOIN websoft_core.sys_dictionary tb LEFT JOIN gxwebsoft_core.sys_dictionary tb
ON ta.dict_id = tb.dict_id ON ta.dict_id = tb.dict_id
AND tb.deleted = 0 AND tb.deleted = 0
WHERE ta.deleted = 0 WHERE ta.deleted = 0
@@ -23,7 +23,7 @@
LEFT JOIN ( LEFT JOIN (
<include refid="selectOrgTypeDictSql"/> <include refid="selectOrgTypeDictSql"/>
) b ON a.organization_type = b.dict_data_code ) b ON a.organization_type = b.dict_data_code
LEFT JOIN websoft_core.sys_user c ON a.leader_id = c.user_id LEFT JOIN gxwebsoft_core.sys_user c ON a.leader_id = c.user_id
<where> <where>
AND a.deleted = 0 AND a.deleted = 0
<if test="param.organizationId != null"> <if test="param.organizationId != null">

View File

@@ -5,7 +5,7 @@
<!-- 关联查询sql --> <!-- 关联查询sql -->
<sql id="selectSql"> <sql id="selectSql">
SELECT a.* SELECT a.*
FROM websoft_core.sys_payment a FROM gxwebsoft_core.sys_payment a
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}
@@ -79,7 +79,7 @@
<select id="getByType" resultType="com.gxwebsoft.common.system.entity.Payment"> <select id="getByType" resultType="com.gxwebsoft.common.system.entity.Payment">
SELECT a.* SELECT a.*
FROM websoft_core.sys_payment a FROM gxwebsoft_core.sys_payment a
WHERE a.type = #{param.type} WHERE a.type = #{param.type}
AND a.deleted = 0 AND a.deleted = 0
AND a.status = 1 AND a.status = 1

View File

@@ -6,8 +6,8 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*,b.tenant_name,c.company_name,c.short_name,c.domain SELECT a.*,b.tenant_name,c.company_name,c.short_name,c.domain
FROM sys_plug a FROM sys_plug a
LEFT JOIN websoft_core.sys_tenant b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_tenant b ON a.tenant_id = b.tenant_id
LEFT JOIN websoft_core.sys_company c ON a.tenant_id = c.tenant_id LEFT JOIN gxwebsoft_core.sys_company c ON a.tenant_id = c.tenant_id
<where> <where>
<if test="param.plugId != null"> <if test="param.plugId != null">
AND a.plug_id = #{param.plugId} AND a.plug_id = #{param.plugId}

View File

@@ -9,7 +9,7 @@
<where> <where>
AND a.menu_id IN ( AND a.menu_id IN (
SELECT menu_id FROM sys_role_menu WHERE role_id IN ( SELECT menu_id FROM sys_role_menu WHERE role_id IN (
SELECT ta.role_id FROM sys_user_role ta LEFT JOIN websoft_core.sys_role tb ON ta.role_id = tb.role_id SELECT ta.role_id FROM sys_user_role ta LEFT JOIN gxwebsoft_core.sys_role tb ON ta.role_id = tb.role_id
WHERE ta.user_id = #{userId} AND tb.deleted = 0 WHERE ta.user_id = #{userId} AND tb.deleted = 0
) )
) )

View File

@@ -5,7 +5,7 @@
<!-- 关联查询sql --> <!-- 关联查询sql -->
<sql id="selectSql"> <sql id="selectSql">
SELECT a.* SELECT a.*
FROM websoft_core.sys_setting a FROM gxwebsoft_core.sys_setting a
<where> <where>
<if test="param.settingKey != null"> <if test="param.settingKey != null">
AND a.setting_key = #{param.settingKey} AND a.setting_key = #{param.settingKey}

View File

@@ -5,8 +5,8 @@
<!-- 性别字典查询sql --> <!-- 性别字典查询sql -->
<sql id="selectSexDictSql"> <sql id="selectSexDictSql">
SELECT ta.* SELECT ta.*
FROM websoft_core.sys_dictionary_data ta FROM gxwebsoft_core.sys_dictionary_data ta
LEFT JOIN websoft_core.sys_dictionary tb LEFT JOIN gxwebsoft_core.sys_dictionary tb
ON ta.dict_id = tb.dict_id ON ta.dict_id = tb.dict_id
AND tb.deleted = 0 AND tb.deleted = 0
WHERE ta.deleted = 0 WHERE ta.deleted = 0
@@ -17,8 +17,8 @@
<sql id="selectUserRoleSql"> <sql id="selectUserRoleSql">
SELECT a.user_id, SELECT a.user_id,
GROUP_CONCAT(b.role_name) role_name GROUP_CONCAT(b.role_name) role_name
FROM websoft_core.sys_user_role a FROM gxwebsoft_core.sys_user_role a
LEFT JOIN websoft_core.sys_role b ON a.role_id = b.role_id LEFT JOIN gxwebsoft_core.sys_role b ON a.role_id = b.role_id
GROUP BY a.user_id GROUP BY a.user_id
</sql> </sql>
@@ -28,15 +28,15 @@
c.dict_data_name sex_name, c.dict_data_name sex_name,
e.tenant_name, e.tenant_name,
h.dealer_id h.dealer_id
FROM websoft_core.sys_user a FROM gxwebsoft_core.sys_user a
LEFT JOIN ( LEFT JOIN (
<include refid="selectSexDictSql"/> <include refid="selectSexDictSql"/>
) c ON a.sex = c.dict_data_code ) c ON a.sex = c.dict_data_code
LEFT JOIN( LEFT JOIN(
<include refid="selectUserRoleSql"/> <include refid="selectUserRoleSql"/>
) d ON a.user_id = d.user_id ) d ON a.user_id = d.user_id
LEFT JOIN websoft_core.sys_tenant e ON a.tenant_id = e.tenant_id LEFT JOIN gxwebsoft_core.sys_tenant e ON a.tenant_id = e.tenant_id
LEFT JOIN websoft_core.sys_user_referee h ON a.user_id = h.user_id and h.deleted = 0 LEFT JOIN gxwebsoft_core.sys_user_referee h ON a.user_id = h.user_id and h.deleted = 0
<where> <where>
<if test="param.userId != null"> <if test="param.userId != null">
AND a.user_id = #{param.userId} AND a.user_id = #{param.userId}
@@ -164,7 +164,7 @@
<select id="selectByUsername" resultType="com.gxwebsoft.common.system.entity.User"> <select id="selectByUsername" resultType="com.gxwebsoft.common.system.entity.User">
SELECT a.* , SELECT a.* ,
c.dict_data_name sex_name,f.oauth_id as openid,f.unionid c.dict_data_name sex_name,f.oauth_id as openid,f.unionid
FROM websoft_core.sys_user a FROM gxwebsoft_core.sys_user a
LEFT JOIN ( LEFT JOIN (
<include refid="selectSexDictSql"/> <include refid="selectSexDictSql"/>
) c ON a.sex = c.dict_data_code ) c ON a.sex = c.dict_data_code
@@ -185,7 +185,7 @@
<!-- 根据手机号码查询 --> <!-- 根据手机号码查询 -->
<select id="selectByPhone" resultType="com.gxwebsoft.common.system.entity.User"> <select id="selectByPhone" resultType="com.gxwebsoft.common.system.entity.User">
SELECT a.* SELECT a.*
FROM websoft_core.sys_user a FROM gxwebsoft_core.sys_user a
<where> <where>
AND a.deleted = 0 AND a.deleted = 0
AND a.phone = #{phone} AND a.phone = #{phone}
@@ -201,7 +201,7 @@
<!-- 获取所有的邮政协会/管局工作人员 --> <!-- 获取所有的邮政协会/管局工作人员 -->
<select id="listByAlert" resultType="com.gxwebsoft.common.system.entity.User"> <select id="listByAlert" resultType="com.gxwebsoft.common.system.entity.User">
SELECT a.* SELECT a.*
FROM websoft_core.sys_user a FROM gxwebsoft_core.sys_user a
<where> <where>
AND a.deleted = 0 AND a.deleted = 0
AND a.organization_id = 420 OR a.organization_id = 421 AND a.organization_id = 420 OR a.organization_id = 421
@@ -216,13 +216,13 @@
<!-- 查询单条数据 --> <!-- 查询单条数据 -->
<select id="getOne" resultType="com.gxwebsoft.common.system.entity.User"> <select id="getOne" resultType="com.gxwebsoft.common.system.entity.User">
SELECT * FROM websoft_core.sys_user WHERE user_id = #{param.userId} and deleted = 0 SELECT * FROM gxwebsoft_core.sys_user WHERE user_id = #{param.userId} and deleted = 0
</select> </select>
<!-- 查询统计数据 --> <!-- 查询统计数据 -->
<select id="selectListStatisticsRel" resultType="com.gxwebsoft.common.system.entity.User"> <select id="selectListStatisticsRel" resultType="com.gxwebsoft.common.system.entity.User">
SELECT a.* SELECT a.*
FROM websoft_core.sys_user a FROM gxwebsoft_core.sys_user a
<where> <where>
AND a.deleted = 0 AND a.deleted = 0
</where> </where>
@@ -230,13 +230,13 @@
<!-- 更新用户信息 --> <!-- 更新用户信息 -->
<update id="updateByUserId"> <update id="updateByUserId">
UPDATE websoft_core.sys_user SET grade_id = #{param.gradeId} WHERE user_id = #{param.userId} UPDATE gxwebsoft_core.sys_user SET grade_id = #{param.gradeId} WHERE user_id = #{param.userId}
</update> </update>
<select id="pageAdminByPhone" resultType="com.gxwebsoft.common.system.entity.User"> <select id="pageAdminByPhone" resultType="com.gxwebsoft.common.system.entity.User">
SELECT a.*,b.tenant_name SELECT a.*,b.tenant_name
FROM websoft_core.sys_user a FROM gxwebsoft_core.sys_user a
LEFT JOIN websoft_core.sys_tenant b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_tenant b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.phone != null"> <if test="param.phone != null">
AND a.phone = #{param.phone} AND a.phone = #{param.phone}
@@ -251,11 +251,11 @@
c.dict_data_name sex_name, c.dict_data_name sex_name,
e.tenant_name, e.tenant_name,
h.dealer_id h.dealer_id
FROM gxwebsoft_core.sys_user a FROM gxgxwebsoft_core.sys_user a
LEFT JOIN ( LEFT JOIN (
<include refid="selectSexDictSql"/> <include refid="selectSexDictSql"/>
) c ON a.sex = c.dict_data_code ) c ON a.sex = c.dict_data_code
LEFT JOIN gxwebsoft_core.sys_tenant e ON a.tenant_id = e.tenant_id LEFT JOIN gxgxwebsoft_core.sys_tenant e ON a.tenant_id = e.tenant_id
LEFT JOIN gxwebsoft_core.sys_user_referee h ON a.user_id = h.user_id and h.deleted = 0 LEFT JOIN gxwebsoft_core.sys_user_referee h ON a.user_id = h.user_id and h.deleted = 0
WHERE a.user_id = #{userId} WHERE a.user_id = #{userId}
AND a.deleted = 0 AND a.deleted = 0

View File

@@ -24,7 +24,7 @@
<select id="selectByUserIds" resultType="com.gxwebsoft.common.system.entity.Role"> <select id="selectByUserIds" resultType="com.gxwebsoft.common.system.entity.Role">
SELECT a.user_id, b.* SELECT a.user_id, b.*
FROM sys_user_role a FROM sys_user_role a
LEFT JOIN websoft_core.sys_role b ON a.role_id = b.role_id LEFT JOIN gxwebsoft_core.sys_role b ON a.role_id = b.role_id
WHERE a.user_id IN WHERE a.user_id IN
<foreach collection="userIds" open="(" close=")" separator="," item="userId"> <foreach collection="userIds" open="(" close=")" separator="," item="userId">
#{userId} #{userId}

View File

@@ -7,7 +7,7 @@
SELECT a.*, b.name as carName,b.code as carNo, b.image as carAvatar, u.real_name as realName, u.nickname SELECT a.*, b.name as carName,b.code as carNo, b.image as carAvatar, u.real_name as realName, u.nickname
FROM hjm_bx_log a FROM hjm_bx_log a
LEFT JOIN hjm_car b ON a.car_id = b.id LEFT JOIN hjm_car b ON a.car_id = b.id
LEFT JOIN websoft_core.sys_user u ON a.user_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -8,10 +8,10 @@
f.comments as f.comments as
parentOrganizationAdmin, u.real_name as driver,u.phone as driverPhone parentOrganizationAdmin, u.real_name as driver,u.phone as driverPhone
FROM hjm_car a FROM hjm_car a
LEFT JOIN websoft_core.sys_organization b ON a.organization_id = b.organization_id LEFT JOIN gxwebsoft_core.sys_organization b ON a.organization_id = b.organization_id
LEFT JOIN websoft_core.sys_organization f ON a.organization_parent_id = f.organization_id LEFT JOIN gxwebsoft_core.sys_organization f ON a.organization_parent_id = f.organization_id
LEFT JOIN hjm_fence e ON a.fence_id = e.id LEFT JOIN hjm_fence e ON a.fence_id = e.id
LEFT JOIN websoft_core.sys_user u ON a.driver_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.driver_id = u.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}
@@ -124,10 +124,10 @@
f.comments as f.comments as
parentOrganizationAdmin, u.real_name as driver,u.phone as driverPhone parentOrganizationAdmin, u.real_name as driver,u.phone as driverPhone
FROM hjm_car a FROM hjm_car a
LEFT JOIN websoft_core.sys_organization b ON a.organization_id = b.organization_id LEFT JOIN gxwebsoft_core.sys_organization b ON a.organization_id = b.organization_id
LEFT JOIN websoft_core.sys_organization f ON a.organization_parent_id = f.organization_id LEFT JOIN gxwebsoft_core.sys_organization f ON a.organization_parent_id = f.organization_id
LEFT JOIN hjm_fence e ON a.fence_id = e.id LEFT JOIN hjm_fence e ON a.fence_id = e.id
LEFT JOIN websoft_core.sys_user u ON a.driver_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.driver_id = u.user_id
<where> <where>
<if test="code != null"> <if test="code != null">
AND a.code = #{code} AND a.code = #{code}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.nickname, b.phone, b.real_name SELECT a.*, b.nickname, b.phone, b.real_name
FROM hjm_exam_log a FROM hjm_exam_log a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -7,8 +7,8 @@
SELECT DISTINCT a.*,b.image SELECT DISTINCT a.*,b.image
FROM hjm_violation a FROM hjm_violation a
LEFT JOIN hjm_car b ON a.code = b.code LEFT JOIN hjm_car b ON a.code = b.code
LEFT JOIN websoft_core.sys_organization c ON b.organization_id = c.organization_id LEFT JOIN gxwebsoft_core.sys_organization c ON b.organization_id = c.organization_id
LEFT JOIN websoft_core.sys_organization f ON b.organization_parent_id = f.organization_id LEFT JOIN gxwebsoft_core.sys_organization f ON b.organization_parent_id = f.organization_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -7,7 +7,7 @@
SELECT a.*, SELECT a.*,
b.nickname,b.avatar,b.grade_id, b.phone as userPhone b.nickname,b.avatar,b.grade_id, b.phone as userPhone
FROM house_info a FROM house_info a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
<where> <where>
<if test="param.houseId != null"> <if test="param.houseId != null">
AND a.house_id = #{param.houseId} AND a.house_id = #{param.houseId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_code a FROM oa_assets_code a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_domain a FROM oa_assets_domain a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.domainId != null"> <if test="param.domainId != null">
AND a.domain_id = #{param.domainId} AND a.domain_id = #{param.domainId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_email a FROM oa_assets_email a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.emailId != null"> <if test="param.emailId != null">
AND a.email_id = #{param.emailId} AND a.email_id = #{param.emailId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets a FROM oa_assets a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.assetsId != null"> <if test="param.assetsId != null">
AND a.assets_id = #{param.assetsId} AND a.assets_id = #{param.assetsId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_mysql a FROM oa_assets_mysql a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.mysqlId != null"> <if test="param.mysqlId != null">
AND a.mysql_id = #{param.mysqlId} AND a.mysql_id = #{param.mysqlId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_site a FROM oa_assets_site a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.websiteId != null"> <if test="param.websiteId != null">
AND a.website_id = #{param.websiteId} AND a.website_id = #{param.websiteId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_software_cert a FROM oa_assets_software_cert a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_ssl a FROM oa_assets_ssl a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.sslId != null"> <if test="param.sslId != null">
AND a.ssl_id = #{param.sslId} AND a.ssl_id = #{param.sslId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_trademark a FROM oa_assets_trademark a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
FROM oa_assets_vhost a FROM oa_assets_vhost a
LEFT JOIN websoft_core.sys_company b ON a.tenant_id = b.tenant_id LEFT JOIN gxwebsoft_core.sys_company b ON a.tenant_id = b.tenant_id
<where> <where>
<if test="param.vhostId != null"> <if test="param.vhostId != null">
AND a.vhost_id = #{param.vhostId} AND a.vhost_id = #{param.vhostId}

View File

@@ -6,8 +6,8 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, u.real_name as realName, u.phone, u.avatar, dt.dict_data_name as invoiceTypeName SELECT a.*, u.real_name as realName, u.phone, u.avatar, dt.dict_data_name as invoiceTypeName
FROM pwl_project a FROM pwl_project a
LEFT JOIN websoft_core.sys_user u ON a.user_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
LEFT JOIN websoft_core.sys_dict_data dt ON a.invoice_type = dt.dict_data_id LEFT JOIN gxwebsoft_core.sys_dict_data dt ON a.invoice_type = dt.dict_data_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}
@@ -156,7 +156,7 @@
<!-- 查询全部 --> <!-- 查询全部 -->
<select id="listByCount" resultType="com.gxwebsoft.common.system.entity.User"> <select id="listByCount" resultType="com.gxwebsoft.common.system.entity.User">
SELECT * FROM websoft_core.sys_user WHERE deleted = 0 SELECT * FROM gxwebsoft_core.sys_user WHERE deleted = 0
</select> </select>

View File

@@ -7,8 +7,8 @@
SELECT a.*, b.nickname as formUserName, b.avatar as formUserAvatar, b.phone as formUserPhone, b.alias as formUserAlias, SELECT a.*, b.nickname as formUserName, b.avatar as formUserAvatar, b.phone as formUserPhone, b.alias as formUserAlias,
c.nickname as toUserName, c.avatar as toUserAvatar, c.phone as toUserPhone, c.alias as toUserAlias c.nickname as toUserName, c.avatar as toUserAvatar, c.phone as toUserPhone, c.alias as toUserAlias
FROM shop_chat_message a FROM shop_chat_message a
LEFT JOIN websoft_core.sys_user b ON a.form_user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.form_user_id = b.user_id
LEFT JOIN websoft_core.sys_user c ON a.to_user_id = c.user_id LEFT JOIN gxwebsoft_core.sys_user c ON a.to_user_id = c.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,8 +6,8 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.nickname as nickName, b.phone, c.nickname as refereeName, d.rate SELECT a.*, b.nickname as nickName, b.phone, c.nickname as refereeName, d.rate
FROM shop_dealer_apply a FROM shop_dealer_apply a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
LEFT JOIN websoft_core.sys_user c ON a.referee_id = c.user_id LEFT JOIN gxwebsoft_core.sys_user c ON a.referee_id = c.user_id
LEFT JOIN shop_dealer_user d ON a.user_id = d.user_id LEFT JOIN shop_dealer_user d ON a.user_id = d.user_id
<where> <where>
<if test="param.applyId != null"> <if test="param.applyId != null">

View File

@@ -6,10 +6,10 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.nickname, c.nickname AS firstNickname, d.nickname AS secondNickname, e.nickname AS thirdNickname, f.rate, f.price SELECT a.*, b.nickname, c.nickname AS firstNickname, d.nickname AS secondNickname, e.nickname AS thirdNickname, f.rate, f.price
FROM shop_dealer_order a FROM shop_dealer_order a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
LEFT JOIN websoft_core.sys_user c ON a.first_user_id = c.user_id LEFT JOIN gxwebsoft_core.sys_user c ON a.first_user_id = c.user_id
LEFT JOIN websoft_core.sys_user d ON a.second_user_id = d.user_id LEFT JOIN gxwebsoft_core.sys_user d ON a.second_user_id = d.user_id
LEFT JOIN websoft_core.sys_user e ON a.third_user_id = e.user_id LEFT JOIN gxwebsoft_core.sys_user e ON a.third_user_id = e.user_id
LEFT JOIN shop_dealer_user f ON a.user_id = f.user_id LEFT JOIN shop_dealer_user f ON a.user_id = f.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">

View File

@@ -13,8 +13,8 @@
u.alias, u.alias,
u.phone u.phone
FROM shop_dealer_referee a FROM shop_dealer_referee a
INNER JOIN websoft_core.sys_user d ON a.dealer_id = d.user_id AND d.deleted = 0 INNER JOIN gxwebsoft_core.sys_user d ON a.dealer_id = d.user_id AND d.deleted = 0
INNER JOIN websoft_core.sys_user u ON a.user_id = u.user_id AND u.deleted = 0 INNER JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND u.deleted = 0
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.openid SELECT a.*, b.openid
FROM shop_dealer_user a FROM shop_dealer_user a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,8 +6,8 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, b.nickname, b.phone AS phone, b.avatar, c.real_name as realName SELECT a.*, b.nickname, b.phone AS phone, b.avatar, c.real_name as realName
FROM shop_dealer_withdraw a FROM shop_dealer_withdraw a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
LEFT JOIN websoft_core.sys_user_verify c ON a.user_id = c.user_id AND c.status = 1 LEFT JOIN gxwebsoft_core.sys_user_verify c ON a.user_id = c.user_id AND c.status = 1
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -7,8 +7,8 @@
SELECT a.*,b.name as goodsName, b.price as faceValue, b.image as goodsImage,c.nickname, u.nickname as operatorUserName SELECT a.*,b.name as goodsName, b.price as faceValue, b.image as goodsImage,c.nickname, u.nickname as operatorUserName
FROM shop_gift a FROM shop_gift a
LEFT JOIN shop_goods b ON a.goods_id = b.goods_id LEFT JOIN shop_goods b ON a.goods_id = b.goods_id
LEFT JOIN websoft_core.sys_user c ON a.user_id = c.user_id LEFT JOIN gxwebsoft_core.sys_user c ON a.user_id = c.user_id
LEFT JOIN websoft_core.sys_user u ON a.operator_user_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.operator_user_id = u.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*,b.nickname, b.avatar,b.phone as phone SELECT a.*,b.nickname, b.avatar,b.phone as phone
FROM shop_order a FROM shop_order a
LEFT JOIN websoft_core.sys_user b ON a.user_id = b.user_id LEFT JOIN gxwebsoft_core.sys_user b ON a.user_id = b.user_id
<where> <where>
<if test="param.orderId != null"> <if test="param.orderId != null">
AND a.order_id = #{param.orderId} AND a.order_id = #{param.orderId}

View File

@@ -12,8 +12,8 @@
u.avatar, u.avatar,
u.phone u.phone
FROM shop_user_referee a FROM shop_user_referee a
LEFT JOIN websoft_core.sys_user d ON a.dealer_id = d.user_id LEFT JOIN gxwebsoft_core.sys_user d ON a.dealer_id = d.user_id
LEFT JOIN websoft_core.sys_user u ON a.user_id = u.user_id LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
<where> <where>
<if test="param.id != null"> <if test="param.id != null">
AND a.id = #{param.id} AND a.id = #{param.id}

View File

@@ -3,9 +3,9 @@
# 数据源配置 # 数据源配置
spring: spring:
datasource: datasource:
url: jdbc:mysql://47.121.133.163:3308/mp?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai url: jdbc:mysql://8.134.169.209:13306/modules?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: mp username: modules
password: BzDa2dzMACYjnsRD password: P7KsAyDXG8YdLnkA
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
druid: druid:
@@ -14,8 +14,8 @@ spring:
# redis # redis
redis: redis:
database: 0 database: 0
host: 8.134.169.209 host: 1Panel-redis-Q1LE
port: 16379 port: 6379
password: redis_WSDb88 password: redis_WSDb88
# 日志配置 # 日志配置