|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.epmet.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
@ -159,8 +160,20 @@ public class IcResiUserConfirmServiceImpl extends BaseServiceImpl<IcResiUserConf |
|
|
|
@Override |
|
|
|
public Result<IcResiUserConfirmDTO> getMemberDetail(IcResiUserConfirmGetDTO dto) { |
|
|
|
IcResiUserConfirmDTO result = icResiUserDao.selectMemberDetail(dto.getIcResiUserId()); |
|
|
|
if (null != result && StringUtils.isBlank(result.getGender())) { |
|
|
|
result.setGender(""); |
|
|
|
if (null != result) { |
|
|
|
LambdaQueryWrapper<IcResiUserConfirmEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(IcResiUserConfirmEntity::getIcResiUserId, dto.getIcResiUserId()); |
|
|
|
wrapper.in(IcResiUserConfirmEntity::getSubmitType, Arrays.asList("in", "out")); |
|
|
|
wrapper.orderByDesc(IcResiUserConfirmEntity::getCreatedTime); |
|
|
|
List<IcResiUserConfirmEntity> list = baseDao.selectList(wrapper); |
|
|
|
if (CollectionUtils.isNotEmpty(list)) { |
|
|
|
result.setMoveOutStatus(list.get(NumConstant.ZERO).getConfirmResult()); |
|
|
|
} else { |
|
|
|
result.setMoveOutStatus(NumConstant.THREE_STR); |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(result.getGender())) { |
|
|
|
result.setGender(""); |
|
|
|
} |
|
|
|
} |
|
|
|
return new Result().ok(result); |
|
|
|
} |
|
|
|