|
|
@ -450,7 +450,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
public void persistIcResiBaseInfo(Map<String, ColumnWrapper> itemIdAndColumnWrapper, List<Map<Integer, String>> dataRows, |
|
|
|
String currUserAgencyId, Map<Integer, String> checkBoxOptionColumnIdxAndLabel, |
|
|
|
String currUserAgencyPids, String currentUserId, String tableName) { |
|
|
|
|
|
|
|
String loginUserCustomerId = EpmetRequestHolder.getLoginUserCustomerId(); |
|
|
|
// 遍历每一行,将行内容转化为
|
|
|
|
for (Map<Integer, String> row : dataRows) { |
|
|
|
|
|
|
@ -463,7 +463,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
//默认新增
|
|
|
|
columnAndValues.put("SUB_STATUS", IcResiUserSubStatusEnum.IMPORT.getSubStatus()); |
|
|
|
String idCard = columnAndValues.get("ID_CARD"); |
|
|
|
Map<String, String> existingResiMap = icResiUserDao.selectResiInfoMap(idCard, null); |
|
|
|
Map<String, String> existingResiMap = icResiUserDao.selectResiInfoMap(loginUserCustomerId, idCard, null); |
|
|
|
|
|
|
|
if (existingResiMap == null) { |
|
|
|
// 新导入的居民,因为还没有读取子sheet,所以这些居民类别没有办法获取,先默认设置成0,后面读取子sheet的时候再更新
|
|
|
@ -706,7 +706,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
} |
|
|
|
|
|
|
|
// 检查用户是否存在
|
|
|
|
Map<String, String> existResiInfoMap = icResiUserDao.selectResiInfoMap(idCard, null); |
|
|
|
Map<String, String> existResiInfoMap = icResiUserDao.selectResiInfoMap(loginUserCustomerId, idCard, null); |
|
|
|
|
|
|
|
if (existResiInfoMap == null || existResiInfoMap.size() == 0) { |
|
|
|
throw new RenException(EpmetErrorCode.RESI_NOT_FOUND.getCode(), String.format("身份证号为【%s】的居民信息未找到,请确认该居民信息存在", idCard)); |
|
|
@ -791,7 +791,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
"身份证号未填写"); |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, String> resiInfoMap = icResiUserDao.selectResiInfoMap(idCard, null); |
|
|
|
Map<String, String> resiInfoMap = icResiUserDao.selectResiInfoMap(customerId, idCard, null); |
|
|
|
|
|
|
|
if (resiInfoMap == null || resiInfoMap.size() == 0) { |
|
|
|
throw new RenException(EpmetErrorCode.RESI_NOT_FOUND.getCode(), String.format("身份证号为【%s】的居民信息未找到,请确认该居民信息存在", idCard)); |
|
|
@ -1717,7 +1717,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
Map<String, String> oldCategories = oldData.getCategories(); |
|
|
|
Map<String, String> newCategories = newData.getCategories(); |
|
|
|
|
|
|
|
Map<String, String> resiInfoMap = icResiUserDao.selectResiInfoMap(null, resiId); |
|
|
|
Map<String, String> resiInfoMap = icResiUserDao.selectResiInfoMap(customerId, null, resiId); |
|
|
|
|
|
|
|
fillResiSubCategoryInfo4TransferAndCategoryChange(oldData, newData, resiInfoMap); |
|
|
|
|
|
|
@ -1848,7 +1848,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
for (Map.Entry<String, ResiImportChangedData> resi : transferedResis.entrySet()) { |
|
|
|
|
|
|
|
String resiId = resi.getKey(); |
|
|
|
Map<String, String> resiInfoMap = icResiUserDao.selectResiInfoMap(null, resiId); |
|
|
|
Map<String, String> resiInfoMap = icResiUserDao.selectResiInfoMap(customerId, null, resiId); |
|
|
|
String resiName = resiInfoMap.get("NAME"); |
|
|
|
String pids = resiInfoMap.get("PIDS"); |
|
|
|
|
|
|
|