用户更新

main
cheney 11 months ago
parent 4e1f0fe63f
commit 0842bf0736
  1. 1
      nakadai/src/main/java/com/huoran/nakadai/entity/UserInfo.java
  2. 6
      users/src/main/java/com/huoran/users/mapper/xml/HrUserAccountMapper.xml
  3. 9
      users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java

@ -76,6 +76,7 @@ public class UserInfo implements Serializable {
private Integer isDel; private Integer isDel;
@ApiModelProperty(value = "最后登陆时间") @ApiModelProperty(value = "最后登陆时间")
@TableField(fill = FieldFill.INSERT)
private Date lastLoginTime; private Date lastLoginTime;
@ApiModelProperty(value = "绑定多个角色id") @ApiModelProperty(value = "绑定多个角色id")

@ -843,10 +843,10 @@
u.login_number, u.login_number,
CASE CASE
WHEN count(ai.id) > 0 THEN ai.real_name WHEN count(ai.id) > 0 THEN ai.real_name
ELSE u.user_name ELSE GROUP_CONCAT(u.user_name)
END as user_name, END as user_name,
a.work_number, a.work_number,
s.platform_name, GROUP_CONCAT(s.platform_name) as platformName,
CASE CASE
WHEN count(ai.id) > 0 THEN '已认证' WHEN count(ai.id) > 0 THEN '已认证'
ELSE '未认证' ELSE '未认证'
@ -881,7 +881,7 @@
AND ( a.phone LIKE CONCAT('%',#{userInfoReq.searchContent},'%') AND ( a.phone LIKE CONCAT('%',#{userInfoReq.searchContent},'%')
OR u.user_name LIKE CONCAT('%',#{userInfoReq.searchContent},'%')) OR u.user_name LIKE CONCAT('%',#{userInfoReq.searchContent},'%'))
</if> </if>
GROUP BY a.id GROUP BY a.app_open_id
ORDER BY ORDER BY
create_time DESC create_time DESC
</select> </select>

@ -443,8 +443,15 @@ public class HrUserAccountServiceImpl extends ServiceImpl<HrUserAccountMapper, H
//查询账号详情List //查询账号详情List
List<HrUserAccount> userAccountList = hrUserAccountMapper.selectList(new QueryWrapper<HrUserAccount>() List<HrUserAccount> userAccountList = hrUserAccountMapper.selectList(new QueryWrapper<HrUserAccount>()
.eq("app_open_id", openId)); .eq("app_open_id", openId));
//查询个人端用户信息
Integer userId = null;
for (HrUserAccount hrUserAccount : userAccountList) {
if (hrUserAccount.getPlatformId().equals("7")){
userId = hrUserAccount.getUserId();
}
}
//查询用户信息 //查询用户信息
HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userAccountList.get(0).getUserId()); HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userId);
if (StringUtils.isNotBlank(url)){ if (StringUtils.isNotBlank(url)){
hrUserInfo.setUserAvatars(url); hrUserInfo.setUserAvatars(url);
} }

Loading…
Cancel
Save