|
|
@@ -191,6 +191,90 @@ create table `textbook_warehouse_record`
|
|
|
default charset = utf8mb4
|
|
|
collate = utf8mb4_0900_ai_ci comment ='教材入库记录';
|
|
|
|
|
|
+-- ----------------------------
|
|
|
+-- 2024-12-13 14:36
|
|
|
+-- 教材申领
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists wf_textbook_claim;
|
|
|
+create table `wf_textbook_claim`
|
|
|
+(
|
|
|
+ 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 '序号',
|
|
|
+
|
|
|
+ applicant_user_id bigint null comment '申请人',
|
|
|
+ base_semester_id bigint null comment '学期id(base_semester)',
|
|
|
+ claim_type varchar(20) null comment '申领类型(xjr_dictionary_item[claim_type])',
|
|
|
+
|
|
|
+ -- 班主任帮学生申请领取或者学生自己申请领取
|
|
|
+ class_id bigint null comment '班级编号',
|
|
|
+ student_user_id bigint null comment '负责领取学生编号',
|
|
|
+ claim_address varchar(1000) null comment '领取地点',
|
|
|
+
|
|
|
+ receive_user_id varchar(1000) null comment '代领取人',
|
|
|
+ claim_user_id bigint null comment '实际领取用户编号(申请人帮领取人申请去领取)',
|
|
|
+
|
|
|
+
|
|
|
+ status int default 0 not null comment '状态(1:结束 0:未结束)'
|
|
|
+)engine = innodb
|
|
|
+ default charset = utf8mb4
|
|
|
+ collate = utf8mb4_0900_ai_ci comment ='教材申领';
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- 2024-12-13 14:36
|
|
|
+-- 教材申领项
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists wf_textbook_claim_item;
|
|
|
+create table `wf_textbook_claim_item`
|
|
|
+(
|
|
|
+ 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 '序号',
|
|
|
+
|
|
|
+ wf_textbook_claim_id bigint null comment '教材申领编号',
|
|
|
+ textbook_id bigint null comment '教材管理编号',
|
|
|
+ applicant_number int default 0 null comment '申请数量',
|
|
|
+ issue_number int default 0 null comment '已发放数量'
|
|
|
+)engine = innodb
|
|
|
+ default charset = utf8mb4
|
|
|
+ collate = utf8mb4_0900_ai_ci comment ='教材申领项';
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- 2024-12-13 14:36
|
|
|
+-- 教材申领项与教材征订项关联表
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists claim_item_subscription_item;
|
|
|
+create table `claim_item_subscription_item`
|
|
|
+(
|
|
|
+ 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 '序号',
|
|
|
+
|
|
|
+ wf_textbook_claim_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`
|
|
|
# (
|
|
|
@@ -227,41 +311,6 @@ create table if not exists tl.textbook_claim_user
|
|
|
)
|
|
|
comment '教材领取人员';
|
|
|
|
|
|
-create table if not exists tl.textbook_class_relation
|
|
|
-(
|
|
|
- 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_id bigint null comment '教材管理编号',
|
|
|
- class_id bigint null comment '班级编号'
|
|
|
-)
|
|
|
- comment '教材班级引用';
|
|
|
-
|
|
|
-create table if not exists tl.textbook_core_attribute
|
|
|
-(
|
|
|
- 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 '序号',
|
|
|
- issn varchar(200) null comment '国际标准刊号',
|
|
|
- isbn varchar(200) null comment '国际标准书号',
|
|
|
- book_name varchar(200) null comment '书名',
|
|
|
- publishing_house varchar(200) null comment '出版社',
|
|
|
- editor_in_chief varchar(200) null comment '主编'
|
|
|
-)
|
|
|
- comment '教材核心信息管理';
|
|
|
-
|
|
|
create table if not exists tl.textbook_issue_record
|
|
|
(
|
|
|
id bigint not null comment '主键编号'
|
|
|
@@ -305,50 +354,6 @@ create table if not exists tl.textbook_student_claim
|
|
|
)
|
|
|
comment '学生教材认领记录';
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-create table if not exists tl.wf_textbook_claim
|
|
|
-(
|
|
|
- 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 '序号',
|
|
|
- applicant_user_id bigint null comment '申请人',
|
|
|
- class_id bigint null comment '班级编号',
|
|
|
- base_semester_id bigint null comment '学期id(base_semester)',
|
|
|
- student_user_id bigint null comment '学生编号',
|
|
|
- claim_address varchar(1000) null comment '领取地点',
|
|
|
- claim_type varchar(20) null comment '申领类型(xjr_dictionary_item[claim_type])',
|
|
|
- receive_user_id varchar(1000) null comment '代领取人',
|
|
|
- claim_user_id bigint null comment '领取用户编号(申请人帮领取人申请去领取)',
|
|
|
- status int default 0 not null comment '状态(1:结束 0:未结束)',
|
|
|
- textbook_type varchar(20) null comment '教材分类(xjr_dictionary_item[textbook_type])'
|
|
|
-)
|
|
|
- comment '教材申领';
|
|
|
-
|
|
|
-create table if not exists tl.wf_textbook_claim_item
|
|
|
-(
|
|
|
- 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 '序号',
|
|
|
- wf_textbook_claim_id bigint null comment '教材申领编号',
|
|
|
- textbook_id bigint null comment '教材管理编号',
|
|
|
- applicant_number int default 0 null comment '申请数量',
|
|
|
- issue_number int default 0 null comment '已发放数量'
|
|
|
-)
|
|
|
- comment '教材申领项';
|
|
|
-
|
|
|
create table if not exists tl.wf_textbook_recede
|
|
|
(
|
|
|
id bigint not null comment '主键编号'
|
|
|
@@ -386,38 +391,6 @@ create table if not exists tl.wf_textbook_recede_item
|
|
|
)
|
|
|
comment '退书申请项';
|
|
|
|
|
|
-create table if not exists tl.wf_textbook_subscription_item
|
|
|
-(
|
|
|
- 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 '序号',
|
|
|
- wf_textbook_subscription_id bigint null comment '教材教辅征订编号',
|
|
|
- subscription_type varchar(20) null comment '征订类型(xjr_dictionary_item[subscription_type])',
|
|
|
- issn varchar(200) null comment '国际标准刊号',
|
|
|
- isbn varchar(200) null comment '国际标准书号',
|
|
|
- book_name varchar(200) null comment '书名',
|
|
|
- publishing_house varchar(200) null comment '出版社',
|
|
|
- editor_in_chief varchar(200) null comment '主编',
|
|
|
- appraisal_price decimal(10, 2) null comment '估价(元)',
|
|
|
- is_textbook_plan varchar(20) null comment '是否为规划教材(xjr_dictionary_item[judgment_method_1])',
|
|
|
- course_subject_id bigint null comment '课程编号(base_course_subject)',
|
|
|
- class_ids varchar(1000) null comment '班级编号(多个)',
|
|
|
- student_subscription_number int null comment '学生用书征订数量',
|
|
|
- teacher_subscription_number int null comment '教师教材征订数量',
|
|
|
- teacher_reference_number int null comment '教师教参用书征订数量',
|
|
|
- is_support_resources varchar(20) null comment '是否有配套教学资源(xjr_dictionary_item[judgment_method_1])',
|
|
|
- version varchar(100) null comment '版本',
|
|
|
- textbook_id bigint null comment '教材id',
|
|
|
- in_stockroom_num int default 0 null comment '当前征订任务征订项已经入库数量',
|
|
|
- alteration_type int default 0 null comment '变更类型(0:未变更,1:变更征订数量,2:变更课程)'
|
|
|
-)
|
|
|
- comment '教材教辅征订项';
|
|
|
|
|
|
|
|
|
|