| | |
| | | } |
| | | } |
| | | |
| | | emergencyInfo.setTransferDistance(createVO.getDistance()); |
| | | emergencyInfo.setTransferDistance(createVO.getTransferDistance()); |
| | | emergencyInfo.setTransferPrice(createVO.getPrice()); |
| | | emergencyInfo.setDocumentTypeId(createVO.getDocumentTypeId()); |
| | | emergencyInfo.setTaskTypeId(createVO.getTaskTypeId()); |
| | |
| | | } |
| | | } |
| | | |
| | | if (updateVO.getDistance() != null) { |
| | | oldEmergency.setTransferDistance(updateVO.getDistance()); |
| | | if (updateVO.getTransferDistance() != null) { |
| | | oldEmergency.setTransferDistance(updateVO.getTransferDistance()); |
| | | } |
| | | if (updateVO.getPrice() != null) { |
| | | oldEmergency.setTransferPrice(updateVO.getPrice()); |
| | |
| | | return; |
| | | } |
| | | |
| | | log.info("更新转运任务 taskId:{}", existingInfo.getTaskId()); |
| | | // log.info("更新转运任务 taskId:{}", existingInfo.getTaskId()); |
| | | |
| | | // 更新患者信息 |
| | | if (createVO.getPatient() != null) { |
| | |
| | | if (coords != null) { |
| | | existingInfo.setHospitalOutLongitude(BigDecimal.valueOf(coords.get("lng"))); |
| | | existingInfo.setHospitalOutLatitude(BigDecimal.valueOf(coords.get("lat"))); |
| | | log.info("转出医院GPS坐标自动获取成功: {}, {}", coords.get("lng"), coords.get("lat")); |
| | | // log.info("转出医院GPS坐标自动获取成功: {}, {}", coords.get("lng"), coords.get("lat")); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("自动获取转出医院GPS坐标失败", e); |
| | |
| | | if (coords != null) { |
| | | existingInfo.setHospitalInLongitude(BigDecimal.valueOf(coords.get("lng"))); |
| | | existingInfo.setHospitalInLatitude(BigDecimal.valueOf(coords.get("lat"))); |
| | | log.info("转入医院GPS坐标自动获取成功: {}, {}", coords.get("lng"), coords.get("lat")); |
| | | // log.info("转入医院GPS坐标自动获取成功: {}, {}", coords.get("lng"), coords.get("lat")); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("自动获取转入医院GPS坐标失败", e); |
| | |
| | | } |
| | | |
| | | // 更新费用信息 |
| | | if (createVO.getDistance() != null && BigDecimalUtil.izBigZero(createVO.getDistance())) { |
| | | existingInfo.setTransferDistance(createVO.getDistance()); |
| | | if (createVO.getTransferDistance() != null && BigDecimalUtil.izBigZero(createVO.getTransferDistance())) { |
| | | existingInfo.setTransferDistance(createVO.getTransferDistance()); |
| | | } |
| | | if (createVO.getPrice() != null) { |
| | | existingInfo.setTransferPrice(createVO.getPrice()); |