@@ -72,8 +72,9 @@ public class SysUser extends BaseEntity
/** 部门对象 */
@Excels({
- @Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
- @Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)
+ @Excel(name = "部门名称", targetAttr = "deptName"),
+ @Excel(name = "部门负责人", targetAttr = "leader"),
+ @Excel(name = "部门状态", targetAttr = "status", dictType = "sys_normal_disable")
})
private SysDept dept;
@@ -464,7 +464,7 @@ public class ExcelUtil<T>
{
propertyName = field.getName() + "." + attr.targetAttr();
}
- else if (StringUtils.isNotEmpty(attr.readConverterExp()))
+ if (StringUtils.isNotEmpty(attr.readConverterExp()))
val = reverseByExp(Convert.toStr(val), attr.readConverterExp(), attr.separator());