debug:添加用户报错

This commit is contained in:
墨大叔 2024-10-14 08:50:30 +08:00
parent 0f4ed47422
commit 92444077e6
2 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,6 @@ public class SmUser extends BaseEntity
@ApiModelProperty("是否商家")
@JsonView(JsonViewProfile.App.class)
@NotNull(message = "用户类型不允许为空", groups = {ValidGroup.Create.class})
private Boolean isMch;
@ApiModelProperty("服务费费率")
@ -203,6 +202,7 @@ public class SmUser extends BaseEntity
private LocalDateTime limitWithdrawTime;
@ApiModelProperty("用户类型")
@NotNull(message = "用户类型不允许为空", groups = {ValidGroup.Create.class})
private String type;
@Excel(name = "代理商服务费比例")

View File

@ -8,6 +8,7 @@ import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.core.domain.entity.SmUser;
import com.ruoyi.common.core.domain.model.WxLoginBody;
import com.ruoyi.common.enums.UserStatus;
import com.ruoyi.common.enums.UserType;
import com.ruoyi.common.utils.ServiceUtil;
import com.ruoyi.common.utils.http.HttpUtils;
import com.ruoyi.common.auth.wx.AccessTokenUtil;
@ -319,6 +320,7 @@ public class SysLoginService
newUser.setUserName(name);
newUser.setWxOpenId(openId);
newUser.setPhonenumber(mobile);
newUser.setType(UserType.USER.getType());
smUserService.insertSmUser(newUser);
// 添加微信账户