领料审核通过

This commit is contained in:
liang.chao 2024-01-27 13:10:08 +08:00
parent bd16ff1485
commit 14238ce4e2
2 changed files with 5 additions and 3 deletions

View File

@ -29,6 +29,8 @@ public class NwLoginConstants {
* 认证类型 * 认证类型
*/ */
public static final String GRANT_TYPE = "grant_type"; public static final String GRANT_TYPE = "grant_type";
public static final int LOGIN_ERROR_CODE = 501;
public static final String LOGIN_ERROR_MESSAGE = "该用户不存在,请先注册";
/** /**
* 授权范围 * 授权范围

View File

@ -78,7 +78,7 @@ public class NwUserLoginService {
LoginUserInfoRespDTO loginUserInfoRespDTO = loginUserInfoRespData.getData(); LoginUserInfoRespDTO loginUserInfoRespDTO = loginUserInfoRespData.getData();
String mobilePhone = loginUserInfoRespDTO.getMobilePhone(); String mobilePhone = loginUserInfoRespDTO.getMobilePhone();
String userName = loginUserInfoRespDTO.getUserName(); String userName = loginUserInfoRespDTO.getUserName();
String nickName = loginUserInfoRespDTO.getNickName(); /* String nickName = loginUserInfoRespDTO.getNickName();
String email = loginUserInfoRespDTO.getEmail(); String email = loginUserInfoRespDTO.getEmail();
String sex = loginUserInfoRespDTO.getSex(); String sex = loginUserInfoRespDTO.getSex();
String headPortrait = loginUserInfoRespDTO.getHeadPortrait(); String headPortrait = loginUserInfoRespDTO.getHeadPortrait();
@ -89,11 +89,11 @@ public class NwUserLoginService {
String createUserName = loginUserInfoRespDTO.getCreateUserName(); String createUserName = loginUserInfoRespDTO.getCreateUserName();
String createTime = loginUserInfoRespDTO.getCreateTime(); String createTime = loginUserInfoRespDTO.getCreateTime();
String updateUserName = loginUserInfoRespDTO.getUpdateUserName(); String updateUserName = loginUserInfoRespDTO.getUpdateUserName();
String updateTime = loginUserInfoRespDTO.getUpdateTime(); String updateTime = loginUserInfoRespDTO.getUpdateTime();*/
//根据用户名查询用户 //根据用户名查询用户
SysUser sysUser = userService.selectUserByUserName(userName); SysUser sysUser = userService.selectUserByUserName(userName);
if (null == sysUser) { if (null == sysUser) {
return R.fail(401,"该用户不存在,请先注册"); return R.fail(NwLoginConstants.LOGIN_ERROR_CODE,NwLoginConstants.LOGIN_ERROR_MESSAGE);
//未找到该用户新增该用户 //未找到该用户新增该用户
/* SysUser user = new SysUser(); /* SysUser user = new SysUser();
user.setUserName(userName); user.setUserName(userName);