package com.ruoyi.web.controller.project; 
 | 
  
 | 
import com.ruoyi.common.annotation.Log; 
 | 
import com.ruoyi.common.annotation.RepeatSubmit; 
 | 
import com.ruoyi.common.config.RuoYiConfig; 
 | 
import com.ruoyi.common.constant.HttpStatus; 
 | 
import com.ruoyi.common.core.controller.BaseController; 
 | 
import com.ruoyi.common.core.domain.AjaxResult; 
 | 
import com.ruoyi.common.core.domain.entity.SysUser; 
 | 
import com.ruoyi.common.core.page.TableDataInfo; 
 | 
import com.ruoyi.common.enums.BusinessType; 
 | 
import com.ruoyi.common.exception.ServiceException; 
 | 
import com.ruoyi.common.utils.SecurityUtils; 
 | 
import com.ruoyi.common.utils.poi.ExcelUtil; 
 | 
import com.ruoyi.framework.config.ServerConfig; 
 | 
import com.ruoyi.project.common.CalculateDateUtils; 
 | 
import com.ruoyi.project.domain.ServiceDonatebaseinfo; 
 | 
import com.ruoyi.project.domain.vo.TimeVO; 
 | 
import com.ruoyi.project.service.IServiceDonatebaseinfoService; 
 | 
import com.ruoyi.project.service.IServiceExternalpersonService; 
 | 
import com.ruoyi.system.mapper.SysDeptMapper; 
 | 
import freemarker.template.Configuration; 
 | 
import freemarker.template.Template; 
 | 
import freemarker.template.TemplateException; 
 | 
import io.swagger.annotations.Api; 
 | 
import io.swagger.annotations.ApiOperation; 
 | 
import lombok.extern.slf4j.Slf4j; 
 | 
import org.springframework.beans.factory.annotation.Autowired; 
 | 
import org.springframework.web.bind.annotation.*; 
 | 
  
 | 
import java.io.*; 
 | 
import java.text.SimpleDateFormat; 
 | 
import java.time.LocalDate; 
 | 
import java.time.ZoneId; 
 | 
import java.util.*; 
 | 
  
 | 
  
 | 
/** 
 | 
 * 捐献基础Controller 
 | 
 * 
 | 
 * @author ruoyi 
 | 
 * @date 2021-11-10 
 | 
 */ 
 | 
@Slf4j 
 | 
@Api("潜在捐献信息管理") 
 | 
@RestController 
 | 
@RequestMapping("/project/donatebaseinfo") 
 | 
public class ServiceDonatebaseinfoController extends BaseController { 
 | 
    @Autowired 
 | 
    private IServiceDonatebaseinfoService serviceDonatebaseinfoService; 
 | 
  
 | 
    @Autowired 
 | 
    private IServiceExternalpersonService serviceExternalpersonService; 
 | 
  
 | 
    @Autowired 
 | 
    private ServerConfig serverConfig; 
 | 
  
 | 
    @Autowired 
 | 
    private SysDeptMapper sysDeptMapper; 
 | 
  
 | 
  
 | 
    private static Configuration configuration = null; 
 | 
  
 | 
    public ServiceDonatebaseinfoController() { 
 | 
        configuration = new Configuration(); 
 | 
        configuration.setDefaultEncoding("utf-8"); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 查询捐献基础列表 
 | 
     */ 
 | 
    @ApiOperation("潜在捐献信息列表") 
 | 
    //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:list')") 
 | 
    @GetMapping("/list") 
 | 
    public TableDataInfo list(ServiceDonatebaseinfo serviceDonatebaseinfo) { 
 | 
        log.info("潜在捐献信息列表:{}", serviceDonatebaseinfo); 
 | 
        startPage(); 
 | 
        //List<ServiceDonatebaseinfo> list = serviceDonatebaseinfoService.queryList(serviceDonatebaseinfo); 
 | 
        List<ServiceDonatebaseinfo> list = serviceDonatebaseinfoService.selectServiceDonatebaseinfoList(serviceDonatebaseinfo); 
 | 
        return getDataTable(list); 
 | 
    } 
 | 
  
 | 
    @ApiOperation("小程序端潜在捐献信息列表") 
 | 
    @GetMapping("/listForSearch") 
 | 
    public TableDataInfo listForSearch(ServiceDonatebaseinfo serviceDonatebaseinfo) { 
 | 
        log.info("小程序端潜在捐献信息列表:{}", serviceDonatebaseinfo); 
 | 
        startPage(); 
 | 
        List<ServiceDonatebaseinfo> list = serviceDonatebaseinfoService.listForSearch(serviceDonatebaseinfo); 
 | 
        return getDataTable(list); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 导出捐献基础列表 
 | 
     */ 
 | 
    @ApiOperation("导出潜在捐献信息列表") 
 | 
    //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:export')") 
 | 
    @Log(title = "捐献基础", businessType = BusinessType.EXPORT) 
 | 
    @GetMapping("/export") 
 | 
    public AjaxResult export(ServiceDonatebaseinfo serviceDonatebaseinfo) { 
 | 
        log.info("导出潜在捐献信息列表:{}", serviceDonatebaseinfo); 
 | 
        List<ServiceDonatebaseinfo> list = serviceDonatebaseinfoService.queryList(serviceDonatebaseinfo); 
 | 
        ExcelUtil<ServiceDonatebaseinfo> util = new ExcelUtil<ServiceDonatebaseinfo>(ServiceDonatebaseinfo.class); 
 | 
        return util.exportExcel(list, "捐献基础数据"); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 获取捐献基础详细信息 
 | 
     */ 
 | 
    @ApiOperation("通过id获得潜在捐献信息") 
 | 
    //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:query')") 
 | 
    @GetMapping(value = "/{id}") 
 | 
    public AjaxResult getInfo(@PathVariable("id") Long id) { 
 | 
        log.info("通过id获得潜在捐献信息:{}", id); 
 | 
        ServiceDonatebaseinfo serviceDonatebaseinfo = serviceDonatebaseinfoService.getById(id); 
 | 
        if (serviceDonatebaseinfo.getBirthday() != null) { 
 | 
            Map<String, String> map = CalculateDateUtils.calculateAge(serviceDonatebaseinfo.getBirthday().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(), LocalDate.now()); 
 | 
            serviceDonatebaseinfo.setAge(org.apache.commons.lang3.ObjectUtils.isNotEmpty(map.get("age")) ? Long.valueOf(map.get("age")) : null); 
 | 
            serviceDonatebaseinfo.setAgeunit(map.get("ageUnit")); 
 | 
            serviceDonatebaseinfo.setAge2(org.apache.commons.lang3.ObjectUtils.isNotEmpty(map.get("age2")) ? Long.valueOf(map.get("age2")) : null); 
 | 
            serviceDonatebaseinfo.setAgeunit2(map.get("ageUnit2")); 
 | 
        } 
 | 
        return AjaxResult.success(serviceDonatebaseinfo); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 新增捐献基础 
 | 
     */ 
 | 
    @ApiOperation("新增潜在捐献信息") 
 | 
    //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:add')") 
 | 
    @Log(title = "捐献基础", businessType = BusinessType.INSERT) 
 | 
    @PostMapping("/add") 
 | 
    @RepeatSubmit 
 | 
    public AjaxResult add(@RequestBody ServiceDonatebaseinfo serviceDonatebaseinfo) { 
 | 
        log.info("新增潜在捐献信息:{}", serviceDonatebaseinfo); 
 | 
        SysUser user = SecurityUtils.getLoginUser().getUser(); 
 | 
  
 | 
//        String bh = ""; 
 | 
//        bh = serviceDonatebaseinfoService.getDonateNumber(serviceDonatebaseinfo); 
 | 
//        if (bh == "") { 
 | 
//            return AjaxResult.error("新增时生成的编号为空,创建失败!"); 
 | 
//        } else { 
 | 
//            ServiceDonatebaseinfo serviceDonatebaseinfo1 = new ServiceDonatebaseinfo(); 
 | 
//            serviceDonatebaseinfo1.setDonorno(bh); 
 | 
//            List<ServiceDonatebaseinfo> listrecord = serviceDonatebaseinfoService.queryList(serviceDonatebaseinfo1); 
 | 
//            if (listrecord.size() > 0) { 
 | 
//                return AjaxResult.error("新增时生成的编号" + bh + "已存在,无法保存!"); 
 | 
//            } 
 | 
// 
 | 
//        } 
 | 
        String idcardno = serviceDonatebaseinfo.getIdcardno(); 
 | 
        ServiceDonatebaseinfo serviceDonatebaseinfo2 = new ServiceDonatebaseinfo(); 
 | 
        serviceDonatebaseinfo2.setIdcardno(idcardno); 
 | 
        List<ServiceDonatebaseinfo> listrecord2 = serviceDonatebaseinfoService.queryList(serviceDonatebaseinfo2); 
 | 
        if (listrecord2.size() > 0) { 
 | 
            return AjaxResult.error("新增时身份证" + idcardno + "已存在,无法保存!"); 
 | 
        } 
 | 
  
 | 
        //  serviceDonatebaseinfo.setDonorno(bh); 
 | 
        serviceDonatebaseinfo.setDeptid(user.getDeptId()); 
 | 
        serviceDonatebaseinfo.setDeptname(sysDeptMapper.getDeptNameByDeptId(user.getDeptId())); 
 | 
        serviceDonatebaseinfoService.save(serviceDonatebaseinfo); 
 | 
        Map<String, Long> map = new HashMap<>(); 
 | 
        map.put("id", serviceDonatebaseinfo.getId()); 
 | 
        return AjaxResult.success(map); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 修改捐献基础 
 | 
     */ 
 | 
    @ApiOperation("修改潜在捐献信息") 
 | 
    //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:edit')") 
 | 
    @Log(title = "捐献基础", businessType = BusinessType.UPDATE) 
 | 
    @PostMapping("/edit") 
 | 
    @RepeatSubmit 
 | 
    public AjaxResult edit(@RequestBody ServiceDonatebaseinfo serviceDonatebaseinfo) { 
 | 
        log.info("修改潜在捐献信息:{}", serviceDonatebaseinfo); 
 | 
        return toAjax(serviceDonatebaseinfoService.updateById(serviceDonatebaseinfo)); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 删除捐献基础 
 | 
     */ 
 | 
    @ApiOperation("删除潜在捐献信息") 
 | 
    //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:remove')") 
 | 
    @Log(title = "捐献基础", businessType = BusinessType.DELETE) 
 | 
    @GetMapping("/remove/{ids}") 
 | 
    public AjaxResult remove(@PathVariable Long[] ids) { 
 | 
        log.info("删除潜在捐献信息:{}", ids); 
 | 
        return toAjax(serviceDonatebaseinfoService.removeByIds(Arrays.asList(ids))); 
 | 
    } 
 | 
  
 | 
    @ApiOperation("获取捐献编号") 
 | 
    @PostMapping("/donatenumber") 
 | 
    public AjaxResult getDonateNumber(@RequestBody ServiceDonatebaseinfo serviceDonatebaseinfo) { 
 | 
        log.info("获取捐献编号:{}", serviceDonatebaseinfo); 
 | 
        return AjaxResult.success(serviceDonatebaseinfoService.getDonateNumber(serviceDonatebaseinfo)); 
 | 
    } 
 | 
  
 | 
  
 | 
    @ApiOperation("获取捐献报告人") 
 | 
    @GetMapping("/reportName/{usertype}") 
 | 
    public AjaxResult getReportName(@PathVariable("usertype") String usertype) { 
 | 
        log.info("获取捐献报告人:{}", usertype); 
 | 
        return AjaxResult.success(serviceExternalpersonService.getReportName(usertype)); 
 | 
    } 
 | 
  
 | 
    @GetMapping(value = "/updateS1S2S3S4/{id}") 
 | 
    public AjaxResult updateS1S2S3S4(@PathVariable Long id) { 
 | 
        log.info("updateS1S2S3S4的入参:{}", id); 
 | 
        return AjaxResult.success(serviceDonatebaseinfoService.updateS1S2S3S4(id)); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 下载人体器官潜在捐献者登记表 
 | 
     */ 
 | 
    @ApiOperation("通过id下载人体器官潜在捐献者登记表") 
 | 
    @GetMapping(value = "/download/{id}") 
 | 
    public Map downloadInfo(@PathVariable("id") Long id) throws IOException { 
 | 
        log.info("通过id下载人体器官潜在捐献者登记表:{}", id); 
 | 
        Map dataMap = new HashMap(); 
 | 
        getData(dataMap, id); 
 | 
        String filePath = getClass().getResource("/template/").getPath(); 
 | 
        System.out.println(filePath); 
 | 
        //设置模本装置方法和路径,FreeMarker支持多种模板装载方法。可以重servlet,classpath,数据库教程装载, 
 | 
        configuration.setDirectoryForTemplateLoading(new File(filePath)); 
 | 
  
 | 
        Template t = null; 
 | 
        try { 
 | 
            //捐献表.ftl为要装载的模板 
 | 
            t = configuration.getTemplate("人体器官潜在捐献者登记表.ftl"); 
 | 
        } catch (IOException e) { 
 | 
            e.printStackTrace(); 
 | 
        } 
 | 
        String newTime = String.valueOf(Calendar.getInstance().getTimeInMillis()); 
 | 
        String name = "人体器官潜在捐献者登记表_" + dataMap.get("XM") + "_" + newTime; 
 | 
  
 | 
        //输出文档路径及名称 
 | 
        File outFile = new File(RuoYiConfig.getProfile() + "/download/wordtemplate/" + name + ".doc"); 
 | 
        Writer out = null; 
 | 
  
 | 
        try { 
 | 
            out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outFile), "utf-8")); 
 | 
  
 | 
        } catch (FileNotFoundException e1) { 
 | 
            e1.printStackTrace(); 
 | 
        } 
 | 
        try { 
 | 
            t.process(dataMap, out); 
 | 
        } catch (TemplateException e) { 
 | 
            e.printStackTrace(); 
 | 
        } 
 | 
        Map<String, Object> map = new HashMap<>(); 
 | 
        map.put("downloadUrl", "/profile/download/wordtemplate/" + name + ".doc"); 
 | 
        map.put("downloadName", name + ".doc"); 
 | 
        return map; 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 注意dataMap里存放的数据Key值要与模板中的参数相对应 
 | 
     * 
 | 
     * @param dataMap 
 | 
     */ 
 | 
    private void getData(Map dataMap, Long id) { 
 | 
        ServiceDonatebaseinfo serviceDonatebaseinfo = serviceDonatebaseinfoService.getById(id); 
 | 
        if (serviceDonatebaseinfo == null) { 
 | 
            throw new ServiceException("下载失败,用户信息出错", HttpStatus.NO_CONTENT); 
 | 
        } 
 | 
  
 | 
        dataMap.put("JXBH", serviceDonatebaseinfo.getDonorno() == null ? "" : serviceDonatebaseinfo.getDonorno()); 
 | 
        dataMap.put("SZYLJG", serviceDonatebaseinfo.getTreatmenthospitalname() == null ? "" : serviceDonatebaseinfo.getTreatmenthospitalname()); 
 | 
        dataMap.put("KS", serviceDonatebaseinfo.getTreatmentdeptname() == null ? "" : serviceDonatebaseinfo.getTreatmentdeptname()); 
 | 
        dataMap.put("XM", serviceDonatebaseinfo.getName() == null ? "" : serviceDonatebaseinfo.getName()); 
 | 
        if (serviceDonatebaseinfo.getSex().equals("0")) { 
 | 
            dataMap.put("XB", "未知的性别"); 
 | 
        } else if (serviceDonatebaseinfo.getSex().equals("1")) { 
 | 
            dataMap.put("XB", "男"); 
 | 
        } else if (serviceDonatebaseinfo.getSex().equals("2")) { 
 | 
            dataMap.put("XB", "女"); 
 | 
        } 
 | 
        Date dt = serviceDonatebaseinfo.getBirthday(); 
 | 
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
 | 
        String date = formatter.format(dt); 
 | 
        String time = date.substring(0, 10); 
 | 
        dataMap.put("CSRQ", serviceDonatebaseinfo.getBirthday() == null ? "" : time); 
 | 
        dataMap.put("GJ", serviceDonatebaseinfo.getNationality() == null ? "" : serviceDonatebaseinfo.getNationality()); 
 | 
        if (serviceDonatebaseinfo.getIdcardtype() == 1) { 
 | 
            dataMap.put("ZJLX", "身份证"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 2) { 
 | 
            dataMap.put("ZJLX", "军人证"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 3) { 
 | 
            dataMap.put("ZJLX", "护照"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 4) { 
 | 
            dataMap.put("ZJLX", "户口本"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 5) { 
 | 
            dataMap.put("ZJLX", "外国人永久居住证"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 6) { 
 | 
            dataMap.put("ZJLX", "武警证"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 10) { 
 | 
            dataMap.put("ZJLX", "学生证"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 11) { 
 | 
            dataMap.put("ZJLX", "士兵证"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 16) { 
 | 
            dataMap.put("ZJLX", "港澳居民来往内地通行证"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 17) { 
 | 
            dataMap.put("ZJLX", "台湾居民来往大陆通行证"); 
 | 
        } else if (serviceDonatebaseinfo.getIdcardtype() == 18) { 
 | 
            dataMap.put("ZJLX", "其他证件类型"); 
 | 
        } 
 | 
        dataMap.put("ZJHM", serviceDonatebaseinfo.getIdcardno() == null ? "" : serviceDonatebaseinfo.getIdcardno()); 
 | 
        //户籍地址 
 | 
        dataMap.put("ZZSHENG", serviceDonatebaseinfo.getRegisterprovincename() == null ? "" : serviceDonatebaseinfo.getRegisterprovincename()); 
 | 
        dataMap.put("ZZSHI", serviceDonatebaseinfo.getRegistercityname() == null ? "" : serviceDonatebaseinfo.getRegistercityname()); 
 | 
        dataMap.put("ZZXIAN", serviceDonatebaseinfo.getRegistertownname() == null ? "" : serviceDonatebaseinfo.getRegistertownname()); 
 | 
        dataMap.put("ZZXX", serviceDonatebaseinfo.getRegisteraddress() == null ? "" : serviceDonatebaseinfo.getRegisteraddress()); 
 | 
        //现居住地 
 | 
        dataMap.put("SZDS", serviceDonatebaseinfo.getResidenceprovincename() == null ? "" : serviceDonatebaseinfo.getResidenceprovincename()); 
 | 
        dataMap.put("SZDSHI", serviceDonatebaseinfo.getResidencecityname() == null ? "" : serviceDonatebaseinfo.getResidencecityname()); 
 | 
        dataMap.put("SZDX", serviceDonatebaseinfo.getResidencetownname() == null ? "" : serviceDonatebaseinfo.getResidencetownname()); 
 | 
        dataMap.put("SZDXX", serviceDonatebaseinfo.getResidenceaddress() == null ? "" : serviceDonatebaseinfo.getResidenceaddress()); 
 | 
  
 | 
        dataMap.put("ZYH", serviceDonatebaseinfo.getInpatientno() == null ? "" : serviceDonatebaseinfo.getInpatientno()); 
 | 
  
 | 
        if (serviceDonatebaseinfo.getBloodtype().equals("1")) { 
 | 
            dataMap.put("XXA", (char) 8730); 
 | 
            dataMap.put("XXB", "□"); 
 | 
            dataMap.put("XXO", "□"); 
 | 
            dataMap.put("XXAB", "□"); 
 | 
        } else if (serviceDonatebaseinfo.getBloodtype().equals("2")) { 
 | 
            dataMap.put("XXA", "□"); 
 | 
            dataMap.put("XXB", (char) 8730); 
 | 
            dataMap.put("XXO", "□"); 
 | 
            dataMap.put("XXAB", "□"); 
 | 
        } else if (serviceDonatebaseinfo.getBloodtype().equals("3")) { 
 | 
            dataMap.put("XXA", "□"); 
 | 
            dataMap.put("XXB", "□"); 
 | 
            dataMap.put("XXO", (char) 8730); 
 | 
            dataMap.put("XXAB", "□"); 
 | 
        } else if (serviceDonatebaseinfo.getBloodtype().equals("4")) { 
 | 
            dataMap.put("XXA", "□"); 
 | 
            dataMap.put("XXB", "□"); 
 | 
            dataMap.put("XXO", "□"); 
 | 
            dataMap.put("XXAB", (char) 8730); 
 | 
        } 
 | 
        if (serviceDonatebaseinfo.getRhyin().equals("1")) { 
 | 
            dataMap.put("YX", (char) 8730); 
 | 
        } else { 
 | 
            dataMap.put("YX", "□"); 
 | 
        } 
 | 
  
 | 
        dataMap.put("JBZD", serviceDonatebaseinfo.getDiagnosisname() == null ? "" : serviceDonatebaseinfo.getDiagnosisname()); 
 | 
  
 | 
        //疾病类型 
 | 
        if (serviceDonatebaseinfo.getDiseasetype().contains("0")) { 
 | 
            dataMap.put("NXGYW", (char) 8730); 
 | 
            if (serviceDonatebaseinfo.getDiseasetype().contains("1")) { 
 | 
                dataMap.put("NWS", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getDiseasetype().contains("2")) { 
 | 
                    dataMap.put("QXQY", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getDiseasetype().contains("3")) { 
 | 
                        dataMap.put("NZL", (char) 8730); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } else { 
 | 
                        dataMap.put("NZL", "□"); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("QXQY", "□"); 
 | 
                    if (serviceDonatebaseinfo.getDiseasetype().contains("3")) { 
 | 
                        dataMap.put("NZL", (char) 8730); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } else { 
 | 
                        dataMap.put("NZL", "□"); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("NWS", "□"); 
 | 
                if (serviceDonatebaseinfo.getDiseasetype().contains("2")) { 
 | 
                    dataMap.put("QXQY", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getDiseasetype().contains("3")) { 
 | 
                        dataMap.put("NZL", (char) 8730); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } else { 
 | 
                        dataMap.put("NZL", "□"); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("QXQY", "□"); 
 | 
                    if (serviceDonatebaseinfo.getDiseasetype().contains("3")) { 
 | 
                        dataMap.put("NZL", (char) 8730); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } else { 
 | 
                        dataMap.put("NZL", "□"); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } else { 
 | 
            dataMap.put("NXGYW", "□"); 
 | 
            if (serviceDonatebaseinfo.getDiseasetype().contains("1")) { 
 | 
                dataMap.put("NWS", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getDiseasetype().contains("2")) { 
 | 
                    dataMap.put("QXQY", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getDiseasetype().contains("3")) { 
 | 
                        dataMap.put("NZL", (char) 8730); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } else { 
 | 
                        dataMap.put("NZL", "□"); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("QXQY", "□"); 
 | 
                    if (serviceDonatebaseinfo.getDiseasetype().contains("3")) { 
 | 
                        dataMap.put("NZL", (char) 8730); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } else { 
 | 
                        dataMap.put("NZL", "□"); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("NWS", "□"); 
 | 
                if (serviceDonatebaseinfo.getDiseasetype().contains("2")) { 
 | 
                    dataMap.put("QXQY", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getDiseasetype().contains("3")) { 
 | 
                        dataMap.put("NZL", (char) 8730); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } else { 
 | 
                        dataMap.put("NZL", "□"); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("QXQY", "□"); 
 | 
                    if (serviceDonatebaseinfo.getDiseasetype().contains("3")) { 
 | 
                        dataMap.put("NZL", (char) 8730); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } else { 
 | 
                        dataMap.put("NZL", "□"); 
 | 
                        if (serviceDonatebaseinfo.getDiseasetype().contains("4")) { 
 | 
                            dataMap.put("XXGJB", (char) 8730); 
 | 
                        } else { 
 | 
                            dataMap.put("XXGJB", "□"); 
 | 
                        } 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } 
 | 
  
 | 
        dataMap.put("JBLXQT", serviceDonatebaseinfo.getDiseasetypeOther() == null ? "" : serviceDonatebaseinfo.getDiseasetypeOther()); 
 | 
  
 | 
  
 | 
        //传染病情况 
 | 
        if (serviceDonatebaseinfo.getInfectious().contains("1")) { 
 | 
            dataMap.put("YG", (char) 8730); 
 | 
            if (serviceDonatebaseinfo.getInfectious().contains("2")) { 
 | 
                dataMap.put("BG", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getInfectious().contains("3")) { 
 | 
                    dataMap.put("MD", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getInfectious().contains("4")) { 
 | 
                        dataMap.put("AZB", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("AZB", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("MD", "□"); 
 | 
                    if (serviceDonatebaseinfo.getInfectious().contains("4")) { 
 | 
                        dataMap.put("AZB", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("AZB", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("BG", "□"); 
 | 
                if (serviceDonatebaseinfo.getInfectious().contains("3")) { 
 | 
                    dataMap.put("MD", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getInfectious().contains("4")) { 
 | 
                        dataMap.put("AZB", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("AZB", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("MD", "□"); 
 | 
                    if (serviceDonatebaseinfo.getInfectious().contains("4")) { 
 | 
                        dataMap.put("AZB", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("AZB", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } else { 
 | 
            dataMap.put("YG", "□"); 
 | 
            if (serviceDonatebaseinfo.getInfectious().contains("2")) { 
 | 
                dataMap.put("BG", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getInfectious().contains("3")) { 
 | 
                    dataMap.put("MD", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getInfectious().contains("4")) { 
 | 
                        dataMap.put("AZB", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("AZB", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("MD", "□"); 
 | 
                    if (serviceDonatebaseinfo.getInfectious().contains("4")) { 
 | 
                        dataMap.put("AZB", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("AZB", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("BG", "□"); 
 | 
                if (serviceDonatebaseinfo.getInfectious().contains("3")) { 
 | 
                    dataMap.put("MD", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getInfectious().contains("4")) { 
 | 
                        dataMap.put("AZB", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("AZB", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("MD", "□"); 
 | 
                    if (serviceDonatebaseinfo.getInfectious().contains("4")) { 
 | 
                        dataMap.put("AZB", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("AZB", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } 
 | 
        dataMap.put("CRBQT", serviceDonatebaseinfo.getInfectiousOther() == null ? "" : serviceDonatebaseinfo.getInfectiousOther()); 
 | 
        //病人状况 
 | 
        if (serviceDonatebaseinfo.getPatientstate().contains("0")) { 
 | 
            dataMap.put("SDHM", (char) 8730); 
 | 
            if (serviceDonatebaseinfo.getPatientstate().contains("1")) { 
 | 
                dataMap.put("WZZHX", (char) 8730); 
 | 
            } else { 
 | 
                dataMap.put("WZZHX", "□"); 
 | 
            } 
 | 
        } else { 
 | 
            dataMap.put("SDHM", "□"); 
 | 
            if (serviceDonatebaseinfo.getPatientstate().contains("1")) { 
 | 
                dataMap.put("WZZHX", (char) 8730); 
 | 
            } else { 
 | 
                dataMap.put("WZZHX", "□"); 
 | 
            } 
 | 
        } 
 | 
  
 | 
        //其他情况 
 | 
        if (serviceDonatebaseinfo.getOthercases().contains("0")) { 
 | 
            dataMap.put("JTSG", (char) 8730); 
 | 
            if (serviceDonatebaseinfo.getOthercases().contains("1")) { 
 | 
                dataMap.put("XSAJ", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getOthercases().contains("2")) { 
 | 
                    dataMap.put("GSSG", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getOthercases().contains("3")) { 
 | 
                        dataMap.put("QTYWSG", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("QTYWSG", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("GSSG", "□"); 
 | 
                    if (serviceDonatebaseinfo.getOthercases().contains("3")) { 
 | 
                        dataMap.put("QTYWSG", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("QTYWSG", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("XSAJ", "□"); 
 | 
                if (serviceDonatebaseinfo.getOthercases().contains("2")) { 
 | 
                    dataMap.put("GSSG", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getOthercases().contains("3")) { 
 | 
                        dataMap.put("QTYWSG", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("QTYWSG", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("GSSG", "□"); 
 | 
                    if (serviceDonatebaseinfo.getOthercases().contains("3")) { 
 | 
                        dataMap.put("QTYWSG", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("QTYWSG", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } else { 
 | 
            dataMap.put("JTSG", "□"); 
 | 
            if (serviceDonatebaseinfo.getOthercases().contains("1")) { 
 | 
                dataMap.put("XSAJ", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getOthercases().contains("2")) { 
 | 
                    dataMap.put("GSSG", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getOthercases().contains("3")) { 
 | 
                        dataMap.put("QTYWSG", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("QTYWSG", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("GSSG", "□"); 
 | 
                    if (serviceDonatebaseinfo.getOthercases().contains("3")) { 
 | 
                        dataMap.put("QTYWSG", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("QTYWSG", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("XSAJ", "□"); 
 | 
                if (serviceDonatebaseinfo.getOthercases().contains("2")) { 
 | 
                    dataMap.put("GSSG", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getOthercases().contains("3")) { 
 | 
                        dataMap.put("QTYWSG", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("QTYWSG", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("GSSG", "□"); 
 | 
                    if (serviceDonatebaseinfo.getOthercases().contains("3")) { 
 | 
                        dataMap.put("QTYWSG", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("QTYWSG", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } 
 | 
  
 | 
        //情亲属关系情况 
 | 
        if (serviceDonatebaseinfo.getKinship().contains("0")) { 
 | 
            dataMap.put("PE", (char) 8730); 
 | 
            if (serviceDonatebaseinfo.getKinship().contains("1")) { 
 | 
                dataMap.put("ZN", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getKinship().contains("2")) { 
 | 
                    dataMap.put("FQ", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getKinship().contains("3")) { 
 | 
                        dataMap.put("MQ", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("MQ", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("FQ", "□"); 
 | 
                    if (serviceDonatebaseinfo.getKinship().contains("3")) { 
 | 
                        dataMap.put("MQ", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("MQ", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("ZN", "□"); 
 | 
                if (serviceDonatebaseinfo.getKinship().contains("2")) { 
 | 
                    dataMap.put("FQ", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getKinship().contains("3")) { 
 | 
                        dataMap.put("MQ", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("MQ", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("FQ", "□"); 
 | 
                    if (serviceDonatebaseinfo.getKinship().contains("3")) { 
 | 
                        dataMap.put("MQ", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("MQ", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } else { 
 | 
            dataMap.put("PE", "□"); 
 | 
            if (serviceDonatebaseinfo.getKinship().contains("1")) { 
 | 
                dataMap.put("ZN", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getKinship().contains("2")) { 
 | 
                    dataMap.put("FQ", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getKinship().contains("3")) { 
 | 
                        dataMap.put("MQ", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("MQ", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("FQ", "□"); 
 | 
                    if (serviceDonatebaseinfo.getKinship().contains("3")) { 
 | 
                        dataMap.put("MQ", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("MQ", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("ZN", "□"); 
 | 
                if (serviceDonatebaseinfo.getKinship().contains("2")) { 
 | 
                    dataMap.put("FQ", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getKinship().contains("3")) { 
 | 
                        dataMap.put("MQ", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("MQ", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("FQ", "□"); 
 | 
                    if (serviceDonatebaseinfo.getKinship().contains("3")) { 
 | 
                        dataMap.put("MQ", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("MQ", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } 
 | 
        dataMap.put("QSQT", serviceDonatebaseinfo.getKinshipOther() == null ? "" : serviceDonatebaseinfo.getKinshipOther()); 
 | 
  
 | 
        //本人捐献 
 | 
        if (serviceDonatebaseinfo.getSelfwill().contains("0")) { 
 | 
            dataMap.put("ZYDJ", (char) 8730); 
 | 
            if (serviceDonatebaseinfo.getSelfwill().contains("1")) { 
 | 
                dataMap.put("SMTY", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getSelfwill().contains("2")) { 
 | 
                    dataMap.put("KTTY", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getSelfwill().contains("3")) { 
 | 
                        dataMap.put("WBSBTY", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("WBSBTY", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("KTTY", "□"); 
 | 
                    if (serviceDonatebaseinfo.getSelfwill().contains("3")) { 
 | 
                        dataMap.put("WBSBTY", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("WBSBTY", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("SMTY", "□"); 
 | 
                if (serviceDonatebaseinfo.getSelfwill().contains("2")) { 
 | 
                    dataMap.put("KTTY", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getSelfwill().contains("3")) { 
 | 
                        dataMap.put("WBSBTY", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("WBSBTY", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("KTTY", "□"); 
 | 
                    if (serviceDonatebaseinfo.getSelfwill().contains("3")) { 
 | 
                        dataMap.put("WBSBTY", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("WBSBTY", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } else { 
 | 
            dataMap.put("ZYDJ", "□"); 
 | 
            if (serviceDonatebaseinfo.getSelfwill().contains("1")) { 
 | 
                dataMap.put("SMTY", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getSelfwill().contains("2")) { 
 | 
                    dataMap.put("KTTY", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getSelfwill().contains("3")) { 
 | 
                        dataMap.put("WBSBTY", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("WBSBTY", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("KTTY", "□"); 
 | 
                    if (serviceDonatebaseinfo.getSelfwill().contains("3")) { 
 | 
                        dataMap.put("WBSBTY", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("WBSBTY", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("SMTY", "□"); 
 | 
                if (serviceDonatebaseinfo.getSelfwill().contains("2")) { 
 | 
                    dataMap.put("KTTY", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getSelfwill().contains("3")) { 
 | 
                        dataMap.put("WBSBTY", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("WBSBTY", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("KTTY", "□"); 
 | 
                    if (serviceDonatebaseinfo.getSelfwill().contains("3")) { 
 | 
                        dataMap.put("WBSBTY", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("WBSBTY", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } 
 | 
        dataMap.put("ZYQS", serviceDonatebaseinfo.getMajorrelatives() == null ? "" : serviceDonatebaseinfo.getMajorrelatives()); 
 | 
        dataMap.put("YJXZGX", serviceDonatebaseinfo.getFamilyrelations() == null ? "" : serviceDonatebaseinfo.getFamilyrelations()); 
 | 
  
 | 
        if (serviceDonatebaseinfo.getFamilyrelations() == null) { 
 | 
            dataMap.put("YJXZGX", ""); 
 | 
        } else if (serviceDonatebaseinfo.getFamilyrelations().equals("0")) { 
 | 
            dataMap.put("YJXZGX", "本人"); 
 | 
        } else if (serviceDonatebaseinfo.getFamilyrelations().equals("1")) { 
 | 
            dataMap.put("YJXZGX", "配偶"); 
 | 
        } else if (serviceDonatebaseinfo.getFamilyrelations().equals("2")) { 
 | 
            dataMap.put("YJXZGX", "子"); 
 | 
        } else if (serviceDonatebaseinfo.getFamilyrelations().equals("3")) { 
 | 
            dataMap.put("YJXZGX", "女"); 
 | 
        } else if (serviceDonatebaseinfo.getFamilyrelations().equals("4")) { 
 | 
            dataMap.put("YJXZGX", "父母"); 
 | 
        } else if (serviceDonatebaseinfo.getFamilyrelations().equals("5")) { 
 | 
            dataMap.put("YJXZGX", "爷爷"); 
 | 
        } else if (serviceDonatebaseinfo.getFamilyrelations().equals("6")) { 
 | 
            dataMap.put("YJXZGX", "其他"); 
 | 
        } 
 | 
        //信息来源 
 | 
        if (serviceDonatebaseinfo.getInfosources().contains("医疗机构")) { 
 | 
            dataMap.put("YLJG", (char) 8730); 
 | 
            if (serviceDonatebaseinfo.getInfosources().contains("家属")) { 
 | 
                dataMap.put("QS", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getInfosources().contains("交通")) { 
 | 
                    dataMap.put("JT", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getInfosources().contains("公安")) { 
 | 
                        dataMap.put("GA", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("GA", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("JT", "□"); 
 | 
                    if (serviceDonatebaseinfo.getInfosources().contains("公安")) { 
 | 
                        dataMap.put("GA", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("GA", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("QS", "□"); 
 | 
                if (serviceDonatebaseinfo.getInfosources().contains("交通")) { 
 | 
                    dataMap.put("JT", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getInfosources().contains("公安")) { 
 | 
                        dataMap.put("GA", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("GA", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("JT", "□"); 
 | 
                    if (serviceDonatebaseinfo.getInfosources().contains("公安")) { 
 | 
                        dataMap.put("GA", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("GA", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } else { 
 | 
            dataMap.put("YLJG", "□"); 
 | 
            if (serviceDonatebaseinfo.getInfosources().contains("家属")) { 
 | 
                dataMap.put("QS", (char) 8730); 
 | 
                if (serviceDonatebaseinfo.getInfosources().contains("交通")) { 
 | 
                    dataMap.put("JT", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getInfosources().contains("公安")) { 
 | 
                        dataMap.put("GA", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("GA", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("JT", "□"); 
 | 
                    if (serviceDonatebaseinfo.getInfosources().contains("公安")) { 
 | 
                        dataMap.put("GA", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("GA", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } else { 
 | 
                dataMap.put("QS", "□"); 
 | 
                if (serviceDonatebaseinfo.getInfosources().contains("交通")) { 
 | 
                    dataMap.put("JT", (char) 8730); 
 | 
                    if (serviceDonatebaseinfo.getInfosources().contains("公安")) { 
 | 
                        dataMap.put("GA", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("GA", "□"); 
 | 
                    } 
 | 
                } else { 
 | 
                    dataMap.put("JT", "□"); 
 | 
                    if (serviceDonatebaseinfo.getInfosources().contains("公安")) { 
 | 
                        dataMap.put("GA", (char) 8730); 
 | 
                    } else { 
 | 
                        dataMap.put("GA", "□"); 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } 
 | 
        dataMap.put("XXLYQT", serviceDonatebaseinfo.getInfosourcesOther() == null ? "" : serviceDonatebaseinfo.getInfosourcesOther()); 
 | 
        dataMap.put("HSZH", serviceDonatebaseinfo.getRedorganname() == null ? "" : serviceDonatebaseinfo.getRedorganname()); 
 | 
        dataMap.put("LXR", serviceDonatebaseinfo.getContactperson() == null ? "" : serviceDonatebaseinfo.getContactperson()); 
 | 
  
 | 
        Date dt1 = serviceDonatebaseinfo.getContacttime(); 
 | 
        String date1 = formatter.format(dt1); 
 | 
        String time1 = date1.substring(0, 16); 
 | 
        dataMap.put("LXSJ", serviceDonatebaseinfo.getContacttime() == null ? "" : time1); 
 | 
        dataMap.put("HQZZ", serviceDonatebaseinfo.getAcquisitiontissuename() == null ? "" : serviceDonatebaseinfo.getAcquisitiontissuename()); 
 | 
        dataMap.put("BGR", serviceDonatebaseinfo.getReportername() == null ? "" : serviceDonatebaseinfo.getReportername()); 
 | 
        dataMap.put("BGRDH", serviceDonatebaseinfo.getReporterphone() == null ? "" : serviceDonatebaseinfo.getReporterphone()); 
 | 
  
 | 
    } 
 | 
  
 | 
    @ApiOperation("获取状态获取计数") 
 | 
    @GetMapping("/countByRecordState") 
 | 
    public AjaxResult countByRecordState(TimeVO timeVO) { 
 | 
        log.info("获取状态获取计数:{}", timeVO); 
 | 
        return AjaxResult.success(serviceDonatebaseinfoService.countByRecordState(timeVO)); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 获取捐献工作流 
 | 
     */ 
 | 
    @ApiOperation("获取捐献工作流") 
 | 
    @GetMapping(value = "/getWorkFlow/{id}") 
 | 
    public AjaxResult getWorkFlow(@PathVariable("id") Long id) { 
 | 
        log.info("获取捐献工作流:{}", id); 
 | 
        return AjaxResult.success(serviceDonatebaseinfoService.getWorkFlow(id)); 
 | 
    } 
 | 
  
 | 
} 
 |