update 优化 excel 导出字典默认转为下拉框

This commit is contained in:
疯狂的狮子Li
2023-07-28 20:29:25 +08:00
parent 6256dcfbcc
commit 378be90929
10 changed files with 18 additions and 18 deletions

View File

@@ -61,7 +61,7 @@ public class SysConfig extends BaseEntity {
/**
* 系统内置Y是 N否
*/
@ExcelProperty(value = "系统内置", converter = ExcelDictConvert.class)
@ExcelProperty(value = "系统内置", index = 4, converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "sys_yes_no")
private String configType;

View File

@@ -62,7 +62,7 @@ public class SysPost extends BaseEntity {
/**
* 状态0正常 1停用
*/
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
@ExcelProperty(value = "状态", index = 4, converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "sys_normal_disable")
private String status;

View File

@@ -53,14 +53,14 @@ public class SysUserExportVo implements Serializable {
/**
* 用户性别
*/
@ExcelProperty(value = "用户性别", converter = ExcelDictConvert.class)
@ExcelProperty(value = "用户性别", index = 5, converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "sys_user_sex")
private String sex;
/**
* 帐号状态0正常 1停用
*/
@ExcelProperty(value = "帐号状态", converter = ExcelDictConvert.class)
@ExcelProperty(value = "帐号状态", index = 6, converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "sys_normal_disable")
private String status;