|
@ -11,11 +11,12 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
|
* Created by Trick on 2017/11/14.
|
|
|
*/
|
|
|
@Controller
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/doctor/pcCustomer", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
@Api(description = "客服系统")
|
|
|
public class CallRecordController extends BaseController {
|
|
@ -81,4 +82,25 @@ public class CallRecordController extends BaseController {
|
|
|
return error(-1,"保存失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/dealAppointCallService", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ApiOperation(value = "处理预约协同服务")
|
|
|
public String dealAppointCallService(@ApiParam(name="type",value="1.预约成功,2.预约失败")@RequestParam(required = true)String type ,
|
|
|
@ApiParam(name="code",value="协同服务code(Mes中relationCode)")@RequestParam(required = false)String code,
|
|
|
@ApiParam(name="dealReason",value="预约失败原因code")@RequestParam(required = false)Integer dealReason,
|
|
|
@ApiParam(name="dealContent",value="预约失败内容")@RequestParam(required = false)String dealContent,
|
|
|
@ApiParam(name="orderHospital",value="机构code")@RequestParam(required = false)String orderHospital,
|
|
|
@ApiParam(name="orderHospitalName",value="机构")@RequestParam(required = false)String orderHospitalName,
|
|
|
@ApiParam(name="orderDept",value="科室编码")@RequestParam(required = false)String orderDept,
|
|
|
@ApiParam(name="orderDeptName",value="科室")@RequestParam(required = false)String orderDeptName,
|
|
|
@ApiParam(name="orderDoctor",value="预约医生编码")@RequestParam(required = false)String orderDoctor,
|
|
|
@ApiParam(name="orderDoctorName",value="预约医生")@RequestParam(required = false)String orderDoctorName,
|
|
|
@ApiParam(name="orderTime",value="预约时间,按需求格式拼接字符串")@RequestParam(required = false)String orderTime){
|
|
|
try {
|
|
|
return write(200,"保存成功","data",customerService.dealAppointCallService( type , code, dealReason, dealContent, orderHospital, orderHospitalName, orderDept, orderDeptName, orderDoctor, orderDoctorName, orderTime));
|
|
|
}catch (Exception e){
|
|
|
error(e);
|
|
|
return error(-1,"保存失败");
|
|
|
}
|
|
|
}
|
|
|
}
|