| | |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | |
| | | import com.ruoyi.common.enums.DataSourceType; |
| | | import com.ruoyi.system.domain.DictionaryCondition; |
| | | import com.ruoyi.system.domain.DispatchOrd; |
| | | import com.ruoyi.system.domain.TbOrders; |
| | | import com.ruoyi.system.service.IDispatchOrdService; |
| | |
| | | |
| | | dispatchInfo.put("dispatchStatus","已调度"); |
| | | } |
| | | |
| | | |
| | | //车牌号 |
| | | String carLicense = dispatchOrdService.selectCarLicenseByCarId(Integer.valueOf(dispatchOrd.getDispatchOrdCarID())); |
| | | dispatchInfo.put("carLicense", carLicense); |
| | | } |
| | | |
| | | //病人情况 |
| | | Map<String, Object> medicalInfo = new HashMap<>(); |
| | | medicalInfo.put("hasConsciousness", orderDetail.getSense()); |
| | | medicalInfo.put("complaint",orderDetail.getComplaint()); |
| | | |
| | | //条件 |
| | | List<DictionaryCondition> conditions = dispatchOrdService.selectDictionaryConditions(); |
| | | List<Integer> conditionIds = dispatchOrdService.selectConditionIdsByServiceOrdCoId(Long.valueOf(orderDetail.getServiceOrdID())); |
| | | |
| | | String patientCondition = "";//病人情况 |
| | | String useVentilator = "";//使用呼吸机 |
| | | for(DictionaryCondition condition : conditions){ |
| | | |
| | | if(conditionIds.contains(condition.getVID())){ |
| | | patientCondition += condition.getVOrder2() + ": " + condition.getVtext() + "; "; |
| | | } |
| | | |
| | | if(condition.getVOrder2().contains("呼吸机")){ |
| | | useVentilator = condition.getVtext(); |
| | | } |
| | | } |
| | | |
| | | medicalInfo.put("patientCondition", patientCondition); |
| | | medicalInfo.put("useVentilator", useVentilator); |
| | | |
| | | |
| | | data.put("orderInfo", orderInfo); |
| | | data.put("patientInfo", patientInfo); |
| | | data.put("serviceInfo", serviceInfo); |
| | | data.put("medicalInfo", new HashMap<>()); // 暂时为空 |
| | | data.put("medicalInfo", medicalInfo); // 暂时为空 |
| | | data.put("dispatchInfo", dispatchInfo); // 更新为包含人员信息的dispatchInfo |
| | | data.put("paymentInfo", new ArrayList<>()); // 暂时为空 |
| | | data.put("operationInfo", new ArrayList<>()); // 暂时为空 |