web: 修改表字段 vp_material_library

dev_2.1.0
xueqingkun 1 year ago
parent d16053a3ce
commit 0c44ae0b79

@ -34,7 +34,7 @@ public class MaterialLibrary implements Serializable {
private String materialName; private String materialName;
@ApiModelProperty("素材类型 0:图片 1:视频 2:音频 必填") @ApiModelProperty("素材类型 0:图片 1:视频 2:音频 必填")
private String materialType; private Integer materialType;
@ApiModelProperty("目录id") @ApiModelProperty("目录id")
private String directoryId; private String directoryId;

@ -8,7 +8,7 @@
<result property="id" column="id" jdbcType="VARCHAR"/> <result property="id" column="id" jdbcType="VARCHAR"/>
<result property="fileResourceId" column="file_resource_id" jdbcType="VARCHAR"/> <result property="fileResourceId" column="file_resource_id" jdbcType="VARCHAR"/>
<result property="materialName" column="material_name" jdbcType="VARCHAR"/> <result property="materialName" column="material_name" jdbcType="VARCHAR"/>
<result property="materialType" column="material_type" jdbcType="VARCHAR"/> <result property="materialType" column="material_type" jdbcType="INTEGER"/>
<result property="directoryId" column="directory_id" jdbcType="VARCHAR"/> <result property="directoryId" column="directory_id" jdbcType="VARCHAR"/>
<result property="materialDesc" column="material_desc" jdbcType="VARCHAR"/> <result property="materialDesc" column="material_desc" jdbcType="VARCHAR"/>
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/> <result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>

@ -64,21 +64,18 @@ alter table vp_disease
modify symptom varchar(512) null comment '症状'; modify symptom varchar(512) null comment '症状';
-- 添加表 vp_material_library -- 添加表 vp_material_library
create table vp_material_library CREATE TABLE `vp_material_library` (
( `id` varchar(64) NOT NULL COMMENT '主键',
id varchar(64) not null comment '主键', `file_resource_id` varchar(64) NOT NULL COMMENT '文件资源id 对应vp_file_resource的主键',
file_resource_id varchar(64) not null comment '文件资源id 对应vp_file_resource的主键', `material_name` varchar(64) NOT NULL COMMENT '素材名称;不采用vp_file_resource中的file_name字段',
material_name varchar(64) not null comment '素材名称;不采用vp_file_resource中的file_name字段', `material_type` int(11) DEFAULT NULL COMMENT '素材类型 0:图片 1:视频 2:音频',
material_type varchar(16) null comment '素材类型 0:图片 1:视频 2:音频', `directory_id` varchar(64) DEFAULT NULL COMMENT '目录id 对应于 vp_directory_info表的主键',
create_user_id varchar(64) null comment '创建人ID', `material_desc` varchar(512) DEFAULT NULL COMMENT '素材说明',
create_time datetime(0) default CURRENT_TIMESTAMP(0) null comment '创建时间', `create_user_id` varchar(64) DEFAULT NULL COMMENT '创建人ID',
update_user_id varchar(64) null comment '更新人', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
update_time datetime(0) default CURRENT_TIMESTAMP(0) null comment '更新时间' `update_user_id` varchar(64) DEFAULT NULL COMMENT '更新人',
) `update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间'
ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC comment '素材库表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='素材库表'
alter table vp_material_library
add directory_id varchar(64) null comment '目录id 对应于 vp_directory_info表的主键' after material_type;
-- 修改字段长度 -- 修改字段长度
alter table vp_file_resource alter table vp_file_resource
@ -105,11 +102,8 @@ alter table vp_medical_rec
add patient_head_pic varchar(64) null comment '病人头像 对应vp_file_resource表的id' after patient_name; add patient_head_pic varchar(64) null comment '病人头像 对应vp_file_resource表的id' after patient_name;
-- 添加数字人类型 -- 添加数字人类型
alter table vp_medical_rec alter table vp_medical_rec
add digital_human_type varchar(16) null comment '数字人类型 0:离线数字人 1:在线数字人' after patient_name; add digital_human_type integer default 0 null comment '数字人类型 0:离线数字人 1:在线数字人' after patient_name;
-- 添加素材说明
alter table vp_material_library
add material_desc varchar(512) null comment '素材说明' after directory_id;
-- 添加流程关联的字段 -- 添加流程关联的字段
alter table vp_process alter table vp_process

Loading…
Cancel
Save