|
@ -523,21 +523,18 @@ public class IcVaccinePrarmeterServiceImpl extends BaseServiceImpl<IcVaccinePrar |
|
|
*/ |
|
|
*/ |
|
|
@SneakyThrows |
|
|
@SneakyThrows |
|
|
private void synchronizationVaccineInfo(IcVaccinePrarmeterEntity icVaccinePrarmeterEntity,String icResiUserId){ |
|
|
private void synchronizationVaccineInfo(IcVaccinePrarmeterEntity icVaccinePrarmeterEntity,String icResiUserId){ |
|
|
|
|
|
if(!"1".equals(icVaccinePrarmeterEntity.getIsVaccination())){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
// 同步接种记录
|
|
|
// 同步接种记录
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
// 处理第一次接种时间格式
|
|
|
// 处理第一次接种时间格式
|
|
|
String firstTime = icVaccinePrarmeterEntity.getFirstVacTime(); |
|
|
String firstTime = icVaccinePrarmeterEntity.getFirstVacTime(); |
|
|
|
|
|
if(StringUtils.isBlank(firstTime)){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
Date firstDate = sdf.parse(firstTime); |
|
|
Date firstDate = sdf.parse(firstTime); |
|
|
icVaccinePrarmeterEntity.setFirstVacTime(sdf.format(firstDate)); |
|
|
icVaccinePrarmeterEntity.setFirstVacTime(sdf.format(firstDate)); |
|
|
// 处理第二次接种时间格式
|
|
|
|
|
|
String secondTime = icVaccinePrarmeterEntity.getSecondVacTime(); |
|
|
|
|
|
Date secondDate = sdf.parse(secondTime); |
|
|
|
|
|
icVaccinePrarmeterEntity.setSecondVacTime(sdf.format(secondDate)); |
|
|
|
|
|
// 处理第三次接种时间格式
|
|
|
|
|
|
String thirdTime = icVaccinePrarmeterEntity.getThirdVacTime(); |
|
|
|
|
|
Date thirdDate = sdf.parse(thirdTime); |
|
|
|
|
|
icVaccinePrarmeterEntity.setThirdVacTime(sdf.format(thirdDate)); |
|
|
|
|
|
|
|
|
|
|
|
// 查询第一次接种信息
|
|
|
// 查询第一次接种信息
|
|
|
List<IcVaccineEntity> icVaccineEntityFirstList = icVaccineDao.getVaccineListByIdCard(icVaccinePrarmeterEntity.getIdCard(),sdf.format(firstDate)); |
|
|
List<IcVaccineEntity> icVaccineEntityFirstList = icVaccineDao.getVaccineListByIdCard(icVaccinePrarmeterEntity.getIdCard(),sdf.format(firstDate)); |
|
|
if(icVaccineEntityFirstList.size() > 0){ |
|
|
if(icVaccineEntityFirstList.size() > 0){ |
|
@ -553,6 +550,13 @@ public class IcVaccinePrarmeterServiceImpl extends BaseServiceImpl<IcVaccinePrar |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 处理第二次接种时间格式
|
|
|
|
|
|
String secondTime = icVaccinePrarmeterEntity.getSecondVacTime(); |
|
|
|
|
|
if(StringUtils.isBlank(secondTime)){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
Date secondDate = sdf.parse(secondTime); |
|
|
|
|
|
icVaccinePrarmeterEntity.setSecondVacTime(sdf.format(secondDate)); |
|
|
// 查询第二次接种信息
|
|
|
// 查询第二次接种信息
|
|
|
List<IcVaccineEntity> icVaccineEntitySecondList = icVaccineDao.getVaccineListByIdCard(icVaccinePrarmeterEntity.getIdCard(),sdf.format(secondDate)); |
|
|
List<IcVaccineEntity> icVaccineEntitySecondList = icVaccineDao.getVaccineListByIdCard(icVaccinePrarmeterEntity.getIdCard(),sdf.format(secondDate)); |
|
|
if(icVaccineEntitySecondList.size() > 0){ |
|
|
if(icVaccineEntitySecondList.size() > 0){ |
|
@ -568,6 +572,13 @@ public class IcVaccinePrarmeterServiceImpl extends BaseServiceImpl<IcVaccinePrar |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 处理第三次接种时间格式
|
|
|
|
|
|
String thirdTime = icVaccinePrarmeterEntity.getThirdVacTime(); |
|
|
|
|
|
if(StringUtils.isBlank(thirdTime)){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
Date thirdDate = sdf.parse(thirdTime); |
|
|
|
|
|
icVaccinePrarmeterEntity.setThirdVacTime(sdf.format(thirdDate)); |
|
|
// 查询第三次接种信息
|
|
|
// 查询第三次接种信息
|
|
|
List<IcVaccineEntity> icVaccineEntityThirdList = icVaccineDao.getVaccineListByIdCard(icVaccinePrarmeterEntity.getIdCard(),sdf.format(thirdDate)); |
|
|
List<IcVaccineEntity> icVaccineEntityThirdList = icVaccineDao.getVaccineListByIdCard(icVaccinePrarmeterEntity.getIdCard(),sdf.format(thirdDate)); |
|
|
if(icVaccineEntityThirdList.size() > 0){ |
|
|
if(icVaccineEntityThirdList.size() > 0){ |
|
|