|
@ -211,15 +211,14 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
//资质处理 .医生填写资质信息后,生成一个已通过审核的资质
|
|
|
try {
|
|
|
if (jsonObjectParam.get("doorServiceApplication") != null) {
|
|
|
//创建审核
|
|
|
doorServiceApplicationService.create("2", jsonObjectParam.get("doorServiceApplication").toString(), doctorCode);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
/**
|
|
|
* 资质处理 .医生填写资质信息后,生成一个已通过审核的资质
|
|
|
* 云照护没用资质审核模块
|
|
|
*/
|
|
|
// if (jsonObjectParam.get("doorServiceApplication") != null) {
|
|
|
// //创建审核
|
|
|
// doorServiceApplicationService.create("2", jsonObjectParam.get("doorServiceApplication").toString(), doctorCode);
|
|
|
// }
|
|
|
|
|
|
|
|
|
WlyyDoorServiceOrderDO orderDO = null;
|
|
@ -290,8 +289,8 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
|
|
|
orderDO.setUpdateUser(orderDO.getProxyPatient());
|
|
|
orderDO.setUpdateUserName(orderDO.getProxyPatientName());
|
|
|
}
|
|
|
orderDO.setStatus(2);
|
|
|
orderDO.setType(3);
|
|
|
orderDO.setStatus(2);//2-待(医生)接单
|
|
|
orderDO.setType(3);//3医生代预约
|
|
|
orderDO.setDispatcherResponseTime(new Date());
|
|
|
this.save(orderDO);
|
|
|
result.put("orderId", orderDO.getId());
|
|
@ -300,21 +299,24 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
if ("1".equals(orderDO.getShortcutType())) {
|
|
|
// //快捷的当前医生直接接单
|
|
|
// try {
|
|
|
// Doctor doctor = doctorDao.findByCode(orderDO.getDoctor());
|
|
|
// Hospital hospital = hospitalDao.findByCode(doctor.getHospital());
|
|
|
// doorOrderService.acceptOrder1(orderDO.getId(), doctor.getJob(), doctor.getJobName(), hospital.getLevel());
|
|
|
// } catch (Exception e) {
|
|
|
// e.printStackTrace();
|
|
|
// }
|
|
|
} else {
|
|
|
// 给服务医生发接单消息
|
|
|
this.createMessage(orderDO.getId(), orderDO.getProxyPatient(), orderDO.getDoctor(), 407, "服务工单待接单", "您有新的服务工单,请前往处理");
|
|
|
//发送智能助手消息
|
|
|
sendWeixinMessage(4, orderDO.getDoctor(), orderDO.getPatient());
|
|
|
}
|
|
|
// if ("1".equals(orderDO.getShortcutType())) {
|
|
|
//// //快捷的当前医生直接接单
|
|
|
//// try {
|
|
|
//// Doctor doctor = doctorDao.findByCode(orderDO.getDoctor());
|
|
|
//// Hospital hospital = hospitalDao.findByCode(doctor.getHospital());
|
|
|
//// doorOrderService.acceptOrder1(orderDO.getId(), doctor.getJob(), doctor.getJobName(), hospital.getLevel());
|
|
|
//// } catch (Exception e) {
|
|
|
//// e.printStackTrace();
|
|
|
//// }
|
|
|
// } else {
|
|
|
// // 给服务医生发接单消息
|
|
|
// this.createMessage(orderDO.getId(), orderDO.getProxyPatient(), orderDO.getDoctor(), 407, "服务工单待接单", "您有新的服务工单,请前往处理");
|
|
|
// //发送智能助手消息
|
|
|
// sendWeixinMessage(4, orderDO.getDoctor(), orderDO.getPatient());
|
|
|
// }
|
|
|
|
|
|
//待预约走调度平台的模式
|
|
|
result = submitDoorOrderAndSendMsg(orderDO, "5", jsonObjectParam);
|
|
|
|
|
|
result.put(ResponseContant.resultFlag, ResponseContant.success);
|
|
|
return result;
|
|
@ -493,7 +495,8 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
|
|
|
}
|
|
|
wlyyDoorFeeDetailService.delete(idStrSet.toArray());
|
|
|
totalFee = orderDO.getTotalFee().subtract(totalSubFee);
|
|
|
// orderDO.setTotalFee(totalFee);
|
|
|
orderDO.setTotalFee(totalFee);
|
|
|
wlyyDoorServiceOrderDao.save(orderDO);//保存总费用
|
|
|
}
|
|
|
}
|
|
|
wlyyDoorDoctorService.delete(idStrSet.toArray());
|