|
@ -266,6 +266,8 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
if (conclusionStatus==2){
|
|
|
EmergencyWarnConclusionDO conclusionDO = emergencyWarnConclusionDao.findByOrderId(orderDO.getId());
|
|
|
if (conclusionDO!=null){
|
|
|
conclusionDO.setReasonName(dictService.fingByNameAndCode(ConstantUtil.DICT_EMERGENCY_REASON,String.valueOf(conclusionDO.getEmergencyReason())));
|
|
|
conclusionDO.setTreatmentStatusName(dictService.fingByNameAndCode(ConstantUtil.DICT_EMERGENCY_TREATMENT_STATUS,String.valueOf(conclusionDO.getEmergencyTreatmentStatus())));
|
|
|
emergencyOrderVO.setEmergencyWarnConclusionDO(conclusionDO);
|
|
|
}
|
|
|
}
|
|
@ -335,17 +337,19 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
if (StringUtils.isBlank(doc.getDoctorLat()) || StringUtils.isBlank(doc.getDoctorLon())) {
|
|
|
continue;
|
|
|
}
|
|
|
double distanceTmp = countDistance.getDistance(Double.parseDouble(orderDO.getServeLat()),Double.parseDouble(orderDO.getServeLon()),Double.parseDouble(doc.getDoctorLat()),Double.parseDouble(doc.getDoctorLon()));
|
|
|
otherDoctorDistanceObj = new JSONObject();
|
|
|
otherDoctorDistanceObj.put("doctor",doc.getId());
|
|
|
otherDoctorDistanceObj.put("doctorName",doc.getName());
|
|
|
otherDoctorDistanceObj.put("doctorAddress",doc.getDoctorLocateAddress());
|
|
|
otherDoctorDistanceObj.put("doctorLon",doc.getDoctorLon());
|
|
|
otherDoctorDistanceObj.put("doctorLat",doc.getDoctorLat());
|
|
|
otherDoctorDistanceObj.put("distance",doc);//两点距离
|
|
|
otherDoctorDistanceObj.put("distance",distanceTmp);//两点距离
|
|
|
otherDoctorDistance.add(otherDoctorDistanceObj);
|
|
|
}
|
|
|
emergencyOrderVO.setOtherDoctorDistance(otherDoctorDistance.toJSONString());
|
|
|
}
|
|
|
emergencyOrderVO.setNoticePersons(noticePersons);
|
|
|
|
|
|
JSONObject jsonObject = JSON.parseObject(JSON.toJSONStringWithDateFormat(emergencyOrderVO,"yyyy-MM-dd HH:mm:ss", SerializerFeature.WriteMapNullValue));
|
|
|
//获取咨询
|
|
@ -375,6 +379,7 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
return result;
|
|
|
}
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(doctor);
|
|
|
orderDO.setStatus(-2);
|
|
|
orderDO.setCancelTime(new Date());
|
|
|
orderDO.setUpdateTime(new Date());
|
|
|
orderDO.setUpdateUserName(doctorDO.getName());
|
|
@ -662,7 +667,7 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
logger.error(failMsg);
|
|
|
return result;
|
|
|
}
|
|
|
if(orderDO.getStatus() != SecurityMonitoringOrderDO.Status.complete.getType()){
|
|
|
if(orderDO.getStatus() == SecurityMonitoringOrderDO.Status.complete.getType()){
|
|
|
String failMsg = "当前工单已结束";
|
|
|
result.put("resultFlag", 0);
|
|
|
result.put("resultMsg", failMsg);
|