修改ID主键使用uuid
This commit is contained in:
parent
d773dae6e7
commit
07bd4ccb79
@ -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进行日志记录或其他处理
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user