|
|
@ -204,6 +204,9 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans |
|
|
|
recordEntity.setTransferTime(formDTO.getTransferTime()); |
|
|
|
recordEntity.setRemark(formDTO.getRemark()); |
|
|
|
if ("in".equals(formDTO.getType())) { |
|
|
|
//变动:迁出类型为本客户内的房子
|
|
|
|
//迁出:迁出类型为本客户内的房子
|
|
|
|
//迁入:同社区的居民,状态正常,改变了房屋 目前这三种情况 type="in";
|
|
|
|
recordEntity.setNewCustomerId(resiUserDTO.getCustomerId()); |
|
|
|
recordEntity.setNewAgencyId(formDTO.getNewAgencyId()); |
|
|
|
recordEntity.setNewAgencyName(result2.getAgencyDTO().getOrganizationName()); |
|
|
@ -278,7 +281,7 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans |
|
|
|
list.add(outEntity); |
|
|
|
} |
|
|
|
//原来的变动,并且是迁入到同客户内走下面的流程
|
|
|
|
if ("in".equals(formDTO.getType()) && IcResiUserConstant.CHANGE.equals(origin)) { |
|
|
|
if ("in".equals(formDTO.getType()) && IcResiUserConstant.CHANGE.equals(origin)) {//todo
|
|
|
|
inEntity = new IcUserChangeDetailedEntity(); |
|
|
|
inEntity.setCustomerId(formDTO.getCustomerId()); |
|
|
|
inEntity.setIcUserChangeRecordId(icUserChangeRecordId); |
|
|
@ -295,7 +298,8 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans |
|
|
|
inEntity.setFieldName(cf.getColumnName()); |
|
|
|
inEntity.setValue(1); |
|
|
|
list.add(inEntity); |
|
|
|
}else if(IcResiUserConstant.IN.equals(origin)||IcResiUserConstant.BIRTH.equals(origin)){ |
|
|
|
}else if(IcResiUserConstant.IN.equals(origin)){ |
|
|
|
//||IcResiUserConstant.BIRTH.equals(origin)
|
|
|
|
// 迁入和出生的
|
|
|
|
inEntity = new IcUserChangeDetailedEntity(); |
|
|
|
inEntity.setCustomerId(formDTO.getCustomerId()); |
|
|
@ -354,14 +358,16 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans |
|
|
|
changeRecordEntity.setOperatorName(staffInfoCache.getRealName()); |
|
|
|
changeRecordEntity.setIcUserName(resiUserDTO.getName()); |
|
|
|
//迁出存调动,死亡存注销
|
|
|
|
if (IcResiUserConstant.OUT.equals(formDTO.getOrigin())) { |
|
|
|
if (IcResiUserConstant.OUT.equals(formDTO.getOrigin())||IcResiUserConstant.CHANGE.equals(formDTO.getOrigin())) { |
|
|
|
changeRecordEntity.setType("transfer"); |
|
|
|
changeRecordEntity.setTypeName("调动"); |
|
|
|
} else if (IcResiUserConstant.DIED.equals(formDTO.getOrigin())) { |
|
|
|
changeRecordEntity.setType("logout"); |
|
|
|
changeRecordEntity.setTypeName("注销"); |
|
|
|
} else if (IcResiUserConstant.IN.equals(formDTO.getOrigin()) || IcResiUserConstant.BIRTH.equals(formDTO.getOrigin())) { |
|
|
|
//迁入和出生都是新增???
|
|
|
|
} else if (IcResiUserConstant.IN.equals(formDTO.getOrigin())) { |
|
|
|
changeRecordEntity.setType("add"); |
|
|
|
changeRecordEntity.setTypeName("新增"); |
|
|
|
}else if(IcResiUserConstant.ADD.equals(formDTO.getOrigin())){ |
|
|
|
changeRecordEntity.setType("add"); |
|
|
|
changeRecordEntity.setTypeName("新增"); |
|
|
|
} |
|
|
@ -458,8 +464,8 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "查找迁入后的组织、网格、小区、楼栋、单元、房屋信息失败", "迁出至的房屋信息异常"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (IcResiUserConstant.IN.equals(formDTO.getOrigin()) |
|
|
|
|| IcResiUserConstant.BIRTH.equals(formDTO.getOrigin())) { |
|
|
|
if (IcResiUserConstant.IN.equals(formDTO.getOrigin())) { |
|
|
|
//|| IcResiUserConstant.BIRTH.equals(formDTO.getOrigin())
|
|
|
|
//出生管理、迁入管理的查询当前选择的房屋信息
|
|
|
|
IcResiUserOrgMsgFormDTO orgMsgFormDTO2 = new IcResiUserOrgMsgFormDTO(); |
|
|
|
orgMsgFormDTO2.setCustomerId(formDTO.getCustomerId()); |
|
|
|