web : vp_material_library 添加 directory_id

dev_2.1.0
xueqingkun 1 year ago
parent 023b677dc0
commit bf0ace101a

@ -36,6 +36,11 @@ public class MaterialLibrary implements Serializable {
*/ */
private String materialType; private String materialType;
/**
* id
*/
private String directoryId;
/** /**
* ID * ID
*/ */

@ -9,6 +9,7 @@
<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="VARCHAR"/>
<result property="directoryId" column="directory_id" jdbcType="VARCHAR"/>
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/> <result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/> <result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
@ -17,7 +18,7 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id,file_resource_id,material_name, id,file_resource_id,material_name,
material_type,create_user_id,create_time, material_type,directory_id,create_user_id,create_time,
update_user_id,update_time update_user_id,update_time
</sql> </sql>
</mapper> </mapper>

@ -77,6 +77,9 @@ create table vp_material_library
) )
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
modify file_type varchar(128) null comment '文件类型'; modify file_type varchar(128) null comment '文件类型';

Loading…
Cancel
Save