修改ID主键使用uuid

This commit is contained in:
yy2205 2025-05-08 16:45:36 +08:00
parent d773dae6e7
commit 07bd4ccb79

View File

@ -503,8 +503,18 @@ public class EcganalysisparasServiceImpl extends ServiceImpl<EcganalysisparasMap
.collect(Collectors.toList());
// return;
ecganalysisparasMapper.insertBatch(ecgDO);
patientexamlistMapper.insertBatch(patientDOList);
if (!ecgDO.isEmpty()) {
ecgDO.forEach(e -> {
e.setId(UUID.randomUUID().toString());
});
ecganalysisparasMapper.insertBatch(ecgDO);
}
if (!patientDOList.isEmpty()) {
patientDOList.forEach(e -> {
e.setId(UUID.randomUUID().toString());
});
patientexamlistMapper.insertBatch(patientDOList);
}
// 这里可以对invalidRecords进行日志记录或其他处理
}