档案管理

This commit is contained in:
xiao-fajia 2024-08-29 19:16:56 +08:00
parent 026067f5f6
commit 26b78f87a8
4 changed files with 18 additions and 5 deletions

View File

@ -53,6 +53,11 @@ public class ArchivesRole extends TenantBaseDO {
*/ */
private String deleteRoleIds; private String deleteRoleIds;
/**
* 角色IDsystem_role的ID用于分辨用户是否有权限下载
*/
private String downloadRoleIds;
/** /**
* 部门id * 部门id
*/ */
@ -73,4 +78,8 @@ public class ArchivesRole extends TenantBaseDO {
/** 用户是否可以删除档案 */ /** 用户是否可以删除档案 */
@TableField(exist = false) @TableField(exist = false)
private Boolean isDeleted; private Boolean isDeleted;
/** 用户是否可以下载档案 */
@TableField(exist = false)
private Boolean isDownload;
} }

View File

@ -146,6 +146,8 @@ public class ArchivesRoleServiceImpl extends ServiceImpl<ArchivesRoleMapper, Arc
item.setIsDeleted(checkPermission(item.getDeleteRoleIds(), roleIds)); item.setIsDeleted(checkPermission(item.getDeleteRoleIds(), roleIds));
// 修改权限 // 修改权限
item.setIsUpdated(checkPermission(item.getUpdateRoleIds(), roleIds)); item.setIsUpdated(checkPermission(item.getUpdateRoleIds(), roleIds));
// 下载权限
item.setIsDownload(checkPermission(item.getDownloadRoleIds(), roleIds));
}); });
// dictLabel赋值 // dictLabel赋值

View File

@ -43,6 +43,6 @@
<if test="map.queryDateArray != null and map.queryDateArray.length > 0"> <if test="map.queryDateArray != null and map.queryDateArray.length > 0">
and (ca.sign_time >= #{map.queryDateArray[0]} and ca.expire_time &lt;= #{map.queryDateArray[1]}) and (ca.sign_time >= #{map.queryDateArray[0]} and ca.expire_time &lt;= #{map.queryDateArray[1]})
</if> </if>
order by ca.create_time desc order by ca.expire_time, ca.create_time desc
</select> </select>
</mapper> </mapper>

View File

@ -8,10 +8,12 @@
<id property="id" column="id" jdbcType="VARCHAR"/> <id property="id" column="id" jdbcType="VARCHAR"/>
<result property="dictType" column="dict_type" jdbcType="VARCHAR"/> <result property="dictType" column="dict_type" jdbcType="VARCHAR"/>
<result property="dataId" column="data_id" jdbcType="BIGINT"/> <result property="dataId" column="data_id" jdbcType="BIGINT"/>
<result property="queryRoleIds" column="query_role_ids" jdbcType="BIGINT"/> <result property="queryRoleIds" column="query_role_ids" jdbcType="VARCHAR"/>
<result property="updateRoleIds" column="update_role_ids" jdbcType="BIGINT"/> <result property="updateRoleIds" column="update_role_ids" jdbcType="VARCHAR"/>
<result property="createRoleIds" column="create_role_ids" jdbcType="BIGINT"/> <result property="createRoleIds" column="create_role_ids" jdbcType="VARCHAR"/>
<result property="deleteRoleIds" column="delete_role_ids" jdbcType="BIGINT"/> <result property="deleteRoleIds" column="delete_role_ids" jdbcType="VARCHAR"/>
<result property="deleteRoleIds" column="delete_role_ids" jdbcType="VARCHAR"/>
<result property="downloadRoleIds" column="download_role_ids" jdbcType="VARCHAR"/>
<result property="deptId" column="dept_id" jdbcType="VARCHAR"/> <result property="deptId" column="dept_id" jdbcType="VARCHAR"/>
</resultMap> </resultMap>