wang-hao-jie
2021-11-11 47ae9468857e0a13d91fc5e8c126246b80cfda62
违章记录
3个文件已修改
9 ■■■■ 已修改文件
xboot-core/src/main/java/cn/exrick/xboot/core/entity/User.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/FingerprintController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/entity/Fingerprint.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xboot-core/src/main/java/cn/exrick/xboot/core/entity/User.java
@@ -80,9 +80,12 @@
    @ApiModelProperty(value = "用户头像")
    private String avatar = CommonConstant.USER_DEFAULT_AVATAR;
    @ApiModelProperty(value = "用户类型 0普通用户 1管理员")
    @ApiModelProperty(value = "用户类型 0普通用户 1管理员 ")
    private Integer type = CommonConstant.USER_TYPE_NORMAL;
    @ApiModelProperty(value = "0:司机 1:配送员")
    private Integer type2;
    @ApiModelProperty(value = "状态 默认0正常 -1拉黑")
    private Integer status = CommonConstant.USER_STATUS_NORMAL;
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/FingerprintController.java
@@ -141,6 +141,7 @@
            User user = userService.get(fingerprint.getUserId());
            fingerprint.setUsername(user.getUsername());
            fingerprint.setPassword(user.getDescription());
            fingerprint.setType(user.getType2());
        }
        if (iFingerprintService.saveOrUpdate(fingerprint)) {
            return new ResultUtil<Fingerprint>().setData(fingerprint);
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/entity/Fingerprint.java
@@ -50,4 +50,7 @@
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "0:司机 1:配送员")
    private Integer type;
}