Compare commits
No commits in common. "ba4d22792ca107365eb7da1c4a6df76daffabeb8" and "46b521aaa4147d25531359e561d712ca021e2ab9" have entirely different histories.
ba4d22792c
...
46b521aaa4
@ -27,9 +27,6 @@ public class UserEditRequest implements Serializable {
|
||||
@Length(max = 255, message = "用户昵称不能超过255个字符")
|
||||
private String nickname;
|
||||
|
||||
@ApiModelProperty("用户公司名称")
|
||||
private String companyName;
|
||||
|
||||
@ApiModelProperty(value = "用户头像")
|
||||
@NotBlank(message = "请上传用户头像")
|
||||
@Length(max = 255, message = "用户头像不能超过255个字符")
|
||||
@ -45,6 +42,4 @@ public class UserEditRequest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "性别")
|
||||
private Integer sex;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ public class UserCenterResponse implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "公司名称")
|
||||
private String tenantName;
|
||||
@ApiModelProperty(value = "租户id")
|
||||
@ApiModelProperty(value = "租户名称")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long tenantId;
|
||||
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package com.yzt.common.response;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@ -26,10 +25,6 @@ public class UserResponse {
|
||||
@JsonIgnore
|
||||
private String pwd;
|
||||
|
||||
@ApiModelProperty(value = "租户名称")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long tenantId;
|
||||
|
||||
@ApiModelProperty(value = "真实姓名")
|
||||
private String realName;
|
||||
|
||||
|
||||
@ -53,9 +53,6 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> impleme
|
||||
@Autowired
|
||||
private SystemAttachmentService systemAttachmentService;
|
||||
|
||||
@Autowired
|
||||
private SystemConfigService systemConfigService;
|
||||
|
||||
@Autowired
|
||||
private QrCodeService qrCodeService;
|
||||
|
||||
@ -71,7 +68,7 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> impleme
|
||||
tenant.setCreatedTime(YztDateUtil.nowDateTime());
|
||||
tenant.setCreatedBy(SecurityUtil.getLoginUserVo().getUser().getId());
|
||||
}
|
||||
if(ObjectUtil.isNull(tenant.getRegisterQrCodeUrl())){
|
||||
if(tenant.getRegisterQrCodeUrl().isBlank()){
|
||||
tenant.setRegisterQrCodeUrl(generateRegisterUrl());
|
||||
}
|
||||
tenant.setUpdatedTime(YztDateUtil.nowDateTime());
|
||||
@ -179,7 +176,7 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> impleme
|
||||
|
||||
@Override
|
||||
public String generateRegisterUrl() {
|
||||
return systemConfigService.getValueByKey("register_qr_code_url")+"/#/pages/register/register?tenantId=" + SecurityUtil.getLoginUserVo().getUser().getTenantId();
|
||||
return systemAttachmentService.getCdnUrl()+"/#/pages/register/register?tenantId=" + SecurityUtil.getLoginUserVo().getUser().getTenantId();
|
||||
}
|
||||
|
||||
private void checkNameExist(TenantSaveRequest req) {
|
||||
|
||||
@ -1911,7 +1911,6 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
||||
user.setBirthday(request.getBirthday());
|
||||
user.setUpdateTime(DateUtil.date());
|
||||
user.setSex(request.getSex());
|
||||
user.setCompanyName(request.getCompanyName());
|
||||
return updateById(user);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user