常量
12114常量总览
_constant结构
CREATE TABLE `_constant` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`constantKey` varchar(255) DEFAULT NULL,
`constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',
`desc` varchar(255) DEFAULT NULL COMMENT '描述',
`constantValue` text COMMENT '常量内容; object, array',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表; 软删除未启用;'
_constant 表数据
跟进状态描述
constantKey:followUpStatusList
constantType:json
["新记录","电话无效","电话有效","无意向","有意向,已报名","已通知面试时间","已通知面试结果"]
跟进代理人
constantKey:followUpUsers
constantType:json
[{"followUpByUserId": "L00001", "followUpByUserName": "刘老师"},{"followUpByUserId": "E4J", "followUpByUserName": "赵六"},{"followUpByUserId": "W00002", "followUpByUserName": "张无忌"}]
null
constantKey:followUpStage
constantType:arrat
["跟进中", "校长审核"]
科目
constantKey:subject
constantType:array
[
{
"value": "语文",
"text": "语文",
"sortOrder": "01",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "数学",
"text": "数学",
"sortOrder": "02",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "英语",
"text": "英语",
"sortOrder": "03",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "物理",
"text": "物理",
"sortOrder": "04",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "化学",
"text": "化学",
"sortOrder": "05",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "生物",
"text": "生物",
"sortOrder": "06",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "政治",
"text": "政治",
"sortOrder": "07",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "历史",
"text": "历史",
"sortOrder": "08",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "地理",
"text": "地理",
"sortOrder": "09",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "日语",
"text": "日语",
"sortOrder": "10",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "地生",
"text": "地生",
"sortOrder": "11",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "体育",
"text": "体育",
"sortOrder": "12",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "书法",
"text": "书法",
"sortOrder": "12",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "理科综合",
"text": "理科综合",
"sortOrder": "13",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "文科综合",
"text": "文科综合",
"sortOrder": "14",
"relatedSubject": "无",
"type": "默认",
"isDisplay": "是",
"isExam": "是"
},
{
"value": "信息技术",
"text": "信息技术",
"sortOrder": "15",
"relatedSubject": "无",
"type": "辅课",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "通用技术",
"text": "通用技术",
"sortOrder": "16",
"relatedSubject": "无",
"type": "辅课",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "体育",
"text": "体育",
"sortOrder": "17",
"relatedSubject": "无",
"type": "辅课",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "美术",
"text": "美术",
"sortOrder": "18",
"relatedSubject": "无",
"type": "辅课",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "音乐",
"text": "音乐",
"sortOrder": "19",
"relatedSubject": "无",
"type": "辅课",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "历史与社会",
"text": "历史与社会",
"sortOrder": "20",
"relatedSubject": "无",
"type": "辅课",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "道德与法治",
"text": "道德与法治",
"sortOrder": "21",
"relatedSubject": "无",
"type": "辅课",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "科学",
"text": "科学",
"sortOrder": "22",
"relatedSubject": "无",
"type": "辅课",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "俄语",
"text": "俄语",
"sortOrder": "23",
"relatedSubject": "无",
"type": "小语种",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "韩语",
"text": "韩语",
"sortOrder": "24",
"relatedSubject": "无",
"type": "小语种",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "法语",
"text": "法语",
"sortOrder": "25",
"relatedSubject": "无",
"type": "小语种",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "德语",
"text": "德语",
"sortOrder": "26",
"relatedSubject": "无",
"type": "小语种",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "西班牙语",
"text": "西班牙语",
"sortOrder": "27",
"relatedSubject": "无",
"type": "小语种",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "藏文",
"text": "藏文",
"sortOrder": "28",
"relatedSubject": "无",
"type": "小语种",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "科学基础",
"text": "科学基础",
"sortOrder": "29",
"relatedSubject": "无",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "人文基础",
"text": "人文基础",
"sortOrder": "30",
"relatedSubject": "无",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "生物1",
"text": "生物1",
"sortOrder": "31",
"relatedSubject": "生物",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "化学1",
"text": "化学1",
"sortOrder": "32",
"relatedSubject": "化学",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "生物2",
"text": "生物2",
"sortOrder": "33",
"relatedSubject": "生物",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "化学2",
"text": "化学2",
"sortOrder": "34",
"relatedSubject": "化学",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "数学文科",
"text": "数学文科",
"sortOrder": "35",
"relatedSubject": "数学",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "化学重点班",
"text": "化学重点班",
"sortOrder": "36",
"relatedSubject": "化学",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
},
{
"value": "物理重点班",
"text": "物理重点班",
"sortOrder": "37",
"relatedSubject": "物理",
"type": "自定义",
"isDisplay": "是",
"isExam": "否"
}
]
学部
constantKey:segment
constantType:array
[
"小学",
"初中",
"高中"
]
学期
constantKey:semester
constantType:array
[
"2024春季",
"2023秋季"
]
年级列表
constantKey:level
constantType:array
[
{
"value": "01",
"text": "一年级"
},
{
"value": "02",
"text": "二年级"
},
{
"value": "03",
"text": "三年级"
},
{
"value": "04",
"text": "四年级"
},
{
"value": "05",
"text": "五年级"
},
{
"value": "06",
"text": "六年级"
},
{
"value": "07",
"text": "七年级"
},
{
"value": "08",
"text": "八年级"
},
{
"value": "09",
"text": "九年级"
},
{
"value": "10",
"text": "高一"
},
{
"value": "11",
"text": "高二"
},
{
"value": "12",
"text": "高三"
}
]
入托模式
constantKey:afterSchoolCareType
constantType:array
[
{
"value": "日托",
"text": "日托"
},
{
"value": "周托",
"text": "周托"
},
{
"value": "半月托",
"text": "半月托"
},
{
"value": "月托",
"text": "月托"
}
]
_constant语句
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (1, 'followUpStatusList', 'json', '跟进状态描述', '["新记录","电话无效","电话有效","无意向","有意向,已报名","已通知面试时间","已通知面试结果"]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (3, 'followUpUsers', 'json', '跟进代理人', '[{"followUpByUserId": "L00001", "followUpByUserName": "刘老师"},{"followUpByUserId": "E4J", "followUpByUserName": "赵六"},{"followUpByUserId": "W00002", "followUpByUserName": "张无忌"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (4, 'followUpStage', 'arrat', NULL, '["跟进中", "校长审核"]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (5, 'subject', 'array', '科目', '[
{"value":"语文","text":"语文","sortOrder":"01","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"数学","text":"数学","sortOrder":"02","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"英语","text":"英语","sortOrder":"03","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"物理","text":"物理","sortOrder":"04","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"化学","text":"化学","sortOrder":"05","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"生物","text":"生物","sortOrder":"06","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"政治","text":"政治","sortOrder":"07","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"历史","text":"历史","sortOrder":"08","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"地理","text":"地理","sortOrder":"09","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"日语","text":"日语","sortOrder":"10","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"地生","text":"地生","sortOrder":"11","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"体育","text":"体育","sortOrder":"12","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"书法","text":"书法","sortOrder":"12","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"理科综合","text":"理科综合","sortOrder":"13","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"文科综合","text":"文科综合","sortOrder":"14","relatedSubject":"无","type":"默认","isDisplay":"是","isExam":"是"},
{"value":"信息技术","text":"信息技术","sortOrder":"15","relatedSubject":"无","type":"辅课","isDisplay":"是","isExam":"否"},
{"value":"通用技术","text":"通用技术","sortOrder":"16","relatedSubject":"无","type":"辅课","isDisplay":"是","isExam":"否"},
{"value":"体育","text":"体育","sortOrder":"17","relatedSubject":"无","type":"辅课","isDisplay":"是","isExam":"否"},
{"value":"美术","text":"美术","sortOrder":"18","relatedSubject":"无","type":"辅课","isDisplay":"是","isExam":"否"},
{"value":"音乐","text":"音乐","sortOrder":"19","relatedSubject":"无","type":"辅课","isDisplay":"是","isExam":"否"},
{"value":"历史与社会","text":"历史与社会","sortOrder":"20","relatedSubject":"无","type":"辅课","isDisplay":"是","isExam":"否"},
{"value":"道德与法治","text":"道德与法治","sortOrder":"21","relatedSubject":"无","type":"辅课","isDisplay":"是","isExam":"否"},
{"value":"科学","text":"科学","sortOrder":"22","relatedSubject":"无","type":"辅课","isDisplay":"是","isExam":"否"},
{"value":"俄语","text":"俄语","sortOrder":"23","relatedSubject":"无","type":"小语种","isDisplay":"是","isExam":"否"},
{"value":"韩语","text":"韩语","sortOrder":"24","relatedSubject":"无","type":"小语种","isDisplay":"是","isExam":"否"},
{"value":"法语","text":"法语","sortOrder":"25","relatedSubject":"无","type":"小语种","isDisplay":"是","isExam":"否"},
{"value":"德语","text":"德语","sortOrder":"26","relatedSubject":"无","type":"小语种","isDisplay":"是","isExam":"否"},
{"value":"西班牙语","text":"西班牙语","sortOrder":"27","relatedSubject":"无","type":"小语种","isDisplay":"是","isExam":"否"},
{"value":"藏文","text":"藏文","sortOrder":"28","relatedSubject":"无","type":"小语种","isDisplay":"是","isExam":"否"},
{"value":"科学基础","text":"科学基础","sortOrder":"29","relatedSubject":"无","type":"自定义","isDisplay":"是","isExam":"否"},
{"value":"人文基础","text":"人文基础","sortOrder":"30","relatedSubject":"无","type":"自定义","isDisplay":"是","isExam":"否"},
{"value":"生物1","text":"生物1","sortOrder":"31","relatedSubject":"生物","type":"自定义","isDisplay":"是","isExam":"否"},
{"value":"化学1","text":"化学1","sortOrder":"32","relatedSubject":"化学","type":"自定义","isDisplay":"是","isExam":"否"},
{"value":"生物2","text":"生物2","sortOrder":"33","relatedSubject":"生物","type":"自定义","isDisplay":"是","isExam":"否"},
{"value":"化学2","text":"化学2","sortOrder":"34","relatedSubject":"化学","type":"自定义","isDisplay":"是","isExam":"否"},
{"value":"数学文科","text":"数学文科","sortOrder":"35","relatedSubject":"数学","type":"自定义","isDisplay":"是","isExam":"否"},
{"value":"化学重点班","text":"化学重点班","sortOrder":"36","relatedSubject":"化学","type":"自定义","isDisplay":"是","isExam":"否"},
{"value":"物理重点班","text":"物理重点班","sortOrder":"37","relatedSubject":"物理","type":"自定义","isDisplay":"是","isExam":"否"}
]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (6, 'segment', 'array', '学部', '["小学", "初中", "高中"]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (7, 'semester', 'array', '学期', '["2024春季", "2023秋季"]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (8, 'level', 'array', '年级列表', '[{"value":"01","text":"一年级"},{"value": "02","text": "二年级"},{"value":"03","text":"三年级"},{"value": "04","text": "四年级"},{"value": "05","text": "五年级"},{"value": "06","text": "六年级"},{"value": "07","text": "七年级"},{"value": "08","text": "八年级"},{"value": "09","text": "九年级"},{"value": "10","text": "高一"},{"value": "11","text": "高二"},{"value": "12","text": "高三"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (9, 'afterSchoolCareType', 'array', '入托模式', '[
{ "value": "日托", "text": "日托" },
{ "value": "周托", "text": "周托" },
{ "value": "半月托", "text": "半月托" },
{ "value": "月托", "text": "月托" }
]', 'insert', NULL, NULL, NULL);