常量
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 = 5 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表; 软删除未启用;'
_constant 表数据
null
constantKey:commentMap
constantType:object
{"小学": [{"1": "成绩差","2": "成绩较差","3": "成绩一般","4": "成绩较好","5": "成绩优秀","type": "成绩"},{"1": "日常表现不佳","2": "日常表现较差","3": "日常表现一般","4": "日常表现良好","5": "日常表现优秀","type": "日常"},{"1": "1","2": "2","3": "3","4": "4","5": "5","type": "纪律"}],"初中": [{"1": "成绩差","2": "成绩较差","3": "成绩一般","4": "成绩较好","5": "成绩优秀","type": "成绩"},{"1": "日常表现不佳","2": "日常表现较差","3": "日常表现一般","4": "日常表现良好","5": "日常表现优秀","type": "日常"}],"高中": [{"1": "成绩差","2": "成绩较差","3": "成绩一般","4": "成绩较好","5": "成绩优秀","type": "成绩"},{"1": "日常表现不佳","2": "日常表现较差","3": "日常表现一般","4": "日常表现良好","5": "日常表现优秀","type": "日常"}]}
null
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:currentSemester
constantType:object
{"year": 2023,"semester": "春季"}
学部
constantKey:segment
constantType:array
[{"text": "小学","value": "小学","levelList": ["01","02","03","04","05","06"]},{"text": "初中","value": "初中","levelList": ["07","08","09"]},{"text": "高中","value": "高中","levelList": ["10","11","12"]}]
_constant语句
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (1, 'commentMap', 'object', NULL, '{"小学":[{"1":"成绩差","2":"成绩较差","3":"成绩一般","4":"成绩较好","5":"成绩优秀","type":"成绩"},{"1":"日常表现不佳","2":"日常表现较差","3":"日常表现一般","4":"日常表现良好","5":"日常表现优秀","type":"日常"},{"1":"1","2":"2","3":"3","4":"4","5":"5","type":"纪律"}],"初中":[{"1":"成绩差","2":"成绩较差","3":"成绩一般","4":"成绩较好","5":"成绩优秀","type":"成绩"},{"1":"日常表现不佳","2":"日常表现较差","3":"日常表现一般","4":"日常表现良好","5":"日常表现优秀","type":"日常"}],"高中":[{"1":"成绩差","2":"成绩较差","3":"成绩一般","4":"成绩较好","5":"成绩优秀","type":"成绩"},{"1":"日常表现不佳","2":"日常表现较差","3":"日常表现一般","4":"日常表现良好","5":"日常表现优秀","type":"日常"}]}', 'jhUpdate', 'admin', '系统管理员', '2023-06-14T16:18:57+08:00');INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (2, 'level', 'array', NULL, '[{"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 (3, 'currentSemester', 'object', '当前年学期', '{"year": 2023, "semester": "春季"}', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (4, 'segment', 'array', '学部', '[{"text": "小学", "value": "小学", "levelList": ["01","02","03","04","05","06"]},{"text": "初中", "value": "初中", "levelList": ["07","08","09"]},{"text": "高中", "value": "高中", "levelList": ["10","11","12"]}]', 'insert', NULL, NULL, NULL);