|
|
|
@ -19,13 +19,11 @@ import com.huoran.common.response.R; |
|
|
|
|
import com.huoran.common.utils.AliyunOssUtil; |
|
|
|
|
import com.huoran.common.utils.DateUtil; |
|
|
|
|
import com.huoran.common.utils.MD5; |
|
|
|
|
import com.huoran.users.entity.HrPersonalFile; |
|
|
|
|
import com.huoran.users.entity.HrUserAccount; |
|
|
|
|
import com.huoran.users.entity.HrUserInfo; |
|
|
|
|
import com.huoran.users.entity.SysPlatform; |
|
|
|
|
import com.huoran.users.entity.*; |
|
|
|
|
import com.huoran.users.entity.req.*; |
|
|
|
|
import com.huoran.users.entity.res.*; |
|
|
|
|
import com.huoran.users.entity.vo.CheckVo; |
|
|
|
|
import com.huoran.users.mapper.EnterpriseCertificationMapper; |
|
|
|
|
import com.huoran.users.mapper.HrPersonalFileMapper; |
|
|
|
|
import com.huoran.users.mapper.HrUserAccountMapper; |
|
|
|
|
import com.huoran.users.mapper.HrUserInfoMapper; |
|
|
|
@ -63,7 +61,7 @@ public class HrUserAccountServiceImpl extends ServiceImpl<HrUserAccountMapper, H |
|
|
|
|
private HrUserInfoMapper hrUserInfoMapper; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private HrUserInfoServiceImpl hrUserInfoService; |
|
|
|
|
private EnterpriseCertificationMapper enterpriseCertificationMapper; |
|
|
|
|
@Autowired |
|
|
|
|
private HrPersonalFileMapper hrPersonalFileMapper; |
|
|
|
|
@Autowired |
|
|
|
@ -405,6 +403,33 @@ public class HrUserAccountServiceImpl extends ServiceImpl<HrUserAccountMapper, H |
|
|
|
|
return res; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public UserInfoDetailsRes viewUserDetails(Integer userId) { |
|
|
|
|
UserInfoDetailsRes res = new UserInfoDetailsRes(); |
|
|
|
|
|
|
|
|
|
//查询用户信息
|
|
|
|
|
HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userId); |
|
|
|
|
|
|
|
|
|
//查询账号详情List
|
|
|
|
|
HrUserAccount userAccount = hrUserAccountMapper.selectOne(new QueryWrapper<HrUserAccount>() |
|
|
|
|
.eq("user_id", userId)); |
|
|
|
|
|
|
|
|
|
HrUserAccount parameter = new HrUserAccount(); |
|
|
|
|
if (userAccount.getPhone() == null || userAccount.getPhone().equals("")) { |
|
|
|
|
parameter.setUserId(hrUserInfo.getUserId()); |
|
|
|
|
} else { |
|
|
|
|
parameter.setPhone(userAccount.getPhone()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<EnterpriseCertification> enterpriseCertificationList = enterpriseCertificationMapper.selectList( |
|
|
|
|
new QueryWrapper<EnterpriseCertification>().eq("account_id", userAccount.getId())); |
|
|
|
|
|
|
|
|
|
res.setHrUserInfo(hrUserInfo); |
|
|
|
|
res.setEnterpriseCertificationList(enterpriseCertificationList); |
|
|
|
|
res.setUserAccount(userAccount); |
|
|
|
|
return res; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R oneClickEnableVerification(Integer accountId) { |
|
|
|
|
|
|
|
|
|