Commit 08f087825e79b922ddc978c62eeb7d42a452b46a
1 parent
5f6887bb
用户管理导入调整
Showing
2 changed files
with
15 additions
and
23 deletions
urbanops-module-system/src/main/java/com/zteits/urbanops/module/system/controller/admin/user/UserController.java
| ... | ... | @@ -217,25 +217,14 @@ public class UserController { |
| 217 | 217 | // 手动创建导出 demo |
| 218 | 218 | List<UserImportExcelVO> list = Arrays.asList( |
| 219 | 219 | UserImportExcelVO.builder() |
| 220 | - .username("yunai") | |
| 221 | - .deptId(255L) | |
| 222 | - .email("yunai@iocoder.cn") | |
| 220 | + .username("示例:zhangshan") | |
| 221 | + .nickname("张山") | |
| 223 | 222 | .mobile("15601691300") |
| 224 | - .nickname("全域") | |
| 225 | - // .status(CommonStatusEnum.ENABLE.getStatus()) | |
| 226 | 223 | .sex(SexEnum.MALE.getSex()) |
| 227 | - .busiLine("园林") // 简洁示例 | |
| 228 | - .isInner(1) | |
| 229 | - .build(), | |
| 230 | - UserImportExcelVO.builder() | |
| 231 | - .username("yuanma") | |
| 224 | + .email("yunai@iocoder.cn") | |
| 232 | 225 | .deptId(255L) |
| 233 | - .email("yuanma@iocoder.cn") | |
| 234 | - .mobile("15601701300") | |
| 235 | - .nickname("源码") | |
| 236 | - //.status(CommonStatusEnum.DISABLE.getStatus()) | |
| 237 | - .sex(SexEnum.FEMALE.getSex()) | |
| 238 | - .busiLine("园林,物业") | |
| 226 | + // .status(CommonStatusEnum.ENABLE.getStatus()) | |
| 227 | + .busiLine("yl,sz") // 简洁示例 | |
| 239 | 228 | .isInner(1) |
| 240 | 229 | .build() |
| 241 | 230 | ); | ... | ... |
urbanops-module-system/src/main/java/com/zteits/urbanops/module/system/controller/admin/user/vo/user/UserImportExcelVO.java
| ... | ... | @@ -28,13 +28,6 @@ public class UserImportExcelVO { |
| 28 | 28 | @ExcelProperty("用户名称") |
| 29 | 29 | private String nickname; |
| 30 | 30 | |
| 31 | - @ExcelProperty(value = "部门编号", converter = DeptConvert.class) | |
| 32 | - @ExcelColumnSelect(functionName = DeptExcelColumnSelectFunction.NAME) | |
| 33 | - private Long deptId; | |
| 34 | - | |
| 35 | - @ExcelProperty("用户邮箱") | |
| 36 | - private String email; | |
| 37 | - | |
| 38 | 31 | @ExcelProperty("手机号码") |
| 39 | 32 | private String mobile; |
| 40 | 33 | |
| ... | ... | @@ -42,6 +35,13 @@ public class UserImportExcelVO { |
| 42 | 35 | @DictFormat(DictTypeConstants.USER_SEX) |
| 43 | 36 | private Integer sex; |
| 44 | 37 | |
| 38 | + @ExcelProperty("邮箱") | |
| 39 | + private String email; | |
| 40 | + | |
| 41 | + @ExcelProperty(value = "归属部门名称", converter = DeptConvert.class) | |
| 42 | + @ExcelColumnSelect(functionName = DeptExcelColumnSelectFunction.NAME) | |
| 43 | + private Long deptId; | |
| 44 | + | |
| 45 | 45 | //@ExcelProperty(value = "账号状态", converter = DictConvert.class) |
| 46 | 46 | //@DictFormat(DictTypeConstants.COMMON_STATUS) |
| 47 | 47 | //private Integer status; |
| ... | ... | @@ -52,4 +52,7 @@ public class UserImportExcelVO { |
| 52 | 52 | @ExcelProperty(value = "是否是内部员工", converter = DictConvert.class) |
| 53 | 53 | @DictFormat(DictTypeConstants.SYSTEM_IS_INNER) |
| 54 | 54 | private Integer isInner; |
| 55 | + | |
| 56 | + @ExcelProperty(value = "备注") | |
| 57 | + private String remark; | |
| 55 | 58 | } | ... | ... |