Selaa lähdekoodia

文件分类接口修改

szjbdgzl 2 vuotta sitten
vanhempi
sitoutus
01dc009701

+ 1 - 0
ibps-common-root/modules/org-biz/src/main/java/com/lc/ibps/common/cat/domain/Type.java

@@ -282,6 +282,7 @@ public class Type extends AbstractDomain<String, TypePo> {
 			po.setName(typeVo.getName());
 			po.setTypeKey(typeVo.getTypeKey());
 			po.setStruType(typeVo.getStruType());
+			po.setAuthorityName(typeVo.getAuthorityName());
 			this.setData(po);
 			this.update();
 			resultMsg = "更新分类成功";

+ 10 - 0
ibps-model-root/modules/org-model/src/main/java/com/lc/ibps/common/cat/persistence/entity/TypeTbl.java

@@ -68,6 +68,16 @@ public class TypeTbl extends AbstractTreeModel<String>{
 	@ApiModelProperty(value="更新时间")
 	@JsonFormat(pattern = StringPool.DATE_FORMAT_DATETIME, timezone = "GMT+8")
 	protected java.util.Date updateTime; /*更新时间*/
+	@ApiModelProperty(value="文件查询权限分类")
+	protected String authorityName; /*文件查询权限分类*/
+
+	public String getAuthorityName() {
+		return authorityName;
+	}
+
+	public void setAuthorityName(String authorityName) {
+		this.authorityName = authorityName;
+	}
 
 	public String getIsShow() {
 		return isShow;

+ 10 - 3
ibps-model-root/modules/org-model/src/main/resources/com/lc/ibps/cat/persistence/mapping/Type.map.xml

@@ -21,16 +21,22 @@
 		<result property="updateTime" column="UPDATE_TIME_" jdbcType="TIMESTAMP"/>
 		<result property="tenantId" column="TENANT_ID_" jdbcType="VARCHAR"/>
 		<result property="isShow" column="IS_SHOW_" jdbcType="VARCHAR"/>
+		<result property="authorityName" column="AUTHORITY_NAME" jdbcType="VARCHAR"/>
 	</resultMap>
 	
 	<sql id="columns">
-		ID_,CATEGORY_KEY_,NAME_,TYPE_KEY_,STRU_TYPE_,PARENT_ID_,DEPTH_,PATH_,IS_LEAF_,OWNER_ID_,SN_,CREATE_BY_,CREATE_TIME_,CREATE_ORG_ID_,UPDATE_BY_,UPDATE_TIME_,TENANT_ID_
+		ID_,CATEGORY_KEY_,NAME_,TYPE_KEY_,STRU_TYPE_,PARENT_ID_,DEPTH_,PATH_,IS_LEAF_,OWNER_ID_,SN_,CREATE_BY_,CREATE_TIME_,
+		CREATE_ORG_ID_,UPDATE_BY_,UPDATE_TIME_,TENANT_ID_,AUTHORITY_NAME
 	</sql>
 	<insert id="create" parameterType="com.lc.ibps.common.cat.persistence.entity.TypePo">
 		INSERT INTO IBPS_CAT_TYPE
 		(<include refid="columns"/>)
 		VALUES 
-		(#{id,jdbcType=VARCHAR}, #{categoryKey,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{typeKey,jdbcType=VARCHAR}, #{struType,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, #{depth,jdbcType=NUMERIC}, #{path,jdbcType=VARCHAR}, #{isLeaf,jdbcType=VARCHAR}, #{ownerId,jdbcType=VARCHAR}, #{sn,jdbcType=NUMERIC}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createOrgId,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{tenantId,jdbcType=VARCHAR})
+		(#{id,jdbcType=VARCHAR}, #{categoryKey,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{typeKey,jdbcType=VARCHAR},
+		#{struType,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, #{depth,jdbcType=NUMERIC}, #{path,jdbcType=VARCHAR},
+		#{isLeaf,jdbcType=VARCHAR}, #{ownerId,jdbcType=VARCHAR}, #{sn,jdbcType=NUMERIC}, #{createBy,jdbcType=VARCHAR},
+		#{createTime,jdbcType=TIMESTAMP}, #{createOrgId,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR},
+		#{updateTime,jdbcType=TIMESTAMP}, #{tenantId,jdbcType=VARCHAR} ,#{authorityName,jdbcType=VARCHAR} )
 	</insert>
 	
 	<select id="get"   parameterType="java.lang.String" resultMap="Type">
@@ -78,7 +84,8 @@
 		CREATE_TIME_=#{createTime,jdbcType=TIMESTAMP},
 		CREATE_ORG_ID_=#{createOrgId,jdbcType=VARCHAR},
 		UPDATE_BY_=#{updateBy,jdbcType=VARCHAR},
-		UPDATE_TIME_=#{updateTime,jdbcType=TIMESTAMP}
+		UPDATE_TIME_=#{updateTime,jdbcType=TIMESTAMP},
+		AUTHORITY_NAME=#{authorityName,jdbcType=VARCHAR}
 		WHERE
 		ID_=#{id}
 	</update>