文档
测试

员工列表查询

POST
/admin/user/list

说明 / 示例

```json /** * 员工ID */ private Integer staffId; /** * 用户ID */ private String userId; /** * 所属商户ID(集团) */ @NotNull(message = "请选择员工所属商户!") private Integer merchantId; /** * 子商户ID(公司) */ private Integer subId; /** * 状态0禁用1正常 */ private Integer staffState; /** * 员工姓名 */ private String staffName; /** * 员工电话 */ private String staffTel; /** * 员工部门 */ private String staffDepartment; /** * 员工其他信息 */ private String staffOther; /** * 是否查员工 */ private Boolean isStaff; /** * 最小可用积分 */ private Integer minUsablePoint; /** * 最大可用积分 */ private Integer maxUsablePoint; /** * 成长值 */ private Integer minGrowthValue; /** * 最大成长值 */ private Integer maxGrowthValue; ``` 返回参数 ```json /** * 用户ID */ private String userId; /** * 用户账号 */ private String userAccount; /** * 用户姓名 */ private String userName; /** * 用户密码 */ private String userPassword; /** * 用户盐值 */ private String userSalt; /** * 绑定号码 */ private String userTel; /** * 昵称 */ private String userNickName; /** * 头像 */ private String userHeadImg; /** * 所属商户ID */ private Integer merchantId; /** * 所属子商户ID */ private Integer merchantSubId; /** * 所属商户appId */ private String merchantAppId; /** * 状态0禁用1正常 */ private Integer userState; /** * 注册时间 */ private LocalDateTime userRegisterTime; /** * 用户类型0普通用户 */ private Integer userType; /** * 商户名称 */ private String merchantName; /** * 子商户名称 */ private String merchantSubName; /** * 员工姓名 */ private String staffName; /** * 员工性别 */ private Integer staffSex; /** * 员工电话 */ private String staffTel; /** * 员工邮箱 */ private String staffEmail; /** * 员工部门 */ private String staffDepartment; /** * 员工职务 */ private String userPosition; /** * 员工生日 */ private LocalDate staffBirthday; /** * 员工入职时间 */ private LocalDateTime staffEntryTime; /** * 积分数量 */ private Integer point; /** * 成长值 */ private Integer growthValue; /** * 直购券数量 */ private Integer privilegeCoupon; /** * 会员等级名称 */ private String memberLevelName; /** * 消费总金额 */ private Integer monetary; /** * 消费总积分 */ private Integer usablePoint; /** * 订单数量 */ private Integer orderCount; /** * 员工ID */ @TableId(value = "staff_id", type = IdType.AUTO) private Integer staffId; /** * 用户ID */ @TableField("user_id") private String userId; /** * 所属商户ID(集团) */ @TableField("merchant_id") private Integer merchantId; /** * 所属商户appId */ @TableField("merchant_app_id") private String merchantAppId; /** * 子商户ID(公司) */ @TableField("sub_id") private Integer subId; /** * 子商户唯一标识 */ @TableField("sub_app_id") private String subAppId; /** * 状态0禁用1正常 */ @TableField("staff_state") private Integer staffState; /** * 员工姓名 */ @TableField("staff_name") private String staffName; /** * 员工性别 */ @TableField("staff_sex") private Integer staffSex; /** * 员工电话 */ @TableField("staff_tel") private String staffTel; /** * 员工邮箱 */ @TableField("staff_email") private String staffEmail; /** * 员工部门 */ @TableField("staff_department") private String staffDepartment; /** * 员工职务 */ @TableField("staff_position") private String UserPosition; /** * 员工生日 */ @TableField("staff_birthday") private LocalDate staffBirthday; /** * 员工入职时间 */ @TableField("staff_entry_time") private LocalDateTime staffEntryTime; /** * 创建时间 */ @TableField("create_time") private LocalDateTime createTime; /** * 更新时间 */ @TableField("update_time") private LocalDateTime updateTime; /** * 员工其他信息 */ @TableField("staff_other") private String staffOther; ``` ```json { "status": 200, "error": "", "message": "success", "payload": { "records": [ { "staffId": 4, "userId": "883071117091680256", "merchantId": 1, "merchantAppId": "dc0bcb99", "subId": 1, "subAppId": "6883ab54a194", "staffState": 1, "staffName": "刘群毓", "staffSex": 1, "staffTel": "17379005203", "staffEmail": null, "staffDepartment": "研发部", "staffBirthday": "2021-09-14", "staffEntryTime": "2021-08-31T11:42:08", "createTime": "2021-08-31T11:42:10", "updateTime": "2021-09-07T18:26:06", "staffOther": "{}", "userAccount": "N883071117091680257", "userName": "刘群毓", "userPassword": null, "userSalt": null, "userTel": null, "userNickName": null, "userHeadImg": null, "merchantSubId": null, "userState": null, "userRegisterTime": null, "userType": null, "merchantName": null, "merchantSubName": null, "userPosition": null, "point": null, "growthValue": null, "privilegeCoupon": null, "memberLevelName": "普通会员", "monetary": 12, "usablePoint": null, "orderCount": 8 }, { "staffId": 6, "userId": "883305832541335552", "merchantId": 1, "merchantAppId": "dc0bcb99", "subId": 1, "subAppId": "6883ab54a194", "staffState": 1, "staffName": "刘世豪", "staffSex": 1, "staffTel": "17778036894", "staffEmail": null, "staffDepartment": "产品部", "staffBirthday": "2021-08-16", "staffEntryTime": "2021-08-31T11:42:08", "createTime": "2021-08-31T11:42:10", "updateTime": null, "staffOther": "{}", "userAccount": "N883305832541335553", "userName": "刘世豪", "userPassword": null, "userSalt": null, "userTel": null, "userNickName": null, "userHeadImg": null, "merchantSubId": null, "userState": null, "userRegisterTime": null, "userType": null, "merchantName": null, "merchantSubName": null, "userPosition": null, "point": null, "growthValue": null, "privilegeCoupon": null, "memberLevelName": "普通会员", "monetary": null, "usablePoint": null, "orderCount": null } ], "total": 2, "size": 10, "current": 1, "orders": [], "optimizeCountSql": false, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } } ```