附近增加用户类型
This commit is contained in:
		@ -41,6 +41,11 @@ public class Annex implements Serializable {
 | 
			
		||||
    @ApiModelProperty("唯一标识")
 | 
			
		||||
    private Long userId;
 | 
			
		||||
 | 
			
		||||
	/** 用户类型 */
 | 
			
		||||
	@Excel(name = "用户类型")
 | 
			
		||||
	@ApiModelProperty("用户类型")
 | 
			
		||||
	private String userType;
 | 
			
		||||
 | 
			
		||||
    /** 附件类型 */
 | 
			
		||||
    @Excel(name = "附件类型")
 | 
			
		||||
    @ApiModelProperty("附件类型")
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,70 @@
 | 
			
		||||
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 {
 | 
			
		||||
	@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;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -9,6 +9,7 @@ import com.ruoyi.wgz.bo.req.WgzRealNameAuthenticationReq;
 | 
			
		||||
import com.ruoyi.wgz.bo.res.WgzAppPersonalBasicInformationRes;
 | 
			
		||||
import com.ruoyi.wgz.domain.WgzUser;
 | 
			
		||||
import org.springframework.validation.annotation.Validated;
 | 
			
		||||
import org.springframework.web.bind.annotation.RequestBody;
 | 
			
		||||
 | 
			
		||||
import java.util.Collection;
 | 
			
		||||
import java.util.List;
 | 
			
		||||
@ -87,10 +88,10 @@ public interface IWgzUserService extends IServicePlus<WgzUser> {
 | 
			
		||||
     */
 | 
			
		||||
    WgzAppPersonalBasicInformationRes  userPersonalBasicInformation(WgzAppPersonalBasicInformationReq req);
 | 
			
		||||
 | 
			
		||||
//	/**
 | 
			
		||||
//	 * 务工者APP实名认证
 | 
			
		||||
//	 * @param req APP务工者实名认证业务对象
 | 
			
		||||
//	 * @return bool
 | 
			
		||||
//	 */
 | 
			
		||||
//	Boolean userRealNameAuthentication(WgzRealNameAuthenticationReq req);
 | 
			
		||||
	/**
 | 
			
		||||
	 * 务工者APP实名认证
 | 
			
		||||
	 * @param req APP务工者实名认证业务对象
 | 
			
		||||
	 * @return bool
 | 
			
		||||
	 */
 | 
			
		||||
	Boolean userRealNameAuthentication(@Validated @RequestBody WgzRealNameAuthenticationReq req);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -12,6 +12,7 @@ import com.ruoyi.common.utils.SecurityUtils;
 | 
			
		||||
import com.ruoyi.wgz.bo.WgzUserQueryBo;
 | 
			
		||||
import com.ruoyi.wgz.bo.req.WgzAppPersonalBasicInformationReq;
 | 
			
		||||
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.common.SnowflakeIdUtil;
 | 
			
		||||
import com.ruoyi.wgz.domain.WgzUser;
 | 
			
		||||
@ -143,4 +144,14 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
 | 
			
		||||
        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;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user