档案管理
This commit is contained in:
parent
026067f5f6
commit
26b78f87a8
@ -53,6 +53,11 @@ public class ArchivesRole extends TenantBaseDO {
|
|||||||
*/
|
*/
|
||||||
private String deleteRoleIds;
|
private String deleteRoleIds;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色ID(system_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;
|
||||||
}
|
}
|
@ -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赋值
|
||||||
|
@ -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 <= #{map.queryDateArray[1]})
|
and (ca.sign_time >= #{map.queryDateArray[0]} and ca.expire_time <= #{map.queryDateArray[1]})
|
||||||
</if>
|
</if>
|
||||||
order by ca.create_time desc
|
order by ca.expire_time, ca.create_time desc
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user