|  | @ -189,36 +189,6 @@ public class PatientDoorCoachOrderService extends BaseJpaService<BaseDoorCoachOr
 | 
	
		
			
				|  |  |         //新增工单与服务项费用关联关系
 | 
	
		
			
				|  |  |         if (orderWithPackageItemFeeAdd(result, jsonObjectParam, orderDO,null)) {return result;}
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         JSONObject dispatcherJson = queryDispatcherInfoByPatient(jsonObjectParam.getJSONObject("hospital").get("code").toString());
 | 
	
		
			
				|  |  |         if (dispatcherJson.getInteger("resultFlag")==1){
 | 
	
		
			
				|  |  |             List<Map<String,Object>> dispatcherInfoList = (List<Map<String, Object>>) dispatcherJson.get(ResponseContant.resultMsg);
 | 
	
		
			
				|  |  |             for(Map<String,Object> map: dispatcherInfoList){
 | 
	
		
			
				|  |  |                 String dispatcher = map.get("code").toString();
 | 
	
		
			
				|  |  |                 BaseDoctorDO doctorVO = doctorDao.findById(dispatcher);
 | 
	
		
			
				|  |  |                 // 派单消息-首页
 | 
	
		
			
				|  |  |                 this.createMessage("新增居民预约服务申请","702","system","system", orderDO.getId(), dispatcher,doctorVO.getName() ,doctorVO.getIdcard(), orderDO.getPatientName() + "提交了服务预约申请,请您前往处理");
 | 
	
		
			
				|  |  |                 // 派单-实时工单消息  430 居民提交工单申请-- 张三提交了服务工单12345678申请
 | 
	
		
			
				|  |  |                 this.createMessage("居民提交工单申请","730","system","system", orderDO.getId(), dispatcher,doctorVO.getName() ,doctorVO.getIdcard(), orderDO.getPatientName() + "提交了服务工单"+orderDO.getNumber()+"申请");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         result.put(ResponseContant.resultFlag, ResponseContant.success);
 | 
	
		
			
				|  |  |         result.put(ResponseContant.resultMsg, consultTeam);
 | 
	
		
			
				|  |  |         //发送智能助手消息
 | 
	
		
			
				|  |  |         sendWeixinMessage(4,orderDO.getDoctor(),orderDO.getPatient());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //发送 预约卡片信息(2201类型)
 | 
	
		
			
				|  |  |         JSONObject orderInfoContent = this.queryOrderCardInfo(orderDO);
 | 
	
		
			
				|  |  |         orderInfoContent.put("re_msg_type",0);//居民预约
 | 
	
		
			
				|  |  |         this.qucikSendIM(orderDO.getId(), "system", "智能助手", "2201", orderInfoContent.toJSONString());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if(StringUtils.isNoneBlank(orderDO.getDoctor())){
 | 
	
		
			
				|  |  |             //服务医生修改,直接转派
 | 
	
		
			
				|  |  |             BaseDoctorDO transDoctor = doctorDao.findById(orderDO.getDoctor());
 | 
	
		
			
				|  |  |             sendOrderToDoctor(orderDO.getId(),null,"system","系统",transDoctor.getId(),transDoctor.getName(),transDoctor.getJobTitleName());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         serviceNewsService.addServiceNews(orderDO.getPatientName(),orderDO.getPatient(),"1",null);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //发起支付订单
 | 
	
		
			
				|  |  |         payService.submitOrder(orderDO.getPatient(),"3",orderDO.getId(),orderDO.getTotalFee().doubleValue());
 | 
	
		
			
				|  |  |         return result;
 | 
	
	
		
			
				|  | @ -327,6 +297,7 @@ public class PatientDoorCoachOrderService extends BaseJpaService<BaseDoorCoachOr
 | 
	
		
			
				|  |  |         JSONObject result = new JSONObject();
 | 
	
		
			
				|  |  |         BaseDoorCoachOrderDO orderDO= baseDoorCoachOrderDao.findOne(orderId);
 | 
	
		
			
				|  |  |         if (orderDO!=null){
 | 
	
		
			
				|  |  |             serviceNewsService.addServiceNews(orderDO.getPatientName(),orderDO.getPatient(),"1",null);
 | 
	
		
			
				|  |  |             if (orderDO.getPayWay()!=null){
 | 
	
		
			
				|  |  |                 if (orderDO.getType()==3){//医生代预约
 | 
	
		
			
				|  |  |                     // 给服务医生发接单消息
 |