test
parent
81083e45b2
commit
e37f2ff17f
|
|
@ -206,6 +206,7 @@ public class OrgPersonnelExcelImporter {
|
|||
transactionTemplate.execute(status -> {
|
||||
orgPersonnelDomainService.add(personnelEntity);
|
||||
if (!CollectionUtils.isEmpty(personnelCertEntities)) {
|
||||
personnelCertEntities.forEach(it -> it.setPersonnelId(personnelEntity.getId()));
|
||||
Db.saveBatch(personnelCertEntities);
|
||||
}
|
||||
return null;
|
||||
|
|
@ -238,7 +239,6 @@ public class OrgPersonnelExcelImporter {
|
|||
|
||||
List<OrgPersonnelCertDO> orgPersonnelCertDOList = new ArrayList<>(personnelCertEntities.size());
|
||||
for (OrgPersonnelCertEntity personnelCertEntity : personnelCertEntities) {
|
||||
personnelCertEntity.setPersonnelId(personnelEntity.getId());
|
||||
OrgPersonnelCertDO orgPersonnelCertDO = orgPersonnelCertConvertor.entityToDO(personnelCertEntity);
|
||||
orgPersonnelCertDO.setOrgId(personnelCertEntity.getOrgId());
|
||||
orgPersonnelCertDOList.add(orgPersonnelCertDO);
|
||||
|
|
|
|||
Loading…
Reference in New Issue