|
|
@ -2,6 +2,7 @@ package com.epmet.service.impl; |
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
@ -1108,14 +1109,24 @@ public class DataSyncConfigServiceImpl extends BaseServiceImpl<DataSyncConfigDao |
|
|
|
if (CollectionUtils.isNotEmpty(vaccineList)) { |
|
|
|
vaccineList.forEach(v -> { |
|
|
|
if (v.containsKey("data")){ |
|
|
|
Map<String, Object> data = (Map<String, Object>) v.get("data"); |
|
|
|
if (data.containsKey("vaccineList")){ |
|
|
|
List<YTVaccineListDTO> vaccineList1 = JSON.parseArray(data.get("vaccineList").toString(), YTVaccineListDTO.class); |
|
|
|
JSONObject jo = JSON.parseObject((String) v.get("data")); |
|
|
|
if (jo.containsKey("vaccineList")) { |
|
|
|
JSONArray vaccineListJA = jo.getJSONArray("vaccineList"); |
|
|
|
List<YTVaccineListDTO> vaccineList1 = vaccineListJA.toJavaList(YTVaccineListDTO.class); |
|
|
|
vaccineList1.forEach(v1 -> { |
|
|
|
v1.setCardno(v.get("cardno").toString()); |
|
|
|
}); |
|
|
|
ytVaccineListDTOS.addAll(vaccineList1); |
|
|
|
} |
|
|
|
|
|
|
|
//Map<String, Object> data = (Map<String, Object>) v.get("data");
|
|
|
|
//if (data.containsKey("vaccineList")){
|
|
|
|
// List<YTVaccineListDTO> vaccineList1 = JSON.parseArray(data.get("vaccineList").toString(), YTVaccineListDTO.class);
|
|
|
|
// vaccineList1.forEach(v1 -> {
|
|
|
|
// v1.setCardno(v.get("cardno").toString());
|
|
|
|
// });
|
|
|
|
// ytVaccineListDTOS.addAll(vaccineList1);
|
|
|
|
//}
|
|
|
|
} |
|
|
|
}); |
|
|
|
List<IcVaccineEntity> entities = new ArrayList<>(); |
|
|
|