|
|
@@ -320,6 +320,22 @@ public class MedicalInsRuleProjectServiceImpl extends ServiceImpl<MedicalInsRule
|
|
|
return item;
|
|
|
}).collect(Collectors.toList());
|
|
|
this.saveBatch(list, 500);
|
|
|
+ if (fieldList.contains(MEDICALDIAGNOSECODE) || fieldList.contains(CORRELATIONMEDICALDIAGNOSECODE)) {
|
|
|
+ Integer finalId1 = id;
|
|
|
+ list.stream().forEach(it -> {
|
|
|
+ if (StringUtils.hasText(it.getMedicalDiagnoseCode())) {
|
|
|
+ List<String> code = Arrays.asList(it.getMedicalDiagnoseCode().split("\n"));
|
|
|
+ Integer projectCodeType = 1;
|
|
|
+ diagnoseService.saveDiagnose(code, projectCodeType, finalId1, it.getProjectCode());
|
|
|
+ }
|
|
|
+ if (StringUtils.hasText(it.getCorrelationMedicalDiagnoseCode())) {
|
|
|
+ List<String> code = Arrays.asList(it.getCorrelationMedicalDiagnoseCode().split("\n"));
|
|
|
+ Integer projectCodeType = 2;
|
|
|
+ diagnoseService.saveDiagnose(code, projectCodeType, finalId1, it.getProjectCode());
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
return Result.ok("文件导入成功!数据行数:" + list.size());
|
|
|
}
|
|
|
boolean hasCode = false;
|