| | |
| | | private IServiceOrganallocationService serviceOrganallocationService; |
| | | |
| | | @Autowired |
| | | private IServiceDonateorganService serviceDonateorganService; |
| | | |
| | | @Autowired |
| | | private IServiceDonationwitnessService serviceDonationwitnessService; |
| | | |
| | | @Autowired |
| | |
| | | return null; |
| | | } |
| | | //封装serviceDonateorgan潜在捐献数据 |
| | | Map<String, String> donateorgan = new HashMap<>(); |
| | | donateorgan.put("createtime", DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonatebaseinfo.getCreateTime())); |
| | | donateorgan.put("updatetime", serviceDonatebaseinfo.getUpdateTime() != null ? DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonatebaseinfo.getUpdateTime()) : ""); |
| | | donateorgan.put("process", ""); |
| | | Map<String, String> donatebaseinfo = new HashMap<>(); |
| | | donatebaseinfo.put("createtime", DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonatebaseinfo.getCreateTime())); |
| | | donatebaseinfo.put("updatetime", serviceDonatebaseinfo.getUpdateTime() != null ? DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonatebaseinfo.getUpdateTime()) : ""); |
| | | donatebaseinfo.put("process", ""); |
| | | //封装serviceDonateorgan潜在捐献返回数据 |
| | | map.put("donateorgan", donateorgan); |
| | | map.put("donatebaseinfo", donatebaseinfo); |
| | | |
| | | //封装医学评估 |
| | | Map<String, String> medicalevaluation = new HashMap<>(); |
| | |
| | | map.put("ethicalreviewopinions", ethicalreviewopinions); |
| | | |
| | | //封装器官分配 |
| | | Map<String, String> organallocationService = new HashMap<>(); |
| | | Map<String, String> donateorgansService = new HashMap<>(); |
| | | if (serviceDonatebaseinfo.getWorkflow() >= 4) { |
| | | ServiceOrganallocation serviceOrganallocation = new ServiceOrganallocation(); |
| | | serviceOrganallocation.setOrganid(id); |
| | | List<ServiceOrganallocation> serviceOrganallocations = serviceOrganallocationService.selectServiceOrganallocationList(serviceOrganallocation); |
| | | if (!CollectionUtils.isEmpty(serviceOrganallocations)) { |
| | | organallocationService.put("createtime", DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceOrganallocations.get(0).getCreateTime())); |
| | | organallocationService.put("updatetime", serviceOrganallocations.get(0).getUpdateTime() != null ? DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceOrganallocations.get(0).getUpdateTime()) : ""); |
| | | organallocationService.put("process", ""); |
| | | ServiceDonateorgan serviceDonateorgan = new ServiceDonateorgan(); |
| | | serviceDonateorgan.setInfoid(id); |
| | | List<ServiceDonateorgan> serviceDonateorgans = serviceDonateorganService.queryList(serviceDonateorgan); |
| | | if (!CollectionUtils.isEmpty(serviceDonateorgans)) { |
| | | donateorgansService.put("createtime", DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonateorgans.get(0).getCreateTime())); |
| | | donateorgansService.put("updatetime", serviceDonateorgans.get(0).getUpdateTime() != null ? DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonateorgans.get(0).getUpdateTime()) : ""); |
| | | donateorgansService.put("process", ""); |
| | | } |
| | | } |
| | | //封装器官分配返回数据 |
| | | map.put("organallocationService", organallocationService); |
| | | map.put("donateorgansService", donateorgansService); |
| | | |
| | | //封装获取见证 |
| | | Map<String, String> donationwitness = new HashMap<>(); |