|
|
@ -5,6 +5,7 @@ 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.enums.IdCardTypeEnum; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
@ -12,6 +13,7 @@ import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.IdCardRegexUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dao.IcMoveInRecordDao; |
|
|
|
import com.epmet.dto.ChangeWelfareDTO; |
|
|
@ -168,6 +170,16 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao |
|
|
|
IcResiUserEntity entity = ConvertUtils.sourceToTarget(formDTO, IcResiUserEntity.class); |
|
|
|
//状态改为0正常
|
|
|
|
entity.setStatus(NumConstant.ZERO_STR); |
|
|
|
|
|
|
|
// 证件类型判断----start----
|
|
|
|
IdCardRegexUtils regex = IdCardRegexUtils.parse(formDTO.getIdCard()); |
|
|
|
if (regex == null) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "证件号解析错误", "证件号解析错误"); |
|
|
|
} |
|
|
|
IdCardTypeEnum typeEnum = regex.getTypeEnum(); |
|
|
|
entity.setIdCardType(typeEnum.getType()); |
|
|
|
// 证件类型判断----end----
|
|
|
|
|
|
|
|
//4-1.本社区下正常状态居民且房屋不一样并选择了更新【只更新居民信息,插入调动记录,生成变更记录,不生成变更明细】
|
|
|
|
if (StringUtils.isNotBlank(resiDTO.getResiAgencyId()) && staffInfo.getAgencyId().equals(resiDTO.getResiAgencyId()) |
|
|
|
&& "0".equals(resiDTO.getStatus()) && !resiDTO.getResiHomeId().equals(formDTO.getHomeId()) |
|
|
|