|
|
|
@@ -5,11 +5,9 @@ import com.alibaba.excel.annotation.ExcelProperty; |
|
|
|
import com.alibaba.excel.annotation.write.style.ContentStyle; |
|
|
|
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum; |
|
|
|
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum; |
|
|
|
import com.ruoyi.common.core.annotation.Excel; |
|
|
|
import com.ruoyi.common.core.annotation.Excel.Type; |
|
|
|
import com.ruoyi.common.core.annotation.Excels; |
|
|
|
import com.ruoyi.common.core.web.domain.BaseEntity; |
|
|
|
import com.ruoyi.common.core.xss.Xss; |
|
|
|
import com.ruoyi.system.api.constant.Constant; |
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle; |
|
|
|
|
|
|
|
@@ -69,9 +67,11 @@ public class SysUser extends BaseEntity { |
|
|
|
/** |
|
|
|
* 用户性别 |
|
|
|
*/ |
|
|
|
@ExcelProperty(value = "用户性别", order = 6) |
|
|
|
private String sex; |
|
|
|
|
|
|
|
@ExcelProperty(value = "用户性别", order = 6) |
|
|
|
private String sexName; |
|
|
|
|
|
|
|
/** |
|
|
|
* 用户头像 |
|
|
|
*/ |
|
|
|
@@ -220,6 +220,18 @@ public class SysUser extends BaseEntity { |
|
|
|
this.sex = sex; |
|
|
|
} |
|
|
|
|
|
|
|
public String getSexName() { |
|
|
|
if (Constant.Sex_Men.equals(this.sex)) { |
|
|
|
return "男"; |
|
|
|
} else { |
|
|
|
return "女"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void setSexName(String sexName) { |
|
|
|
this.sexName = sexName; |
|
|
|
} |
|
|
|
|
|
|
|
public String getAvatar() { |
|
|
|
return avatar; |
|
|
|
} |
|
|
|
|