| | |
| | | package com.vincent.rsf.server.system.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @ApiModelProperty(value= "颜色。例如:#FFFFFF、blue、rgba(0,0,0,0.5)") |
| | | private String color; |
| | | |
| | | |
| | | @ApiModelProperty("分组标识") |
| | | @TableField("`group`") |
| | | private String group; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 冻结 |
| | | */ |
| | |
| | | * 是否删除 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否删除 1: 是 0: 否 ") |
| | | @TableLogic |
| | | private Integer deleted; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | @TableField(exist = false) |
| | | private String dictTypeId$; |
| | | |
| | | @TableField(exist = false) |
| | | private String createBy$; |
| | | |
| | | @TableField(exist = false) |
| | | private String updateBy$; |
| | | |
| | | |
| | | |
| | | public DictData() {} |
| | | |
| | |
| | | // ); |
| | | |
| | | public String getDictTypeId$(){ |
| | | DictTypeService service = SpringUtils.getBean(DictTypeService.class); |
| | | DictType dictType = service.getById(this.dictTypeId); |
| | | if (!Cools.isEmpty(dictType)){ |
| | | return String.valueOf(dictType.getName()); |
| | | } |
| | | return null; |
| | | return this.dictTypeId$; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | return this.createBy$; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | return this.updateBy$; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | |
| | | } |
| | | |
| | | } |
| | | |