常量
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 = 30 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表; 软删除未启用;'
_constant 表数据
学年列表
constantKey:academicYear
constantType:array
[
{
"value": "2022",
"text": "2022学年"
},
{
"value": "2023",
"text": "2023学年"
},
{
"value": "2024",
"text": "2024学年"
},
{
"value": "2025",
"text": "2025学年"
},
{
"value": "2026",
"text": "2026学年"
},
{
"value": "2027",
"text": "2027学年"
},
{
"value": "2028",
"text": "2028学年"
},
{
"value": "2029",
"text": "2029学年"
},
{
"value": "2030",
"text": "2030学年"
}
]
学期列表
constantKey:semester
constantType:array
[
{
"value": "秋季",
"text": "秋季"
},
{
"value": "春季",
"text": "春季"
}
]
学部列表
constantKey:segment
constantType:object
[
{
"value": "小学",
"text": "小学"
},
{
"value": "初中",
"text": "初中"
},
{
"value": "高中",
"text": "高中"
}
]
年级列表
constantKey:level
constantType:object
[
{
"value": "01",
"text": "一年级",
"segment": "小学"
},
{
"value": "02",
"text": "二年级",
"segment": "小学"
},
{
"value": "03",
"text": "三年级",
"segment": "小学"
},
{
"value": "04",
"text": "四年级",
"segment": "小学"
},
{
"value": "05",
"text": "五年级",
"segment": "小学"
},
{
"value": "06",
"text": "六年级",
"segment": "小学"
},
{
"value": "07",
"text": "七年级",
"segment": "初中"
},
{
"value": "08",
"text": "八年级",
"segment": "初中"
},
{
"value": "09",
"text": "九年级",
"segment": "初中"
},
{
"value": "10",
"text": "高一",
"segment": "高中"
},
{
"value": "11",
"text": "高二",
"segment": "高中"
},
{
"value": "12",
"text": "高三",
"segment": "高中"
}
]
托管类型
constantKey:afterSchoolCareType
constantType:object
[
{
"value": "日托",
"text": "日托"
},
{
"value": "周托",
"text": "周托"
},
{
"value": "半月托",
"text": "半月托"
},
{
"value": "月托",
"text": "月托"
}
]
新生/老生
constantKey:freshmanOrReturning
constantType:object
[
{
"value": "新生",
"text": "新生"
},
{
"value": "老生",
"text": "老生"
}
]
缴费项目
constantKey:paymentItem
constantType:object
[
{
"value": "学费",
"text": "学费"
},
{
"value": "住宿",
"text": "住宿"
},
{
"value": "伙食",
"text": "伙食"
},
{
"value": "校服",
"text": "校服"
},
{
"value": "床上用品",
"text": "床上用品"
},
{
"value": "保险",
"text": "保险"
},
{
"value": "家校通",
"text": "家校通"
},
{
"value": "课本资料",
"text": "课本资料"
}
]
缴费规则配置
constantKey:paymentConfig
constantType:object
[
{
"segment": "小学",
"afterSchoolCareType": "日托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "5400"
},
{
"item": "住宿",
"amount": "600"
},
{
"item": "伙食",
"amount": "2000"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "日托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "5400"
},
{
"item": "住宿",
"amount": "600"
},
{
"item": "伙食",
"amount": "2000"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "周托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "5400"
},
{
"item": "住宿",
"amount": "1000"
},
{
"item": "伙食",
"amount": "2400"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "周托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "5400"
},
{
"item": "住宿",
"amount": "1000"
},
{
"item": "伙食",
"amount": "2400"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "6000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3000"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "6000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3000"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "初中",
"afterSchoolCareType": "半月托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "6400"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3000"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "初中",
"afterSchoolCareType": "半月托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "6400"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3000"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "初中",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "7000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3400"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "初中",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "7000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3400"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "高中",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "9000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3400"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
},
{
"item": "课本资料",
"amount": "1200"
}
]
},
{
"segment": "高中",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "9000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3400"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
},
{
"item": "课本资料",
"amount": "1200"
}
]
}
]
缴费类型
constantKey:paymentType
constantType:object
[
{
"value": "学费",
"text": "学费"
}
]
年级列表
constantKey:level
constantType:object
[
{
"value": "01",
"text": "一年级",
"segment": "小学"
},
{
"value": "02",
"text": "二年级",
"segment": "小学"
},
{
"value": "03",
"text": "三年级",
"segment": "小学"
},
{
"value": "04",
"text": "四年级",
"segment": "小学"
},
{
"value": "05",
"text": "五年级",
"segment": "小学"
},
{
"value": "06",
"text": "六年级",
"segment": "小学"
},
{
"value": "07",
"text": "七年级",
"segment": "初中"
},
{
"value": "08",
"text": "八年级",
"segment": "初中"
},
{
"value": "09",
"text": "九年级",
"segment": "初中"
},
{
"value": "10",
"text": "高一",
"segment": "高中"
},
{
"value": "11",
"text": "高二",
"segment": "高中"
},
{
"value": "12",
"text": "高三",
"segment": "高中"
}
]
班号
constantKey:number
constantType:array
[
{
"value": "00",
"text": "待分班"
},
{
"value": "01",
"text": "01班"
},
{
"value": "02",
"text": "02班"
},
{
"value": "03",
"text": "03班"
},
{
"value": "04",
"text": "04班"
},
{
"value": "05",
"text": "05班"
},
{
"value": "06",
"text": "06班"
},
{
"value": "07",
"text": "07班"
},
{
"value": "08",
"text": "08班"
},
{
"value": "09",
"text": "09班"
},
{
"value": "10",
"text": "10班"
},
{
"value": "11",
"text": "11班"
},
{
"value": "12",
"text": "12班"
},
{
"value": "13",
"text": "13班"
},
{
"value": "14",
"text": "14班"
},
{
"value": "15",
"text": "15班"
},
{
"value": "16",
"text": "16班"
},
{
"value": "17",
"text": "17班"
},
{
"value": "18",
"text": "18班"
},
{
"value": "19",
"text": "19班"
},
{
"value": "20",
"text": "20班"
}
]
当前学年学期
constantKey:currentSemester
constantType:object
{
"year": 2023,
"semester": "秋季"
}
_constant语句
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (5, 'academicYear', 'array', '学年列表', '[{"value":"2022","text":"2022学年"},{"value": "2023","text": "2023学年"},{"value":"2024","text":"2024学年"},{"value": "2025","text": "2025学年"},{"value": "2026","text": "2026学年"},{"value": "2027","text": "2027学年"},{"value": "2028","text": "2028学年"},{"value": "2029","text": "2029学年"},{"value": "2030","text": "2030学年"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (6, 'semester', 'array', '学期列表', '[{"value":"秋季","text":"秋季"},{"value": "春季","text": "春季"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (8, 'segment', 'object', '学部列表', '[{"value":"小学","text":"小学"},{"value": "初中","text": "初中"},{"value": "高中","text": "高中"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (9, 'level', 'object', '年级列表', '[
{"value":"01","text":"一年级","segment":"小学"},
{"value":"02","text":"二年级","segment":"小学"},
{"value":"03","text":"三年级","segment":"小学"},
{"value": "04","text": "四年级","segment":"小学"},
{"value": "05","text": "五年级","segment":"小学"},
{"value": "06","text": "六年级","segment":"小学"},
{"value": "07","text": "七年级","segment":"初中"},
{"value": "08","text": "八年级","segment":"初中"},
{"value": "09","text": "九年级","segment":"初中"},
{"value": "10","text": "高一","segment":"高中"},
{"value": "11","text": "高二","segment":"高中"},
{"value": "12","text": "高三","segment":"高中"}
]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (10, 'afterSchoolCareType', 'object', '托管类型', '[{"value":"日托","text":"日托"},{"value": "周托","text": "周托"},{"value": "半月托","text": "半月托"},{"value": "月托","text": "月托"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (11, 'freshmanOrReturning', 'object', '新生/老生', '[{"value":"新生","text":"新生"},{"value": "老生","text": "老生"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (12, 'paymentItem', 'object', '缴费项目', '[{"value":"学费","text":"学费"},{"value": "住宿","text": "住宿"},{"value":"伙食","text":"伙食"},{"value": "校服","text": "校服"},{"value":"床上用品","text":"床上用品"},{"value": "保险","text": "保险"},{"value":"家校通","text":"家校通"},{"value": "课本资料","text": "课本资料"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (13, 'paymentConfig', 'object', '缴费规则配置', '[
{
"segment": "小学",
"afterSchoolCareType": "日托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "5400"
},
{
"item": "住宿",
"amount": "600"
},
{
"item": "伙食",
"amount": "2000"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "日托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "5400"
},
{
"item": "住宿",
"amount": "600"
},
{
"item": "伙食",
"amount": "2000"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "周托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "5400"
},
{
"item": "住宿",
"amount": "1000"
},
{
"item": "伙食",
"amount": "2400"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "周托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "5400"
},
{
"item": "住宿",
"amount": "1000"
},
{
"item": "伙食",
"amount": "2400"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "6000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3000"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "小学",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "6000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3000"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "初中",
"afterSchoolCareType": "半月托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "6400"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3000"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "初中",
"afterSchoolCareType": "半月托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "6400"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3000"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "初中",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "7000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3400"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "初中",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "7000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3400"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
}
]
},
{
"segment": "高中",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "老生",
"paymentItem": [
{
"item": "学费",
"amount": "9000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3400"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
},
{
"item": "课本资料",
"amount": "1200"
}
]
},
{
"segment": "高中",
"afterSchoolCareType": "月托",
"freshmanOrReturning": "新生",
"paymentItem": [
{
"item": "学费",
"amount": "9000"
},
{
"item": "住宿",
"amount": "1200"
},
{
"item": "伙食",
"amount": "3400"
},
{
"item": "校服",
"amount": "800"
},
{
"item": "床上用品",
"amount": "600"
},
{
"item": "保险",
"amount": "50"
},
{
"item": "家校通",
"amount": "100"
},
{
"item": "课本资料",
"amount": "1200"
}
]
}
]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (14, 'paymentType', 'object', '缴费类型', '[{"value":"学费","text":"学费"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (15, 'level', 'object', '年级列表', '[
{"value":"01","text":"一年级","segment":"小学"},
{"value":"02","text":"二年级","segment":"小学"},
{"value":"03","text":"三年级","segment":"小学"},
{"value": "04","text": "四年级","segment":"小学"},
{"value": "05","text": "五年级","segment":"小学"},
{"value": "06","text": "六年级","segment":"小学"},
{"value": "07","text": "七年级","segment":"初中"},
{"value": "08","text": "八年级","segment":"初中"},
{"value": "09","text": "九年级","segment":"初中"},
{"value": "10","text": "高一","segment":"高中"},
{"value": "11","text": "高二","segment":"高中"},
{"value": "12","text": "高三","segment":"高中"}
]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (18, 'number', 'array', '班号', '[{"value":"00","text":"待分班"},{"value":"01","text":"01班"},{"value": "02","text": "02班"},{"value":"03","text":"03班"},{"value": "04","text": "04班"},{"value": "05","text": "05班"},{"value": "06","text": "06班"},{"value": "07","text": "07班"},{"value": "08","text": "08班"},{"value": "09","text": "09班"},{"value": "10","text": "10班"},{"value": "11","text": "11班"},{"value": "12","text": "12班"},{"value":"13","text":"13班"},{"value": "14","text": "14班"},{"value":"15","text":"15班"},{"value": "16","text": "16班"},{"value": "17","text": "17班"},{"value": "18","text": "18班"},{"value": "19","text": "19班"},{"value": "20","text": "20班"}]', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (29, 'currentSemester', 'object', '当前学年学期', '{"year":2023,"semester":"秋季"}', 'jhUpdate', 'admin', '系统管理员', '2023-07-25T14:29:30+08:00');