|
|
@ -241,12 +241,21 @@ public class IcVaccinePrarmeterServiceImpl extends BaseServiceImpl<IcVaccinePrar |
|
|
|
List<IcVaccinePrarmeterImportExcel> needInsert = groupByStatus.get(false); |
|
|
|
if (CollectionUtils.isNotEmpty(needInsert)){ |
|
|
|
List<IcVaccinePrarmeterEntity> entities = ConvertUtils.sourceToTarget(needInsert, IcVaccinePrarmeterEntity.class); |
|
|
|
// 要删除的身份证号
|
|
|
|
List<String> isCardList = new ArrayList<String>(); |
|
|
|
entities.forEach(e -> { |
|
|
|
// 设置客户ID
|
|
|
|
e.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
// 设置审核状态为待审核
|
|
|
|
e.setCheckState("0"); |
|
|
|
// 存储删除身份证号
|
|
|
|
isCardList.add(e.getIdCard()); |
|
|
|
}); |
|
|
|
|
|
|
|
// 先根据身份证号删除
|
|
|
|
baseDao.deleteByIdCard(isCardList); |
|
|
|
|
|
|
|
// 再新增
|
|
|
|
insertBatch(entities); |
|
|
|
} |
|
|
|
if (CollectionUtils.isNotEmpty(errorInfo)){ |
|
|
|