Files
mp-java/src/main/java/com/gxwebsoft/common/system/entity/Menu.java
赵忠林 0104eccd34 feat(controller): 新增企业ID批量更新功能
- 在BatchImportSupport中添加CompanyIdRefreshStats统计类
- 实现基于企业名称匹配的companyId批量更新逻辑
- 添加normalizeCompanyName和addCompanyNameMapping辅助方法
- 在各个Credit控制器中注入CreditCompanyService依赖
- 为所有相关控制器添加/company-id/refresh接口端点
- 实现多租户环境下的安全匹配和更新机制
- 支持limit参数控制批量处理数量
- 提供详细的更新统计数据返回
2026-01-21 13:18:00 +08:00

96 lines
2.4 KiB
Java

package com.gxwebsoft.common.system.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import java.util.Date;
import java.util.List;
/**
* 菜单
*
* @author WebSoft
* @since 2018-12-24 16:10:17
*/
@Data
@Schema(description = "菜单")
@TableName("sys_menu")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Menu implements GrantedAuthority {
private static final long serialVersionUID = 1L;
public static final int TYPE_MENU = 0; // 菜单类型
public static final int TYPE_BTN = 1; // 按钮类型
@Schema(description = "菜单id")
@TableId(type = IdType.AUTO)
private Integer menuId;
@Schema(description = "上级id, 0是顶级")
private Integer parentId;
@Schema(description = "菜单名称")
private String title;
@Schema(description = "菜单路由地址")
private String path;
@Schema(description = "菜单组件地址")
private String component;
@Schema(description = "模块ID")
private String modules;
@Schema(description = "模块API")
private String modulesUrl;
@Schema(description = "菜单类型, 0菜单, 1按钮")
private Integer menuType;
@Schema(description = "打开方式, 0当前页, 1新窗口")
@TableField(exist = false)
private Integer openType;
@Schema(description = "排序号")
private Integer sortNumber;
@Schema(description = "权限标识")
private String authority;
@Schema(description = "菜单图标")
private String icon;
@Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示左侧菜单)")
private Integer hide;
@Schema(description = "路由元信息")
private String meta;
@Schema(description = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@Schema(description = "关联应用")
private Integer appId;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
@Schema(description = "修改时间")
private Date updateTime;
@Schema(description = "子菜单")
@TableField(exist = false)
private List<Menu> children;
@Schema(description = "角色权限树选中状态")
@TableField(exist = false)
private Boolean checked;
}