| | |
| | | import com.ruoyi.common.core.annotation.Excel;
|
| | | import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
| | | import com.ruoyi.common.core.annotation.Excel.Type;
|
| | | import com.ruoyi.common.core.constant.UserConstants;
|
| | | import com.ruoyi.common.core.annotation.Excels;
|
| | | import com.ruoyi.common.core.web.domain.BaseEntity;
|
| | | import com.ruoyi.common.core.xss.Xss;
|
| | |
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | /** 用户ID */
|
| | | @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
| | | @Excel(name = "用户序号", type = Type.EXPORT, cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
| | | private Long userId;
|
| | |
|
| | | /** 部门ID */
|
| | |
| | | private String email;
|
| | |
|
| | | /** 手机号码 */
|
| | | @Excel(name = "手机号码")
|
| | | @Excel(name = "手机号码", cellType = ColumnType.TEXT)
|
| | | private String phonenumber;
|
| | |
|
| | | /** 用户性别 */
|
| | |
| | |
|
| | | public static boolean isAdmin(Long userId)
|
| | | {
|
| | | return userId != null && 1L == userId;
|
| | | return UserConstants.isAdmin(userId);
|
| | | }
|
| | |
|
| | | public Long getDeptId()
|