debug:添加用户报错
This commit is contained in:
parent
0f4ed47422
commit
92444077e6
|
@ -125,7 +125,6 @@ public class SmUser extends BaseEntity
|
||||||
|
|
||||||
@ApiModelProperty("是否商家")
|
@ApiModelProperty("是否商家")
|
||||||
@JsonView(JsonViewProfile.App.class)
|
@JsonView(JsonViewProfile.App.class)
|
||||||
@NotNull(message = "用户类型不允许为空", groups = {ValidGroup.Create.class})
|
|
||||||
private Boolean isMch;
|
private Boolean isMch;
|
||||||
|
|
||||||
@ApiModelProperty("服务费费率")
|
@ApiModelProperty("服务费费率")
|
||||||
|
@ -203,6 +202,7 @@ public class SmUser extends BaseEntity
|
||||||
private LocalDateTime limitWithdrawTime;
|
private LocalDateTime limitWithdrawTime;
|
||||||
|
|
||||||
@ApiModelProperty("用户类型")
|
@ApiModelProperty("用户类型")
|
||||||
|
@NotNull(message = "用户类型不允许为空", groups = {ValidGroup.Create.class})
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@Excel(name = "代理商服务费比例")
|
@Excel(name = "代理商服务费比例")
|
||||||
|
|
|
@ -8,6 +8,7 @@ import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.ruoyi.common.core.domain.entity.SmUser;
|
import com.ruoyi.common.core.domain.entity.SmUser;
|
||||||
import com.ruoyi.common.core.domain.model.WxLoginBody;
|
import com.ruoyi.common.core.domain.model.WxLoginBody;
|
||||||
import com.ruoyi.common.enums.UserStatus;
|
import com.ruoyi.common.enums.UserStatus;
|
||||||
|
import com.ruoyi.common.enums.UserType;
|
||||||
import com.ruoyi.common.utils.ServiceUtil;
|
import com.ruoyi.common.utils.ServiceUtil;
|
||||||
import com.ruoyi.common.utils.http.HttpUtils;
|
import com.ruoyi.common.utils.http.HttpUtils;
|
||||||
import com.ruoyi.common.auth.wx.AccessTokenUtil;
|
import com.ruoyi.common.auth.wx.AccessTokenUtil;
|
||||||
|
@ -319,6 +320,7 @@ public class SysLoginService
|
||||||
newUser.setUserName(name);
|
newUser.setUserName(name);
|
||||||
newUser.setWxOpenId(openId);
|
newUser.setWxOpenId(openId);
|
||||||
newUser.setPhonenumber(mobile);
|
newUser.setPhonenumber(mobile);
|
||||||
|
newUser.setType(UserType.USER.getType());
|
||||||
smUserService.insertSmUser(newUser);
|
smUserService.insertSmUser(newUser);
|
||||||
|
|
||||||
// 添加微信账户
|
// 添加微信账户
|
||||||
|
|
Loading…
Reference in New Issue
Block a user