feat(permission): replace OA roles with post-bound roles and assignee posts
Unify effective roles via post-role bindings, remove dedicated OA role UI, and update OA assignee resolution plus related SQL/docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a3c73d76bb
commit
06db3bc966
66 files changed
+55337
-38647
No files matched your search
@@ -262,6 +262,25 @@ class SysUserPost(Base):
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class SysPostRole(Base):
|
||||
"""职位-角色关联 sys_post_role"""
|
||||
|
||||
__tablename__ = "sys_post_role"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
post_id = Column(String(64), nullable=False, comment="职位ID")
|
||||
role_id = Column(String(64), nullable=False, comment="角色ID")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class BizItemUnit(Base):
|
||||
"""物品单位 biz_item_unit"""
|
||||
|
||||
@@ -806,46 +825,6 @@ class OaAppVersion(Base):
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class OaRole(Base):
|
||||
"""OA工作流角色 oa_role"""
|
||||
|
||||
__tablename__ = "oa_role"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
role_name = Column(String(100), nullable=False, comment="角色名称")
|
||||
role_code = Column(String(64), nullable=False, comment="角色编码")
|
||||
role_kind = Column(String(16), nullable=False, default="custom", comment="custom/preset")
|
||||
status = Column(CHAR(1), nullable=False, default="1", comment="1启用 0停用")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class OaRoleUser(Base):
|
||||
"""OA工作流角色成员 oa_role_user"""
|
||||
|
||||
__tablename__ = "oa_role_user"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
oa_role_id = Column(String(64), nullable=False, comment="工作流角色ID")
|
||||
user_id = Column(String(64), nullable=False, comment="用户ID")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class OaReceiveAccount(Base):
|
||||
"""OA收款账户 oa_receive_account"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user