提交 e5d31d95 作者: 925993793@qq.com

导入信息源bug修改

上级 ba963966
......@@ -165,7 +165,10 @@ public class ExternalController {
header.put("信息源地址", "infoSourceUrl");
reader.setHeaderAlias(header);
List<ExternalSubjectInfoSourceMap> infoSourceList = reader.read(0, 1, ExternalSubjectInfoSourceMap.class);
infoSourceList.forEach(infoSource -> infoSource.setSubjectId(subjectId));
infoSourceList.forEach(infoSource -> {
infoSource.setSubjectId(subjectId);
infoSource.setType(1);
});
externalSubjectInfoSourceMapService.saveBatch(infoSourceList);
} catch (IOException e) {
e.printStackTrace();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论