浏览代码

单点调整用工号关联

zhuang 11 月之前
父节点
当前提交
52f4ea2972

+ 4 - 2
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxLoginServiceImpl.java

@@ -158,9 +158,11 @@ public class ZhcxLoginServiceImpl implements ZhcxLoginService {
                 if(info.getString("code").equals("200")){
                     JSONObject data = info.getJSONObject("data");
                     log.info("获取振华用户信息返回结果:" + data);
-                    String mobile = data.getString("mobile");
+                    //String mobile = data.getString("mobile");
+                    String logName = data.getString("logName");
                     LambdaQueryWrapper<SysUserDo> queryWrapper = Wrappers.lambdaQuery();
-                    queryWrapper.and(i -> i.eq(SysUserDo::getMobile, mobile));
+                    //queryWrapper.and(i -> i.eq(SysUserDo::getMobile, mobile));
+                    queryWrapper.and(i -> i.eq(SysUserDo::getCode, logName));
                     SysUserDo sysUserDo = sysUserService.getOne(queryWrapper);
                     if (sysUserDo != null) {
                         JwtAuthenticationRequest jwtAuthenticationRequest = new JwtAuthenticationRequest(sysUserDo.getId(), sysUserDo.getAccount(), sysUserDo.getName());