Browse Source

家庭成员迁出

master
zhaoqifeng 3 years ago
parent
commit
96074ccbe1
  1. 4
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcResiUserConfirmDTO.java
  2. 17
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserConfirmServiceImpl.java

4
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcResiUserConfirmDTO.java

@ -187,4 +187,8 @@ public class IcResiUserConfirmDTO implements Serializable {
*/
private String operationDescribe;
/**
* 迁出申请状态 0未审核 1已通过 2未通过 3没有迁出申请
*/
private String moveOutStatus;
}

17
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserConfirmServiceImpl.java

@ -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);
}

Loading…
Cancel
Save