附近增加用户类型

This commit is contained in:
2025-02-17 11:56:12 +08:00
parent c967e9b608
commit 8baee4b858
5 changed files with 99 additions and 16 deletions

View File

@ -39,7 +39,7 @@ public class WgzAppController {
@ApiOperation("APP务工者注册") @ApiOperation("APP务工者注册")
@PreAuthorize("@ss.hasPermi('wgzApp:user:register')") @PreAuthorize("@ss.hasPermi('wgzApp:user:register')")
@PostMapping("/wgzRegister") @PostMapping("/wgzRegister")
public AjaxResult userRegister(@Validated WgzAppUserRegisterReq bo) { public AjaxResult userRegister(@Validated @RequestBody WgzAppUserRegisterReq bo) {
return AjaxResult.success(iWgzUserService.userRegister(bo)); return AjaxResult.success(iWgzUserService.userRegister(bo));
} }
@ -53,13 +53,13 @@ public class WgzAppController {
return AjaxResult.success(iWgzUserService.userPersonalBasicInformation(req)); return AjaxResult.success(iWgzUserService.userPersonalBasicInformation(req));
} }
// /** /**
// * 【我的】【实名认证】实名认证 * 【我的】【实名认证】实名认证
// */ */
// @ApiOperation("APP务工者-实名认证") @ApiOperation("APP务工者-实名认证")
// @PreAuthorize("@ss.hasPermi('wgzApp:user:userRealNameAuthentication')") @PreAuthorize("@ss.hasPermi('wgzApp:user:userRealNameAuthentication')")
// @PostMapping("/wgzUserRealNameAuthentication") @PutMapping("/wgzUserRealNameAuthentication")
// public AjaxResult userRealNameAuthentication(@Validated @RequestBody WgzRealNameAuthenticationReq req) { public AjaxResult<Boolean> userRealNameAuthentication(@Validated @RequestBody WgzRealNameAuthenticationReq req) {
// return AjaxResult.success(iWgzUserService.userPersonalBasicInformation(req)); return AjaxResult.success(iWgzUserService.userRealNameAuthentication(req));
// } }
} }

View File

@ -41,6 +41,11 @@ public class Annex implements Serializable {
@ApiModelProperty("唯一标识") @ApiModelProperty("唯一标识")
private Long userId; private Long userId;
/** 用户类型 */
@Excel(name = "用户类型")
@ApiModelProperty("用户类型")
private String userType;
/** 附件类型 */ /** 附件类型 */
@Excel(name = "附件类型") @Excel(name = "附件类型")
@ApiModelProperty("附件类型") @ApiModelProperty("附件类型")

View File

@ -1,4 +1,70 @@
package com.ruoyi.wgz.bo.req; package com.ruoyi.wgz.bo.req;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class WgzRealNameAuthenticationReq { public class WgzRealNameAuthenticationReq {
@ApiModelProperty("唯一标识")
@NotBlank(message = "唯一标识不能为空")
private Long userId;
@ApiModelProperty("身份证正面图路径")
@NotBlank(message = "身份证正面图路径不能为空")
private String frontPath;
@ApiModelProperty("身份证反面图路径")
@NotBlank(message = "身份证反面图路径不能为空")
private String reverseSidePath;
@ApiModelProperty("姓名")
@NotBlank(message = "姓名不能为空")
private String username;
@ApiModelProperty("性别")
@NotBlank(message = "性别不能为空")
private String gender;
@ApiModelProperty("民族")
@NotBlank(message = "民族不能为空")
private String nation;
@ApiModelProperty("出生日期")
@NotBlank(message = "出生日期不能为空")
private String birthdate;
@ApiModelProperty("身份证号码")
@NotBlank(message = "身份证号码不能为空")
private String identityCard;
@ApiModelProperty("所在区域")
@NotBlank(message = "所在区域不能为空")
private String area;
@ApiModelProperty("地址")
@NotBlank(message = "地址不能为空")
private String site;
@ApiModelProperty("联系电话")
@NotBlank(message = "联系电话不能为空")
private String phone;
@ApiModelProperty("银行")
@NotBlank(message = "银行不能为空")
private String bank;
@ApiModelProperty("银行卡号")
@NotBlank(message = "银行卡号不能为空")
private String cardNo;
// @ApiModelProperty("银行卡图路径")
// private String bankCardPath;
} }

View File

@ -9,6 +9,7 @@ import com.ruoyi.wgz.bo.req.WgzRealNameAuthenticationReq;
import com.ruoyi.wgz.bo.res.WgzAppPersonalBasicInformationRes; import com.ruoyi.wgz.bo.res.WgzAppPersonalBasicInformationRes;
import com.ruoyi.wgz.domain.WgzUser; import com.ruoyi.wgz.domain.WgzUser;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
@ -87,10 +88,10 @@ public interface IWgzUserService extends IServicePlus<WgzUser> {
*/ */
WgzAppPersonalBasicInformationRes userPersonalBasicInformation(WgzAppPersonalBasicInformationReq req); WgzAppPersonalBasicInformationRes userPersonalBasicInformation(WgzAppPersonalBasicInformationReq req);
// /** /**
// * 务工者APP实名认证 * 务工者APP实名认证
// * @param req APP务工者实名认证业务对象 * @param req APP务工者实名认证业务对象
// * @return bool * @return bool
// */ */
// Boolean userRealNameAuthentication(WgzRealNameAuthenticationReq req); Boolean userRealNameAuthentication(@Validated @RequestBody WgzRealNameAuthenticationReq req);
} }

View File

@ -12,6 +12,7 @@ import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.wgz.bo.WgzUserQueryBo; import com.ruoyi.wgz.bo.WgzUserQueryBo;
import com.ruoyi.wgz.bo.req.WgzAppPersonalBasicInformationReq; import com.ruoyi.wgz.bo.req.WgzAppPersonalBasicInformationReq;
import com.ruoyi.wgz.bo.req.WgzAppUserRegisterReq; import com.ruoyi.wgz.bo.req.WgzAppUserRegisterReq;
import com.ruoyi.wgz.bo.req.WgzRealNameAuthenticationReq;
import com.ruoyi.wgz.bo.res.WgzAppPersonalBasicInformationRes; import com.ruoyi.wgz.bo.res.WgzAppPersonalBasicInformationRes;
import com.ruoyi.wgz.common.SnowflakeIdUtil; import com.ruoyi.wgz.common.SnowflakeIdUtil;
import com.ruoyi.wgz.domain.WgzUser; import com.ruoyi.wgz.domain.WgzUser;
@ -143,4 +144,14 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
return wgzAppPersonalBasicInformationRes; return wgzAppPersonalBasicInformationRes;
} }
//实名认证
@Override
public Boolean userRealNameAuthentication(WgzRealNameAuthenticationReq req) {
//1、对指定用户进行实名认证
WgzUser user = new WgzUser();
BeanUtils.copyProperties(req,user);
int update = baseMapper.update(user, new LambdaQueryWrapper<WgzUser>().eq(WgzUser::getUserId, req.getUserId()));
return update>0;
}
} }