From e8c75f2c6d43d281415f0d970365b2b0cb6d6272 Mon Sep 17 00:00:00 2001 From: yuqin <1627766274@qq.com> Date: Thu, 24 Jun 2021 14:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/HrUserAccountController.java | 10 ++++++++++ .../com/yipin/liuwanr/entity/HrUserAccount.java | 15 +++++++++++++++ .../liuwanr/service/IHrUserAccountService.java | 2 ++ .../service/impl/HrUserAccountServiceImpl.java | 11 +++++++++-- .../resources/mapper/tms/HrUserAccountMapper.xml | 3 +++ 5 files changed, 39 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/controller/HrUserAccountController.java b/src/main/java/com/yipin/liuwanr/controller/HrUserAccountController.java index aec31e3..8f280bf 100644 --- a/src/main/java/com/yipin/liuwanr/controller/HrUserAccountController.java +++ b/src/main/java/com/yipin/liuwanr/controller/HrUserAccountController.java @@ -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); + } + /** * 查询用户管理列表(不可用) */ diff --git a/src/main/java/com/yipin/liuwanr/entity/HrUserAccount.java b/src/main/java/com/yipin/liuwanr/entity/HrUserAccount.java index 4113494..8f9a65d 100644 --- a/src/main/java/com/yipin/liuwanr/entity/HrUserAccount.java +++ b/src/main/java/com/yipin/liuwanr/entity/HrUserAccount.java @@ -73,6 +73,21 @@ public class HrUserAccount implements Serializable { */ private Integer isdel; + /** + * 邮箱 + */ + private String email; + + /** + * 手机号 + */ + private String phone; + + /** + * 微信号 + */ + private String wechatId; + /** * 创建时间 */ diff --git a/src/main/java/com/yipin/liuwanr/service/IHrUserAccountService.java b/src/main/java/com/yipin/liuwanr/service/IHrUserAccountService.java index c73e81c..ac8e7be 100644 --- a/src/main/java/com/yipin/liuwanr/service/IHrUserAccountService.java +++ b/src/main/java/com/yipin/liuwanr/service/IHrUserAccountService.java @@ -26,4 +26,6 @@ public interface IHrUserAccountService extends IService { int delUserAccount(Integer userId,Integer isdel); UserSysDetailRes selectUserSysBind(Integer userId, Integer platformId); + + HrUserAccount selectAccountDetail(Integer accountId); } diff --git a/src/main/java/com/yipin/liuwanr/service/impl/HrUserAccountServiceImpl.java b/src/main/java/com/yipin/liuwanr/service/impl/HrUserAccountServiceImpl.java index b65db85..93f7a29 100644 --- a/src/main/java/com/yipin/liuwanr/service/impl/HrUserAccountServiceImpl.java +++ b/src/main/java/com/yipin/liuwanr/service/impl/HrUserAccountServiceImpl.java @@ -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 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().eq("id",accountId)); + } } diff --git a/src/main/resources/mapper/tms/HrUserAccountMapper.xml b/src/main/resources/mapper/tms/HrUserAccountMapper.xml index 054706b..4a9466c 100644 --- a/src/main/resources/mapper/tms/HrUserAccountMapper.xml +++ b/src/main/resources/mapper/tms/HrUserAccountMapper.xml @@ -13,6 +13,9 @@ + + +