first commit
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package com.qiaoba.api.system.entity;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.qiaoba.common.base.entity.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
@ -14,33 +16,35 @@ import lombok.EqualsAndHashCode;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("sys_dict_data")
|
||||
public class SysDictData extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Excel(name = "字典编码" , width = 20)
|
||||
private Long dictCode;
|
||||
@Excel(name = "字典编码", width = 20)
|
||||
@TableId
|
||||
private String dictCode;
|
||||
|
||||
@Excel(name = "字典排序" , width = 20)
|
||||
@Excel(name = "字典排序", width = 20)
|
||||
private Long dictSort;
|
||||
|
||||
@Excel(name = "字典标签" , width = 20)
|
||||
@Excel(name = "字典标签", width = 20)
|
||||
private String dictLabel;
|
||||
|
||||
@Excel(name = "字典键值" , width = 20)
|
||||
@Excel(name = "字典键值", width = 20)
|
||||
private String dictValue;
|
||||
|
||||
@Excel(name = "字典类型" , width = 20)
|
||||
@Excel(name = "字典类型", width = 20)
|
||||
private String dictType;
|
||||
|
||||
private String cssClass;
|
||||
|
||||
private String listClass;
|
||||
|
||||
@Excel(name = "是否默认" , width = 20, replace = {"是_Y" , "否_N"})
|
||||
@Excel(name = "是否默认", width = 20, replace = {"是_Y", "否_N"})
|
||||
private String isDefault;
|
||||
|
||||
@Excel(name = "状态" , width = 20, replace = {"正常_0" , "停用_1"})
|
||||
@Excel(name = "状态", width = 20, replace = {"正常_1", "停用_0"})
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,28 @@
|
||||
package com.qiaoba.api.system.entity.param;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 字典数据 查询参数
|
||||
*
|
||||
* @author ailanyin
|
||||
* @version 1.0
|
||||
* @since 2022-09-22 04:20:28
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
public class SysDictDataParam {
|
||||
|
||||
private String dictType;
|
||||
|
||||
private String dictLabel;
|
||||
|
||||
private String status;
|
||||
|
||||
public SysDictDataParam(String dictType) {
|
||||
this.dictType = dictType;
|
||||
}
|
||||
}
|
@ -19,5 +19,5 @@ public interface SysDictApiService {
|
||||
* @param dictType 字典类型
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
List<SysDictData> selectDictDataByType(String dictType);
|
||||
List<SysDictData> selectByDictType(String dictType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user