|
|
@@ -28,7 +28,7 @@ create table `textbook`
|
|
|
is_textbook_plan int null default 0 comment '是否为规划教材',
|
|
|
textbook_type varchar(20) null comment '教材分类(xjr_dictionary_item[textbook_type])',
|
|
|
specifications_models varchar(100) null default '/' comment '规格型号',
|
|
|
- publishing_date datetime null comment '出版日期',
|
|
|
+ publishing_date date null comment '出版日期',
|
|
|
is_secd int null default 0 comment '是否校企合作开发教材',
|
|
|
category varchar(50) null default '/' comment '分类号',
|
|
|
plan_batch varchar(50) null default '/' comment '规划批次',
|
|
|
@@ -269,32 +269,18 @@ create table `claim_item_subscription_item`
|
|
|
sort_code int null comment '序号',
|
|
|
|
|
|
wf_textbook_claim_item_id bigint null comment '教材申领编号',
|
|
|
- textbook_subscription_item_id bigint null comment '教材申领编号',
|
|
|
+ textbook_subscription_item_id bigint null comment '教材征订编号',
|
|
|
issue_number int default 0 null comment '已发放数量'
|
|
|
)engine = innodb
|
|
|
default charset = utf8mb4
|
|
|
collate = utf8mb4_0900_ai_ci comment ='教材申领项与教材征订项关联表';
|
|
|
|
|
|
-# drop table if exists textbook_subscription_record;
|
|
|
-# create table `textbook_subscription_record`
|
|
|
-# (
|
|
|
-# id bigint not null comment '主键编号'
|
|
|
-# primary key,
|
|
|
-# create_user_id bigint null comment '创建人',
|
|
|
-# create_date datetime null comment '创建时间',
|
|
|
-# modify_user_id bigint null comment '修改人',
|
|
|
-# modify_date datetime null comment '修改时间',
|
|
|
-# delete_mark int not null comment '删除标记',
|
|
|
-# enabled_mark int not null comment '有效标志',
|
|
|
-# sort_code int null comment '序号',
|
|
|
-#
|
|
|
-# textbook_subscription_id bigint null comment '教材征订编号',
|
|
|
-# textbook_subscription_item_id bigint null comment '教材征订项编号'
|
|
|
-# ) engine = innodb
|
|
|
-# default charset = utf8mb4
|
|
|
-# collate = utf8mb4_0900_ai_ci comment ='教材征订记录';
|
|
|
-
|
|
|
-create table if not exists tl.textbook_claim_user
|
|
|
+-- ----------------------------
|
|
|
+-- 2024-12-13 14:36
|
|
|
+-- 教材领取人员
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists textbook_claim_user;
|
|
|
+create table `textbook_claim_user`
|
|
|
(
|
|
|
id bigint not null comment '主键编号'
|
|
|
primary key,
|
|
|
@@ -305,13 +291,21 @@ create table if not exists tl.textbook_claim_user
|
|
|
delete_mark int not null comment '删除标记',
|
|
|
enabled_mark int not null comment '有效标志',
|
|
|
sort_code int null comment '序号',
|
|
|
+
|
|
|
wf_textbook_claim_id bigint null comment '教材申领编号',
|
|
|
+
|
|
|
user_id bigint null comment '用户编号',
|
|
|
user_type int default 2 null comment '用户类型(1:学生 2=教师)'
|
|
|
-)
|
|
|
- comment '教材领取人员';
|
|
|
+)engine = innodb
|
|
|
+ default charset = utf8mb4
|
|
|
+ collate = utf8mb4_0900_ai_ci comment ='教材领取人员';
|
|
|
|
|
|
-create table if not exists tl.textbook_issue_record
|
|
|
+-- ----------------------------
|
|
|
+-- 2024-12-13 14:36
|
|
|
+-- 教材出库记录
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists textbook_issue_record;
|
|
|
+create table `textbook_issue_record`
|
|
|
(
|
|
|
id bigint not null comment '主键编号'
|
|
|
primary key,
|
|
|
@@ -322,19 +316,29 @@ create table if not exists tl.textbook_issue_record
|
|
|
delete_mark int not null comment '删除标记',
|
|
|
enabled_mark int not null comment '有效标志',
|
|
|
sort_code int null comment '序号',
|
|
|
- textbook_id bigint null comment '教材管理编号',
|
|
|
+
|
|
|
+ issue_mode varchar(20) null comment '出库方式(xjr_dictionary_item[issue_mode])',
|
|
|
data_id bigint null comment '数据编号(根据出库方式,编号来自不同数据表)',
|
|
|
data_item_id bigint null comment '数据项项编号(根据出库方式,编号来自不同数据表)',
|
|
|
+
|
|
|
+ textbook_id bigint null comment '教材管理编号',
|
|
|
issue_number int null comment '出库数量',
|
|
|
- remaining_number int null comment '剩余数量',
|
|
|
+ remaining_number int null comment '剩余未出库数量',
|
|
|
+
|
|
|
receive_user_id bigint null comment '领取用户编号',
|
|
|
issue_user_id bigint null comment '出库用户编号',
|
|
|
- issue_mode varchar(20) null comment '出库方式(xjr_dictionary_item[issue_mode])',
|
|
|
+
|
|
|
remark varchar(1000) null comment '备注'
|
|
|
-)
|
|
|
- comment '教材出库记录';
|
|
|
+)engine = innodb
|
|
|
+ default charset = utf8mb4
|
|
|
+ collate = utf8mb4_0900_ai_ci comment ='教材出库记录';
|
|
|
|
|
|
-create table if not exists tl.textbook_student_claim
|
|
|
+-- ----------------------------
|
|
|
+-- 2024-12-13 14:36
|
|
|
+-- 学生教材认领记录
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists textbook_student_claim;
|
|
|
+create table `textbook_student_claim`
|
|
|
(
|
|
|
id bigint not null comment '主键编号'
|
|
|
primary key,
|
|
|
@@ -345,16 +349,24 @@ create table if not exists tl.textbook_student_claim
|
|
|
delete_mark int not null comment '删除标记',
|
|
|
enabled_mark int not null comment '有效标志',
|
|
|
sort_code int null comment '序号',
|
|
|
+
|
|
|
base_semester_id bigint null comment '学期id(base_semester)',
|
|
|
class_id bigint null comment '班级编号',
|
|
|
student_user_id bigint null comment '学生用户编号',
|
|
|
+
|
|
|
textbook_id bigint null comment '教材管理编号',
|
|
|
is_claim int default 0 not null comment '是否领取(1:已领取 0:未领取)',
|
|
|
remark varchar(1000) null comment '备注'
|
|
|
-)
|
|
|
- comment '学生教材认领记录';
|
|
|
+)engine = innodb
|
|
|
+ default charset = utf8mb4
|
|
|
+ collate = utf8mb4_0900_ai_ci comment ='学生教材认领记录';
|
|
|
|
|
|
-create table if not exists tl.wf_textbook_recede
|
|
|
+-- ----------------------------
|
|
|
+-- 2024-12-13 14:36
|
|
|
+-- 退书申请
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists wf_textbook_recede;
|
|
|
+create table `wf_textbook_recede`
|
|
|
(
|
|
|
id bigint not null comment '主键编号'
|
|
|
primary key,
|
|
|
@@ -365,16 +377,25 @@ create table if not exists tl.wf_textbook_recede
|
|
|
delete_mark int not null comment '删除标记',
|
|
|
enabled_mark int not null comment '有效标志',
|
|
|
sort_code int null comment '序号',
|
|
|
+
|
|
|
applicant_user_id bigint null comment '申请人',
|
|
|
+ recede_type varchar(20) null comment '退书类型(xjr_dictionary_item[recede_type])',
|
|
|
+
|
|
|
base_semester_id bigint null comment '学期id(base_semester)',
|
|
|
class_id bigint null comment '班级编号',
|
|
|
- recede_type varchar(20) null comment '退书类型(xjr_dictionary_item[recede_type])',
|
|
|
+
|
|
|
recede_address varchar(1000) null comment '退还地点',
|
|
|
status int default 0 not null comment '状态(1:结束 0:未结束)'
|
|
|
-)
|
|
|
- comment '退书申请';
|
|
|
+)engine = innodb
|
|
|
+ default charset = utf8mb4
|
|
|
+ collate = utf8mb4_0900_ai_ci comment ='退书申请';
|
|
|
|
|
|
-create table if not exists tl.wf_textbook_recede_item
|
|
|
+-- ----------------------------
|
|
|
+-- 2024-12-13 14:36
|
|
|
+-- 退书申请项
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists wf_textbook_recede_item;
|
|
|
+create table `wf_textbook_recede_item`
|
|
|
(
|
|
|
id bigint not null comment '主键编号'
|
|
|
primary key,
|
|
|
@@ -385,11 +406,16 @@ create table if not exists tl.wf_textbook_recede_item
|
|
|
delete_mark int not null comment '删除标记',
|
|
|
enabled_mark int not null comment '有效标志',
|
|
|
sort_code int null comment '序号',
|
|
|
+
|
|
|
wf_textbook_recede_id bigint null comment '退书申请编号',
|
|
|
+
|
|
|
textbook_id bigint null comment '教材管理编号',
|
|
|
number int null comment '数量'
|
|
|
-)
|
|
|
- comment '退书申请项';
|
|
|
+)engine = innodb
|
|
|
+ default charset = utf8mb4
|
|
|
+ collate = utf8mb4_0900_ai_ci comment ='退书申请项';
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|