| 
					
				 | 
			
			
				@ -1346,6 +1346,80 @@ public class PatientDoorCoachOrderService extends BaseJpaService<BaseDoorCoachOr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return object; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Transactional(rollbackFor = Exception.class) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONObject updateOrderCardInfo(String jsonData){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject result = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject jsonObjectParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObjectParam = JSONObject.parseObject(jsonData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put(ResponseContant.resultFlag, ResponseContant.fail); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String failMsg = "参数转换成JSON对象异常:" + e.getMessage(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put(ResponseContant.resultMsg, failMsg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.error(failMsg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        BaseDoorCoachOrderDO wlyyDoorServiceOrder = baseDoorCoachOrderDao.findOne(jsonObjectParam.getString("orderId")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        wlyyDoorServiceOrder.setPatientName(jsonObjectParam.getString("patientName")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 居民电话 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(jsonObjectParam.getString("phone"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setPatientPhone(jsonObjectParam.getString("phone")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 医生预计达到时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(jsonObjectParam.getString("doctorArrivingTime"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setDoctorArrivingTime(jsonObjectParam.get("doctorArrivingTime").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 居民期望服务时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        if(!StringUtils.isEmpty(jsonObjectParam.getString("patientExpectedServeTime"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        wlyyDoorServiceOrder.setPatientExpectedServeTime(jsonObjectParam.get("patientExpectedServeTime").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 服务区 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(jsonObjectParam.getString("serveTown"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setServeTown(jsonObjectParam.getString("serveTown")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 服务地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(jsonObjectParam.getString("serveAddress"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setServeAddress(jsonObjectParam.getString("serveAddress")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        wlyyDoorServiceOrder.setServeAddress(jsonObjectParam.getString("serveAddress")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(jsonObjectParam.getString("serveLat"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setServeLat(jsonObjectParam.getString("serveLat")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(jsonObjectParam.getString("serveLon"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setServeLon(jsonObjectParam.getString("serveLon")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 服务描述 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(jsonObjectParam.getString("serveDesc"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setServeDesc(jsonObjectParam.getString("serveDesc")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //服务类型    医生端和居民端公用接口 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(jsonObjectParam.getString("serviceStatus"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setServiceStatus(jsonObjectParam.getString("serviceStatus")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyDoorServiceOrder.setServiceStatus("1");//默认为1  预约项目 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        wlyyDoorServiceOrder.setIsPatientConfirm(WlyyDoorServiceOrderDO.IsPatientConfirm.yes.getType()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        wlyyDoorServiceOrder.setPatientConfirmTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.save(wlyyDoorServiceOrder); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //新增工单居民确认操作日志记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (orderWithConfirmLogAdd(result, jsonObjectParam, wlyyDoorServiceOrder.getId())) {return result;} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.put(ResponseContant.resultFlag, ResponseContant.success); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.put(ResponseContant.resultMsg, wlyyDoorServiceOrder); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //发送 预约卡片信息(2101类型) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject orderInfoContent = this.queryOrderCardInfo(wlyyDoorServiceOrder); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        orderInfoContent.put("re_msg_type",1);//医生修改待确认 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.qucikSendIM(wlyyDoorServiceOrder.getId(), wlyyDoorServiceOrder.getDispatcher(), "智能助手", "2201", orderInfoContent.toJSONString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 添加【工单派单,转单】等系统消息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 |