parent
84d6fbd401
commit
a3f9ea6b10
@ -878,7 +878,7 @@ public class DataImportBatchServiceImpl implements DataImportBatchService {
|
||||
continue;
|
||||
}
|
||||
Map<String, Object> m = customMapper.getById("new_id", reference_to, value);
|
||||
if (!m.isEmpty() && m.get("new_id") != null) {
|
||||
if (m!= null && !m.isEmpty() && m.get("new_id") != null) {
|
||||
account.put(field, m.get("new_id"));
|
||||
}else {
|
||||
message = "对象类型:" + api + "的数据:"+ map.get("Id") +"的引用对象:" + reference_to + "的数据:"+ map.get(field) +"异常!";
|
||||
@ -1336,7 +1336,7 @@ public class DataImportBatchServiceImpl implements DataImportBatchService {
|
||||
}
|
||||
|
||||
Map<String, Object> m = customMapper.getById("new_id", reference_to, data.get(j - 1).get(dataField.getField()).toString());
|
||||
if (!m.isEmpty() && m.get("new_id") != null) {
|
||||
if (m!= null && !m.isEmpty() && m.get("new_id") != null) {
|
||||
account.put(dataField.getField(), m.get("new_id"));
|
||||
}else {
|
||||
message = "对象类型:" + api + "的数据:"+ data.get(j - 1).get("Id") +"的引用对象:" + reference_to + "的数据:"+ data.get(j - 1).get(dataField.getField()) +"异常!";
|
||||
|
||||
@ -863,7 +863,7 @@ public class DataImportNewServiceImpl implements DataImportNewService {
|
||||
continue;
|
||||
}
|
||||
Map<String, Object> m = customMapper.getById("new_id", reference_to, value);
|
||||
if (!m.isEmpty() && m.get("new_id") != null) {
|
||||
if (m!= null && !m.isEmpty() && m.get("new_id") != null) {
|
||||
account.setField(field, m.get("new_id"));
|
||||
}else {
|
||||
message = "对象类型:" + api + "的数据:"+ map.get("Id") +"的引用对象:" + reference_to + "的数据:"+ map.get(field) +"异常!";
|
||||
@ -1080,7 +1080,7 @@ public class DataImportNewServiceImpl implements DataImportNewService {
|
||||
continue;
|
||||
}
|
||||
Map<String, Object> m = customMapper.getById("new_id", reference_to, value);
|
||||
if (!m.isEmpty() && m.get("new_id") != null) {
|
||||
if (m!= null && !m.isEmpty() && m.get("new_id") != null) {
|
||||
account.setField(field, m.get("new_id"));
|
||||
}else {
|
||||
message = "对象类型:" + api + "的数据:"+ map.get("Id") +"的引用对象:" + reference_to + "的数据:"+ map.get(field) +"异常!";
|
||||
@ -3582,7 +3582,7 @@ public class DataImportNewServiceImpl implements DataImportNewService {
|
||||
continue;
|
||||
}
|
||||
Map<String, Object> m = customMapper.getById("new_id", reference_to, value);
|
||||
if (!m.isEmpty() && m.get("new_id") != null) {
|
||||
if (m!= null && !m.isEmpty() && m.get("new_id") != null) {
|
||||
account.setField(field, m.get("new_id"));
|
||||
}else {
|
||||
message = "对象类型:" + api + "的数据:"+ data.get(j - 1).get("Id") +"的引用对象:" + reference_to + "的数据:"+ data.get(j - 1).get(field) +"异常!";
|
||||
@ -3817,7 +3817,7 @@ public class DataImportNewServiceImpl implements DataImportNewService {
|
||||
continue;
|
||||
}
|
||||
Map<String, Object> m = customMapper.getById("new_id", reference_to, value);
|
||||
if (!m.isEmpty() && m.get("new_id") != null) {
|
||||
if (m!= null && !m.isEmpty() && m.get("new_id") != null) {
|
||||
account.setField(field, m.get("new_id"));
|
||||
}else {
|
||||
message = "对象类型:" + api + "的数据:"+ data.get(j - 1).get("Id") +"的引用对象:" + reference_to + "的数据:"+ data.get(j - 1).get(field) +"异常!";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user