更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-30
View File
@@ -1,26 +1,6 @@
-- =============================================================
-- 租户端数据字典 —— 初始数据(系统内置,全局共享)
--
-- 表:yz_backend_dict / yz_backend_dict_item(建表见 create_dict.sql)
--
-- 重要:本文件写入的是 tenant_id = '0' 的「全局内置字典」,与 yz_system_admin_role
-- 中 tenant_id=0 的全局租户角色同一套约定:
-- - 所有租户都能通过 /backend/dict/options/:code 读到;
-- - 租户若需要改动,请按相同 dict_code 新建一份自己的字典(读接口优先取租户自己的,
-- 字典管理页里全局字典显示为「内置」只读)。
--
-- 内容来源:backend 前端散落的硬编码映射,其中 CRM 部分取自 views/apps/crm/dict.js。
-- 幂等:字典按 (tenant_id='0', dict_code) 判重,字典项按 (dict_id, item_value) 判重,可重复执行。
-- 说明:未给出标签色的字典项 tag_type 留空,可在「系统设置 → 数据字典」里按需补。
-- =============================================================
SET NAMES utf8mb4;
-- =============================================================
-- 1. 字典列表(全局内置)
-- =============================================================
INSERT INTO `yz_backend_dict` (`tenant_id`, `dict_name`, `dict_code`, `remark`, `sort`, `status`, `create_user_id`, `create_time`)
SELECT '0', t.dict_name, t.dict_code, t.remark, t.sort, 1, 'sql', NOW()
FROM (
@@ -108,11 +88,6 @@ WHERE NOT EXISTS (
WHERE d.tenant_id = '0' AND d.dict_code = t.dict_code AND d.delete_time IS NULL
);
-- =============================================================
-- 2. 字典项(全局内置)
-- =============================================================
INSERT INTO `yz_backend_dict_item` (`tenant_id`, `dict_id`, `item_label`, `item_value`, `tag_type`, `sort`, `status`, `is_default`, `create_time`)
SELECT '0', d.id, t.item_label, t.item_value, t.tag_type, t.sort, 1, 0, NOW()
FROM (
@@ -435,11 +410,6 @@ WHERE NOT EXISTS (
WHERE i.dict_id = d.id AND i.item_value = t.item_value AND i.delete_time IS NULL
);
-- =============================================================
-- 3. 校验
-- =============================================================
SELECT d.dict_name, d.dict_code, COUNT(i.id) AS item_count
FROM `yz_backend_dict` d
LEFT JOIN `yz_backend_dict_item` i ON i.dict_id = d.id AND i.delete_time IS NULL