|
@ -3,6 +3,7 @@ package com.yihu.jw.care.endpoint.doorCoach;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.yihu.jw.care.aop.ObserverRequired;
|
|
|
import com.yihu.jw.care.endpoint.BaseController;
|
|
|
|
|
|
import com.yihu.jw.care.service.consult.ConsultTeamService;
|
|
@ -50,6 +51,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = "proxyCreate")
|
|
|
@ApiOperation(value = "创建上门预约咨询--医生代预约")
|
|
|
@ObserverRequired
|
|
|
public String create(@ApiParam(name = "jsonData", value = "Json数据", required = true) @RequestParam String jsonData) {
|
|
|
try{
|
|
|
JSONObject result = patientDoorCoachOrderService.proxyCreate(jsonData,getUID());
|
|
@ -102,6 +104,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = "sendOrderToDoctor")
|
|
|
@ApiOperation(value = "调度员给医生派单")
|
|
|
@ObserverRequired
|
|
|
public String sendOrderToDoctor(
|
|
|
@ApiParam(name = "orderId", value = "工单id") @RequestParam(value = "orderId", required = true) String orderId,
|
|
|
@ApiParam(name = "remark", value = "调度员备注") @RequestParam(value = "remark", required = false) String remark,
|
|
@ -123,6 +126,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = "transferOrder")
|
|
|
@ApiOperation(value = "医生转派单")
|
|
|
@ObserverRequired
|
|
|
public String transferOrder(
|
|
|
@ApiParam(name = "orderId", value = "工单id") @RequestParam(value = "orderId", required = true) String orderId,
|
|
|
@ApiParam(name = "remark", value = "当前医生备注") @RequestParam(value = "remark", required = false) String remark,
|
|
@ -144,6 +148,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping("acceptOrder")
|
|
|
@ApiOperation(value = "接单")
|
|
|
@ObserverRequired
|
|
|
public String acceptOrder(
|
|
|
@ApiParam(value = "工单id", name = "orderId", required = true) @RequestParam(value = "orderId", required = true) String orderId,
|
|
|
@ApiParam(value = "医生职称code", name = "jobCode", required = false) @RequestParam(value = "jobCode", required = false) String jobCode,
|
|
@ -159,6 +164,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping("refuse")
|
|
|
@ApiOperation(value = "拒单")
|
|
|
@ObserverRequired
|
|
|
public String refuseOrder(
|
|
|
@ApiParam(value = "工单id", name = "orderId", required = true)
|
|
|
@RequestParam(value = "orderId", required = true) String orderId,
|
|
@ -174,6 +180,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = "cancelOrder")
|
|
|
@ApiOperation(value = "取消工单")
|
|
|
@ObserverRequired
|
|
|
public String cancelOrder(
|
|
|
@ApiParam(name = "orderId", value = "工单id") @RequestParam(value = "orderId", required = true) String orderId,
|
|
|
@ApiParam(name = "type", value = "取消类型:1-调度员主动取消,2-居民取消, 3-医生取消") @RequestParam(value = "type", required = true) int type,
|
|
@ -194,6 +201,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping("signIn")
|
|
|
@ApiOperation(value = "上门预约签到")
|
|
|
@ObserverRequired
|
|
|
public String signIn(
|
|
|
@ApiParam(value = "工单id", name = "orderId")
|
|
|
@RequestParam(value = "orderId", required = true) String orderId,
|
|
@ -221,6 +229,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping("updateDoorConclusion")
|
|
|
@ApiOperation("编辑保存服务工单小结")
|
|
|
@ObserverRequired
|
|
|
public String updateDoorConclusion(
|
|
|
@ApiParam(value = "工单id", name = "orderId",required = true)
|
|
|
@RequestParam(value = "orderId", required = true) String orderId,
|
|
@ -264,6 +273,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping("saveOrderFinishByDoctor")
|
|
|
@ApiOperation(value = "确认完成工单")
|
|
|
@ObserverRequired
|
|
|
public String saveOrderFinishByDoctor(
|
|
|
@ApiParam(value = "工单id", name = "orderId")
|
|
|
@RequestParam(value = "orderId", required = true) String orderId,
|
|
@ -280,6 +290,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping("updateArrivingTime")
|
|
|
@ApiOperation(value = "修改预计到达时间")
|
|
|
@ObserverRequired
|
|
|
public String updateArrivingTime(
|
|
|
@ApiParam(value = "工单id", name = "orderId")
|
|
|
@RequestParam(value = "orderId", required = true) String orderId,
|
|
@ -504,6 +515,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = "payOrder")
|
|
|
@ApiOperation(value = "医生确认付款")
|
|
|
@ObserverRequired
|
|
|
public ObjEnvelop payOrder(
|
|
|
@ApiParam(name = "orderId", value = "工单id") @RequestParam(value = "orderId", required = true) String orderId,
|
|
|
@ApiParam(name = "payWay", value = "支付方式:1-微信支付,2-线下支付") @RequestParam(value = "payWay", required = false,defaultValue = "2") int payWay) {
|
|
@ -538,6 +550,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping("/initDoorStatus")
|
|
|
@ApiOperation(value = "初始化医生分派订单开关状态")
|
|
|
@ObserverRequired
|
|
|
public String initDoorStatus() {
|
|
|
try {
|
|
|
doctorDoorCoachOrderService.initDoorStatus(null);
|
|
@ -564,6 +577,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping("/dispatchOrderSwitch")
|
|
|
@ApiOperation(value = "分派订单开关修改")
|
|
|
@ObserverRequired
|
|
|
public String dispatchOrderSwitch(
|
|
|
@ApiParam(name = "doctor", value = "医生code")
|
|
|
@RequestParam(value = "doctor", required = true) String doctor,
|
|
@ -579,6 +593,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = "dispatcherIntoTopic")
|
|
|
@ApiOperation(value = "调度员进入会话")
|
|
|
@ObserverRequired
|
|
|
public ObjEnvelop dispatcherIntoTopic(
|
|
|
@ApiParam(name = "orderId", value = "工单id", required = true) @RequestParam String orderId,
|
|
|
@ApiParam(name = "hospitalName", value = "机构名称", required = true) @RequestParam String hospitalName,
|
|
@ -639,6 +654,7 @@ public class DoctorDoorCoachOrderController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = "updateOrderCardInfo")
|
|
|
@ApiOperation(value = "更新预约简要信息")
|
|
|
@ObserverRequired
|
|
|
public String updateOrderCardInfo(
|
|
|
@ApiParam(name = "jsonData", value = "json数据") @RequestParam(value = "jsonData", required = true) String jsonData) {
|
|
|
try{
|