|
|
@@ -5,6 +5,7 @@ import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
|
|
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
|
|
|
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
|
|
|
import com.alibaba.excel.metadata.BaseRowModel;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
import lombok.Getter;
|
|
|
@@ -17,21 +18,25 @@ import java.util.Date;
|
|
|
@HeadRowHeight(16) //表头行高
|
|
|
@ContentRowHeight(16) //数据行高
|
|
|
public class UserExport {
|
|
|
-
|
|
|
- @ExcelProperty(value = "用户账号", index = 1)
|
|
|
+ @ExcelProperty(value = "序号", index = 1)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String xh;
|
|
|
+ @ExcelProperty(value = "用户账号", index = 2)
|
|
|
private String username;
|
|
|
- @ExcelProperty(value = "用户姓名", index = 2)
|
|
|
+ @ExcelProperty(value = "用户姓名", index = 3)
|
|
|
private String name;
|
|
|
- @ExcelProperty(value = "所属机构", index = 3)
|
|
|
+ @ExcelProperty(value = "所属机构", index = 4)
|
|
|
private String orgName;
|
|
|
- @ExcelProperty(value = "用户角色", index = 4)
|
|
|
+ @ExcelProperty(value = "用户角色", index = 5)
|
|
|
private String roleNames;
|
|
|
- @ExcelProperty(value = "状态", index = 5,converter = UserStatusConverter.class)
|
|
|
+ @ExcelProperty(value = "手机号码", index = 6)
|
|
|
+ private String phone;
|
|
|
+ @ExcelProperty(value = "状态", index = 7, converter = UserStatusConverter.class)
|
|
|
private String isLock;
|
|
|
- @ExcelProperty(value = "是否管理人员", index = 6,converter = UserManagerConverter.class)
|
|
|
+ @ExcelProperty(value = "是否管理人员", index = 8, converter = UserManagerConverter.class)
|
|
|
private String isManager;
|
|
|
- @ExcelProperty(value = "登录IP", index = 7)
|
|
|
+ @ExcelProperty(value = "登录IP", index = 9)
|
|
|
private String lastIp;
|
|
|
- @ExcelProperty(value = "登录时间", index = 8)
|
|
|
+ @ExcelProperty(value = "登录时间", index = 10)
|
|
|
private Date lastTime;
|
|
|
}
|