本文解答了关于《体检对象》相关内容,同时关于1、体检对象的官方称呼,2、体检对象是什么意思,3、体检对象怎么称呼,4、体检对象包括,5、体检对象建档率,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
体检对象
PhysicalExaminationUserEntity physicalExaminationUserEntity = null;
if("self".equals(physicalExaminationFilingInfoEntity.getProjectType())){
physicalExaminationUserEntity = physicalExaminationUserDao.getByOrderCode(physicalExaminationFilingInfoEntity.getOrderCode());
}else{
physicalExaminationUserEntity = physicalExaminationUserDao.getByOrderCodeAndEntryNum(
physicalExaminationFilingInfoEntity.getOrderCode(), physicalExaminationFilingInfoEntity.getEntryNum());
}
//项目类型
if("package".equals(physicalExaminationFilingInfoEntity.getProjectType())){
if("woman".equals(physicalExaminationUserEntity.getGender())){
argsList.add("女性套餐");
}else{
argsList.add("男性套餐");
}
argsList.add("");
argsList.add("");
}else{
argsList.add("单项");
//参考范围
argsList.add(physicalExaminationFilingInfoEntity.getRanges());
//参考值
argsList.add(physicalExaminationFilingInfoEntity.getReferenceValue());
}
//检查结果,存放循环的数据
List examineResultList = Lists.newArrayList();
//多选结果
Map mapResult = Maps.newHashMap();
int i = 0;
for(PhysicalExaminationResultEntity physicalExaminationResultEntity:physicalExaminationResultList){
if(PhysicalExaminationFilingEnum.InputMode.EDIT.getName().equals(physicalExaminationFilingInfoEntity.getInputMode())){
if(!"jy".equals(physicalExaminationFilingInfoEntity.getProjectType())
&& !physicalExaminationResultEntity.getResult().equals(physicalExaminationResultEntity.getFilingResult())){
examineResultList.add(physicalExaminationResultEntity.getResult());
}
if("jy".equals(physicalExaminationFilingInfoEntity.getProjectType())){
String[] resultArr = physicalExaminationResultEntity.getResult().split(",");
String[] filingResultArr = physicalExaminationResultEntity.getFilingResult().split(",");
//循环比较
for(String result : resultArr){
boolean noSelect = true;
for(String filingResult : filingResultArr){
if(result.equals(filingResult)){
noSelect = false;
break;
}
}
if(noSelect){
mapResult.put(String.valueOf(i),result);
i++;
}
}
}
} else {
examineResultList.add(physicalExaminationResultEntity.getResult());
}
}
//多选,先把循环结果放入
if("jy".equals(physicalExaminationFilingInfoEntity.getProjectType())){
//把修改前的结果复制过来
String[] resultArr = physicalExaminationResultList.get(0).getResult().split(",");
for(String result : resultArr){
if(mapResult.containsValue(result)){
examineResultList.add(result);
}else{
examineResultList.add("");
}
}
}
//将结果复制到新列表
argsList.addAll(examineResultList);
//处理结果
String result = physicalExaminationFilingInfoEntity.getResult();
if(!"危险".equals(physicalExaminationFilingInfoEntity.getRiskLevel())
&& !"阴性".equals(result) &&!"阳性".equals(result)){
//拼接各项的值
result = physicalExaminationFilingInfoService.parseResult(result);
}
argsList.add(result);
//拼接参数
String[] args = argsList.toArray(new String[argsList.size()]);
if(StringUtils.isNotBlank(physicalExaminationUserEntity.getEmployeeName())){
args[0] = physicalExaminationUserEntity.getEmployeeName();
}
//反向下标,不从1开始
args[args.length-2] = physicalExaminationFilingInfoEntity.getRiskLevel();
args[args.length-1] = physicalExaminationFilingInfoEntity.getDepartmentAdvice();
return args;
}
}
总结:以上是编辑:【韦世玉】整理及AI智能原创关于《体检对象
》优质内容解答希望能帮助到您。