|  | @ -633,8 +633,7 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         if ( StringUtils.isNotBlank(orderDO.getDoctor())) {
 |  |         if ( StringUtils.isNotBlank(orderDO.getDoctor())) {
 | 
												
													
														
															|  |             orderDO.setStatus(2);
 |  |             orderDO.setStatus(2);
 | 
												
													
														
															|  | /*            orderDO.setDoctor(signFamily.getDoctor());
 |  | 
 | 
												
													
														
															|  |             orderDO.setDoctorName(signFamily.getDoctorName());*/
 |  | 
 | 
												
													
														
															|  | 
 |  |             orderDO.setDoctorName(orderDO.getExpectedDoctorName());
 | 
												
													
														
															|  |             this.save(orderDO);
 |  |             this.save(orderDO);
 | 
												
													
														
															|  |             WlyyDoorServiceOrderDO wlyyDoorServiceOrder = wlyyDoorServiceOrderDao.findOne(orderDO.getId());
 |  |             WlyyDoorServiceOrderDO wlyyDoorServiceOrder = wlyyDoorServiceOrderDao.findOne(orderDO.getId());
 | 
												
													
														
															|  |             //新增工单医生关联关系
 |  |             //新增工单医生关联关系
 | 
												
											
												
													
														
															|  | @ -642,7 +641,13 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
 | 
												
													
														
															|  |             // 给服务医生发接单消息
 |  |             // 给服务医生发接单消息
 | 
												
													
														
															|  |             this.createMessage(orderDO.getId(),orderDO.getProxyPatient(),orderDO.getDoctor(),407,"服务工单待接单","您有新的服务工单,请前往处理");
 |  |             this.createMessage(orderDO.getId(),orderDO.getProxyPatient(),orderDO.getDoctor(),407,"服务工单待接单","您有新的服务工单,请前往处理");
 | 
												
													
														
															|  |             //发送智能助手消息
 |  |             //发送智能助手消息
 | 
												
													
														
															|  |             sendWeixinMessage(4,orderDO.getDoctor(),orderDO.getPatient());
 |  | 
 | 
												
													
														
															|  | 
 |  | //            sendWeixinMessage(4,orderDO.getDoctor(),orderDO.getPatient());
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |             //发送 预约卡片信息(2101类型)
 | 
												
													
														
															|  | 
 |  |             JSONObject orderInfoContent = this.queryOrderCardInfo(orderDO);
 | 
												
													
														
															|  | 
 |  |             orderInfoContent.put("re_msg_type",0);//居民预约
 | 
												
													
														
															|  | 
 |  |             this.qucikSendIM(orderDO.getId(), "system", "智能助手", "2101", orderInfoContent.toJSONString());
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |             result.put(ResponseContant.resultFlag, ResponseContant.success);
 |  |             result.put(ResponseContant.resultFlag, ResponseContant.success);
 | 
												
													
														
															|  |             result.put(ResponseContant.resultMsg, consultTeam);
 |  |             result.put(ResponseContant.resultMsg, consultTeam);
 | 
												
													
														
															|  |             return  result;
 |  |             return  result;
 | 
												
											
												
													
														
															|  | @ -659,7 +664,7 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
 | 
												
													
														
															|  |             this.createMessage(orderDO.getId(),"system",dispatcher,430,"居民提交工单申请",orderDO.getPatientName() + "提交了服务工单"+orderDO.getNumber()+"申请");
 |  |             this.createMessage(orderDO.getId(),"system",dispatcher,430,"居民提交工单申请",orderDO.getPatientName() + "提交了服务工单"+orderDO.getNumber()+"申请");
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         //给机构调度员发送医生助手消息
 |  |         //给机构调度员发送医生助手消息
 | 
												
													
														
															|  |         String  dispatcherSql = "SELECT m.doctor_code FROM base_doctor_role m " +
 |  | 
 | 
												
													
														
															|  | 
 |  | /*        String  dispatcherSql = "SELECT m.doctor_code FROM base_doctor_role m " +
 | 
												
													
														
															|  |                 "JOIN base_doctor_role_dict r ON m.role_code = r.code " +
 |  |                 "JOIN base_doctor_role_dict r ON m.role_code = r.code " +
 | 
												
													
														
															|  |                 "JOIN base_doctor_hospital o ON m.doctor_code = o.doctor_code WHERE " +
 |  |                 "JOIN base_doctor_hospital o ON m.doctor_code = o.doctor_code WHERE " +
 | 
												
													
														
															|  |                 " r.code = 'dispatcher' and o.del=1 and o.org_code = '"+orderDO.getHospital()+"'";
 |  |                 " r.code = 'dispatcher' and o.del=1 and o.org_code = '"+orderDO.getHospital()+"'";
 | 
												
											
												
													
														
															|  | @ -667,7 +672,7 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
 | 
												
													
														
															|  |         List<Map<String, Object>> dispatcherList = jdbcTemplate.queryForList(dispatcherSql);
 |  |         List<Map<String, Object>> dispatcherList = jdbcTemplate.queryForList(dispatcherSql);
 | 
												
													
														
															|  |         for(Map<String, Object> map : dispatcherList) {
 |  |         for(Map<String, Object> map : dispatcherList) {
 | 
												
													
														
															|  |             sendWeixinMessage(3, map.get("doctor_code") + "", orderDO.getPatient());
 |  |             sendWeixinMessage(3, map.get("doctor_code") + "", orderDO.getPatient());
 | 
												
													
														
															|  |         }
 |  | 
 | 
												
													
														
															|  | 
 |  |         }*/
 | 
												
													
														
															|  |         result.put(ResponseContant.resultFlag, ResponseContant.success);
 |  |         result.put(ResponseContant.resultFlag, ResponseContant.success);
 | 
												
													
														
															|  |         result.put(ResponseContant.resultMsg, consultTeam);
 |  |         result.put(ResponseContant.resultMsg, consultTeam);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
											
												
													
														
															|  | @ -676,7 +681,6 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
 | 
												
													
														
															|  |         orderInfoContent.put("re_msg_type",0);//居民预约
 |  |         orderInfoContent.put("re_msg_type",0);//居民预约
 | 
												
													
														
															|  |         this.qucikSendIM(orderDO.getId(), "system", "智能助手", "2101", orderInfoContent.toJSONString());
 |  |         this.qucikSendIM(orderDO.getId(), "system", "智能助手", "2101", orderInfoContent.toJSONString());
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         if(StringUtils.isNoneBlank(orderDO.getDoctor())){
 |  |         if(StringUtils.isNoneBlank(orderDO.getDoctor())){
 | 
												
													
														
															|  |             //服务医生修改,直接转派
 |  |             //服务医生修改,直接转派
 | 
												
													
														
															|  |             BaseDoctorDO transDoctor = doctorDao.findById(orderDO.getDoctor());
 |  |             BaseDoctorDO transDoctor = doctorDao.findById(orderDO.getDoctor());
 |