```
-- yitisheng.yx_user_score definition

CREATE TABLE `yx_user_score` (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `type` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '填报类型(1-普通类 2-艺术类)',
  `educational_level` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '学历层次(1-本科,2-专科)',
  `professional_category` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '美术类' COMMENT '专业类别(美术类/...)',
  `subjects` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '选课',
  `professional_score` decimal(10,0) DEFAULT '0' COMMENT '专业成绩分',
  `cultural_score` decimal(10,0) DEFAULT '0' COMMENT '文化成绩分',
  `ranking` int DEFAULT '0' COMMENT '位次',
  `create_by` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `state` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '状态(0-未使用,1-使用中)',
  `province` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '北京' COMMENT '高考省份',
  `cognitio_polyclinic` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '文理分班(文科/理科)',
  `batch` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '录取批次',
  `english_score` decimal(10,2) DEFAULT '0.00' COMMENT '英语成绩',
  `chinese_score` decimal(10,2) DEFAULT '0.00' COMMENT '语文成绩',
  `yybysy` decimal(10,2) DEFAULT '0.00' COMMENT '音乐表演声乐',
  `yybyqy` decimal(10,2) DEFAULT '0.00' COMMENT '音乐表演器乐',
  `yyjy` decimal(10,2) DEFAULT '0.00' COMMENT '音乐教育',
  `xjysdy` decimal(10,2) DEFAULT '0.00' COMMENT '戏剧影视导演',
  `xjysby` decimal(10,2) DEFAULT '0.00' COMMENT '戏剧影视表演',
  `fzby` decimal(10,2) DEFAULT '0.00' COMMENT '服装表演',
  `professional_category_children` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '子级专业类别',
  `kbd_num` int DEFAULT '0' COMMENT '可保底专业数量',
  `nlq_num` int DEFAULT '0' COMMENT '难录取专业数量',
  `kcj_num` int DEFAULT '0' COMMENT '可冲击专业数量',
  `jwt_num` int DEFAULT '0' COMMENT '较稳妥专业数量',
  `calculation_table_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '记录结果表名',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `a_create_by` (`create_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户分数信息表';

CREATE TABLE `yx_volunteer` (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `volunteer_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '志愿单名称',
  `score_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '使用成绩id',
  `create_type` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '生成类型(1.手动生成,2.智能生成)',
  `state` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '志愿单状态(0-否，1.正在使用，2-历史)',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '更新人',
  `update_time` datetime DEFAULT NULL COMMENT '更新日期',
  `sys_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '所属部门',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='志愿表';

CREATE TABLE `yx_volunteer_record` (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `volunteer_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '志愿单id',
  `school_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '学校编码',
  `major_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '专业编码',
  `enrollment_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '招生代码',
  `indexs` int DEFAULT '1' COMMENT '志愿顺序',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  `batch` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '录取批次',
  `enroll_probability` decimal(10,4) DEFAULT '0.0000' COMMENT '录取概率',
  `student_converted_score` decimal(10,4) DEFAULT '0.0000' COMMENT '折合分数',
  `fctj` int DEFAULT '0' COMMENT '服从调剂',
  `calculation_major_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '专业折算id',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `a_volunteer_id` (`volunteer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='志愿明细表';
```
创建表的常规代码到 modules/yx/ 的分层模块下, Entity、Mapper、Service、Controller 等文件。
