update
This commit is contained in:
+16
-3
@@ -843,7 +843,9 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
sarFileSplitItemsValEO.setItemId(newItemValId);
|
||||
sarFileSplitItemsValEO.setCreationTime(new Date());
|
||||
}
|
||||
this.documentSplitMapper.addBatchItemsVal(sarFileSplitItemsValEOS);
|
||||
if (CollectionUtils.isNotEmpty(sarFileSplitItemsValEOS)) {
|
||||
this.documentSplitMapper.addBatchItemsVal(sarFileSplitItemsValEOS);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1240,10 +1242,21 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
|
||||
private void manageData(Map<String, Object> resultMap, StringBuilder fieldsBuilder, List<String> valuesList) {
|
||||
// 所有key(字段名)
|
||||
resultMap.forEach((k, v) -> {
|
||||
// resultMap.forEach((k, v) -> {
|
||||
// fieldsBuilder.append(k).append(",");
|
||||
// valuesList.add(v.toString());
|
||||
// });
|
||||
|
||||
for (Map.Entry<String, Object> map : resultMap.entrySet()) {
|
||||
String k = map.getKey();
|
||||
if (null == map.getValue()) {
|
||||
continue;
|
||||
}
|
||||
String v = map.getValue().toString();
|
||||
fieldsBuilder.append(k).append(",");
|
||||
valuesList.add(v.toString());
|
||||
});
|
||||
}
|
||||
|
||||
fieldsBuilder.deleteCharAt(fieldsBuilder.length() - 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user