个人中心

master
yuqin 3 years ago
parent 4b0d88c1d9
commit e8c75f2c6d
  1. 10
      src/main/java/com/yipin/liuwanr/controller/HrUserAccountController.java
  2. 15
      src/main/java/com/yipin/liuwanr/entity/HrUserAccount.java
  3. 2
      src/main/java/com/yipin/liuwanr/service/IHrUserAccountService.java
  4. 11
      src/main/java/com/yipin/liuwanr/service/impl/HrUserAccountServiceImpl.java
  5. 3
      src/main/resources/mapper/tms/HrUserAccountMapper.xml

@ -2,6 +2,7 @@ package com.yipin.liuwanr.controller;
import com.github.pagehelper.PageInfo;
import com.yipin.liuwanr.entity.HrUserAccount;
import com.yipin.liuwanr.entity.PageResult;
import com.yipin.liuwanr.entity.ServiceConfig;
import com.yipin.liuwanr.entity.response.ResponseResult;
@ -80,6 +81,15 @@ public class HrUserAccountController {
return ResponseResult.SUCCESS(result);
}
/**
* 查看个人账号信息详情
*/
@GetMapping("/selectAccountDetail")
ResponseResult selectAccountDetail(@RequestParam("accountId") Integer accountId) {
HrUserAccount result = iHrUserAccountService.selectAccountDetail(accountId);
return ResponseResult.SUCCESS(result);
}
/**
* 查询用户管理列表(不可用)
*/

@ -73,6 +73,21 @@ public class HrUserAccount implements Serializable {
*/
private Integer isdel;
/**
* 邮箱
*/
private String email;
/**
* 手机号
*/
private String phone;
/**
* 微信号
*/
private String wechatId;
/**
* 创建时间
*/

@ -26,4 +26,6 @@ public interface IHrUserAccountService extends IService<HrUserAccount> {
int delUserAccount(Integer userId,Integer isdel);
UserSysDetailRes selectUserSysBind(Integer userId, Integer platformId);
HrUserAccount selectAccountDetail(Integer accountId);
}

@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@ -34,9 +35,9 @@ import java.util.stream.Collectors;
*/
@Service
public class HrUserAccountServiceImpl extends ServiceImpl<HrUserAccountMapper, HrUserAccount> implements IHrUserAccountService {
@Autowired
@Resource
private HrUserAccountMapper hrUserAccountMapper;
@Autowired
@Resource
private HrUserInfoMapper hrUserInfoMapper;
public List queryPage(Integer page, Integer size, UserInfoReq userInfoReq) {
@ -98,4 +99,10 @@ public class HrUserAccountServiceImpl extends ServiceImpl<HrUserAccountMapper, H
res.setMap(group2);
return res;
}
@Override
public HrUserAccount selectAccountDetail(Integer accountId) {
return hrUserAccountMapper.selectOne(new QueryWrapper<HrUserAccount>().eq("id",accountId));
}
}

@ -13,6 +13,9 @@
<result column="school_id" property="schoolId" />
<result column="platform_id" property="platformId" />
<result column="type" property="type" />
<result column="email" property="email" />
<result column="phone" property="phone" />
<result column="wechat_id" property="wechatId" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
</resultMap>

Loading…
Cancel
Save