|  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.IdType; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableId; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
|---|
|  |  |  | import com.zy.asrs.common.sys.service.ResourceService; | 
|---|
|  |  |  | import com.zy.asrs.framework.common.Cools; | 
|---|
|  |  |  | import com.zy.asrs.framework.common.SpringUtils; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.io.Serializable; | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Short status; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * URL参数 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Resource() {} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Resource(String code,String name,Long resourceId,Short level,Integer sort,Short status) { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getResourceName(){ | 
|---|
|  |  |  | ResourceService service = SpringUtils.getBean(ResourceService.class); | 
|---|
|  |  |  | Resource resource = service.getById(this.resourceId); | 
|---|
|  |  |  | if (!Cools.isEmpty(resource)){ | 
|---|
|  |  |  | return resource.getName(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | return this.name; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getLevel$(){ | 
|---|