mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 07:49:19 +08:00
feat: 组织架构重构 - 公司成员与部门成员模块,登录逻辑及权限改造
- 新增 org_company_member 表及模块(公司成员:owner/member 角色) - 新增 org_department_member 表及模块(部门成员:一用户可属多部门) - 移除 sys_user 的 companyId/departmentId/positionId 字段 - 重构 UserMenuServiceImpl 权限逻辑:super→全系统 / owner→公司菜单 / member→职位菜单 - 修复 RoleAspect 中 role='company' 应为 'admin' 的 BUG - CurrentUserContext 注入 CompanyMemberService,新增 getCurrentMemberRole() - 登录时公司选择逻辑:优先 lastCompanyId,需状态可用且未过期 - 超管(super)登录跳过公司校验 - 创建公司时自动创建拥有者账号并写入 org_company_member(role=owner) - 联系人字段替换为拥有者姓名+拥有者电话 - org_company 表新增 owner_name/owner_phone 字段 - sys_user.phone 唯一约束修正 - 同步更新 SQL 设计文件(31张表 DDL)
This commit is contained in:
@@ -9,12 +9,12 @@ export namespace CompanyDTO {
|
||||
name: string;
|
||||
/** 公司地址 */
|
||||
address?: string;
|
||||
/** 联系人 */
|
||||
contactPerson?: string;
|
||||
/** 联系电话 */
|
||||
contactPhone?: string;
|
||||
/** 邮箱 */
|
||||
email?: string;
|
||||
/** 公司拥有者姓名 */
|
||||
ownerName: string;
|
||||
/** 公司拥有者电话 */
|
||||
ownerPhone: string;
|
||||
/** logo图片ID */
|
||||
logoImageId?: number;
|
||||
/** 状态 (0-禁用 1-正常) */
|
||||
@@ -29,10 +29,6 @@ export namespace CompanyDTO {
|
||||
name: string;
|
||||
/** 公司地址 */
|
||||
address?: string;
|
||||
/** 联系人 */
|
||||
contactPerson?: string;
|
||||
/** 联系电话 */
|
||||
contactPhone?: string;
|
||||
/** 邮箱 */
|
||||
email?: string;
|
||||
/** logo图片ID */
|
||||
@@ -47,10 +43,6 @@ export namespace CompanyDTO {
|
||||
export interface CompanyFiltersDTO {
|
||||
/** 公司名称(模糊查询) */
|
||||
name?: string;
|
||||
/** 联系人(模糊查询) */
|
||||
contactPerson?: string;
|
||||
/** 联系电话(精确查询) */
|
||||
contactPhone?: string;
|
||||
/** 邮箱(精确查询) */
|
||||
email?: string;
|
||||
/** 状态 */
|
||||
|
||||
Reference in New Issue
Block a user