wuzhen 20250723提交
This commit is contained in:
1 parent
609371ed82
commit
cc03e81f49
117 files changed
+76654
-1889
No files matched your search
@@ -0,0 +1,17 @@
|
||||
-- 添加缴费状态字典类型和字典数据
|
||||
-- 执行时间:2025-07-22
|
||||
|
||||
-- 1. 添加字典类型
|
||||
INSERT INTO sys_dict_type (dict_id, dict_name, dict_type, create_by, create_time, update_by, update_time, remark)
|
||||
VALUES (1001, '缴费状态', 'zsjy_payment_status', 1, NOW(), NULL, NULL, '招生缴费状态选项');
|
||||
|
||||
-- 2. 添加字典数据
|
||||
INSERT INTO sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_by, create_time, update_by, update_time, remark)
|
||||
VALUES
|
||||
(2001, 1, '未缴费', '0', 'zsjy_payment_status', '', 'warning', 'Y', 1, NOW(), NULL, NULL, '未缴费状态'),
|
||||
(2002, 2, '已缴费', '1', 'zsjy_payment_status', '', 'success', 'N', 1, NOW(), NULL, NULL, '已缴费状态');
|
||||
|
||||
-- 3. 更新现有数据,确保所有为NULL的缴费状态都设置为'0'(未缴费)
|
||||
UPDATE zsjy_enrollment_process
|
||||
SET payment_status = '0'
|
||||
WHERE payment_status IS NULL OR payment_status = '';
|
||||
Reference in new issue
Block a user