Browse Source

迁入需要将用户状态置为-正常

master
yinzuomei 3 years ago
parent
commit
7e7c1a8be5
  1. 5
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcMoveInRecordServiceImpl.java

5
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcMoveInRecordServiceImpl.java

@ -7,6 +7,7 @@ import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult;
import com.epmet.commons.tools.enums.DictTypeEnum;
import com.epmet.commons.tools.enums.IcResiUserSubStatusEnum;
import com.epmet.commons.tools.exception.EpmetErrorCode;
import com.epmet.commons.tools.exception.EpmetException;
import com.epmet.commons.tools.page.PageData;
@ -186,6 +187,8 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao
change.setCustomerId(formDTO.getCustomerId());
change.setStaffId(formDTO.getUserId());
IcResiUserEntity entity = ConvertUtils.sourceToTarget(formDTO, IcResiUserEntity.class);
//状态改为0正常
entity.setStatus(NumConstant.ZERO_STR);
//4-1.本社区下正常状态居民且房屋不一样并选择了更新【只更新居民信息,生成变更记录,不生成变更明细】
if (StringUtils.isNotBlank(resiDTO.getResiAgencyId()) && staffInfo.getAgencyId().equals(resiDTO.getResiAgencyId())
&& "0".equals(resiDTO.getStatus()) && !resiDTO.getResiHomeId().equals(formDTO.getHomeId())
@ -216,6 +219,8 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao
//4-4.客户下不存在的居民(新数据)【新增居民信息,不生成变更记录、变更明细(因为十八类默认都是否)】
entity.setAgencyId(staffInfo.getAgencyId());
entity.setPids(staffInfo.getAgencyPIds());
//迁入管理-新增的居民,存储03
entity.setSubStatus(IcResiUserSubStatusEnum.MOVE_IN.getSubStatus());
icResiUserService.insert(entity);
change.setOrigin("add");
change.setIcUserId(entity.getId());

Loading…
Cancel
Save