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

View File

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

View File

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

View File

@@ -8,7 +8,7 @@
FROM bszx_bm a
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 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>
<if test="param.id != null">
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
FROM bszx_pay a
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.nickname, b.phone, c.real_name as doctorName, c.position as doctorPosition
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
<where>
<if test="param.id != null">

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.nickname, b.phone, b.avatar
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.phone, b.avatar
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

@@ -8,7 +8,7 @@
FROM cms_article a
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 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>
<if test="param.articleId != null">
AND a.article_id = #{param.articleId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.tenant_name as tenantName
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>
<if test="param.websiteId != null">
AND a.website_id = #{param.websiteId}
@@ -180,7 +180,7 @@
<select id="getByTenantId" resultType="com.gxwebsoft.cms.entity.CmsWebsite">
SELECT a.*, b.tenant_name as tenantName
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>
<if test="tenantId != null">
AND a.tenant_id = #{tenantId}
@@ -287,7 +287,7 @@
SELECT a.*,b.app_id, u.phone as superAdminPhone
FROM cms_website a
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>
<if test="param.websiteId != null">
AND a.website_id = #{param.websiteId}

View File

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

View File

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

View File

@@ -8,7 +8,7 @@
b.dict_code,
b.dict_name
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>
AND a.deleted = 0
<if test="param.dictDataId != null">
@@ -63,7 +63,7 @@
b.dict_code,
b.dict_name
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}
AND b.dict_code = #{dictCode}
</select>

View File

@@ -10,7 +10,7 @@
b.avatar,
c.merchant_code
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
<where>
<if test="param.id != null">

View File

@@ -8,7 +8,7 @@
b.user_id,
b.nickname
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

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

View File

@@ -6,7 +6,7 @@
<sql id="selectOrgTypeDictSql">
SELECT 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
AND tb.deleted = 0
WHERE ta.deleted = 0
@@ -23,7 +23,7 @@
LEFT JOIN (
<include refid="selectOrgTypeDictSql"/>
) 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>
AND a.deleted = 0
<if test="param.organizationId != null">

View File

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

View File

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

View File

@@ -9,7 +9,7 @@
<where>
AND a.menu_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
)
)

View File

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

View File

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

View File

@@ -24,7 +24,7 @@
<select id="selectByUserIds" resultType="com.gxwebsoft.common.system.entity.Role">
SELECT a.user_id, b.*
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
<foreach collection="userIds" open="(" close=")" separator="," item="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
FROM hjm_bx_log a
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

@@ -8,10 +8,10 @@
f.comments as
parentOrganizationAdmin, u.real_name as driver,u.phone as driverPhone
FROM hjm_car a
LEFT JOIN websoft_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 b ON a.organization_id = b.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 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>
<if test="param.id != null">
AND a.id = #{param.id}
@@ -124,10 +124,10 @@
f.comments as
parentOrganizationAdmin, u.real_name as driver,u.phone as driverPhone
FROM hjm_car a
LEFT JOIN websoft_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 b ON a.organization_id = b.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 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>
<if test="code != null">
AND a.code = #{code}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.nickname, b.phone, b.real_name
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

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

View File

@@ -7,7 +7,7 @@
SELECT a.*,
b.nickname,b.avatar,b.grade_id, b.phone as userPhone
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>
<if test="param.houseId != null">
AND a.house_id = #{param.houseId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.domainId != null">
AND a.domain_id = #{param.domainId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.emailId != null">
AND a.email_id = #{param.emailId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.assetsId != null">
AND a.assets_id = #{param.assetsId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.mysqlId != null">
AND a.mysql_id = #{param.mysqlId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.websiteId != null">
AND a.website_id = #{param.websiteId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.sslId != null">
AND a.ssl_id = #{param.sslId}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.short_name AS tenantName,b.company_logo as logo
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>
<if test="param.vhostId != null">
AND a.vhost_id = #{param.vhostId}

View File

@@ -6,8 +6,8 @@
<sql id="selectSql">
SELECT a.*, u.real_name as realName, u.phone, u.avatar, dt.dict_data_name as invoiceTypeName
FROM pwl_project a
LEFT JOIN websoft_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_user u ON a.user_id = u.user_id
LEFT JOIN gxwebsoft_core.sys_dict_data dt ON a.invoice_type = dt.dict_data_id
<where>
<if test="param.id != null">
AND a.id = #{param.id}
@@ -156,7 +156,7 @@
<!-- 查询全部 -->
<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>

View File

@@ -7,8 +7,8 @@
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
FROM shop_chat_message a
LEFT JOIN websoft_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 b ON a.form_user_id = b.user_id
LEFT JOIN gxwebsoft_core.sys_user c ON a.to_user_id = c.user_id
<where>
<if test="param.id != null">
AND a.id = #{param.id}

View File

@@ -6,8 +6,8 @@
<sql id="selectSql">
SELECT a.*, b.nickname as nickName, b.phone, c.nickname as refereeName, d.rate
FROM shop_dealer_apply a
LEFT JOIN websoft_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 b ON a.user_id = b.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
<where>
<if test="param.applyId != null">

View File

@@ -6,10 +6,10 @@
<sql id="selectSql">
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
LEFT JOIN websoft_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 websoft_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 b ON a.user_id = b.user_id
LEFT JOIN gxwebsoft_core.sys_user c ON a.first_user_id = c.user_id
LEFT JOIN gxwebsoft_core.sys_user d ON a.second_user_id = d.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
<where>
<if test="param.id != null">

View File

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

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*, b.openid
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>
<if test="param.id != null">
AND a.id = #{param.id}

View File

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

View File

@@ -6,7 +6,7 @@
<sql id="selectSql">
SELECT a.*,b.nickname, b.avatar,b.phone as phone
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>
<if test="param.orderId != null">
AND a.order_id = #{param.orderId}

View File

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

View File

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