changelog: 研学收获分类字典 study_gain_category

这个提交包含在:
API Changelog Bot 2026-03-27 11:32:43 +08:00
父节点 202106308b
当前提交 2cce177398

查看文件

@ -0,0 +1,42 @@
# 2026-03-27 研学收获分类字典
## 新增字典
**字典类型**`study_gain_category`(研学收获分类)
前端在"研学收获"管理中使用此字典渲染分类下拉,与安全保障的分类下拉用法一致。
### 字典数据
| dict_value | dict_label |
|------------|------------|
| horsemanship | 马术体验 |
| stargazing | 星空学堂 |
| music | 蒙古音乐 |
| ecology | 草原生态 |
| dairy_diy | 奶制品DIY |
| certificate | 研学证书 |
| folk_culture | 民俗文化 |
| nature_explore | 自然探索 |
| handicraft | 手工制作 |
| history | 历史人文 |
## 测试环境待执行SQL
```sql
-- 如果type不存在则插入
INSERT IGNORE INTO sys_dict_type (dict_type_id, dict_name, dict_type, category, status, created_at, updated_at)
VALUES (8060, '研学收获分类', 'study_gain_category', 'BUSINESS', 'ACTIVE', NOW(), NOW());
INSERT INTO sys_dict_data (dict_data_id, dict_type, dict_label, dict_value, sort_order, status, remark, created_at, updated_at) VALUES
(80611, 'study_gain_category', '马术体验', 'horsemanship', 1, 'ACTIVE', 'success', NOW(), NOW()),
(80612, 'study_gain_category', '星空学堂', 'stargazing', 2, 'ACTIVE', 'info', NOW(), NOW()),
(80613, 'study_gain_category', '蒙古音乐', 'music', 3, 'ACTIVE', 'warning', NOW(), NOW()),
(80614, 'study_gain_category', '草原生态', 'ecology', 4, 'ACTIVE', 'success', NOW(), NOW()),
(80615, 'study_gain_category', '奶制品DIY', 'dairy_diy', 5, 'ACTIVE', 'info', NOW(), NOW()),
(80616, 'study_gain_category', '研学证书', 'certificate', 6, 'ACTIVE', 'warning', NOW(), NOW()),
(80617, 'study_gain_category', '民俗文化', 'folk_culture', 7, 'ACTIVE', 'success', NOW(), NOW()),
(80618, 'study_gain_category', '自然探索', 'nature_explore', 8, 'ACTIVE', 'info', NOW(), NOW()),
(80619, 'study_gain_category', '手工制作', 'handicraft', 9, 'ACTIVE', 'warning', NOW(), NOW()),
(80620, 'study_gain_category', '历史人文', 'history', 10, 'ACTIVE', 'success', NOW(), NOW());
```