|
@ -49,11 +49,13 @@ public class PatientBookingController extends WeixinBaseController{
|
|
|
@ResponseBody
|
|
|
@ApiOperation("取消挂号单")
|
|
|
public String CancelOrder(@ApiParam(name = "orderId", value = "订单id", defaultValue = "48")
|
|
|
@RequestParam(value = "orderId", required = true) String orderId) {
|
|
|
@RequestParam(value = "orderId", required = true) String orderId,
|
|
|
@ApiParam(name = "ssc", value = "社保卡号", defaultValue = "48")
|
|
|
@RequestParam(value = "ssc", required = true) String ssc) {
|
|
|
try {
|
|
|
//获取订单信息
|
|
|
PatientReservation obj = patientReservationService.findByCode(orderId);
|
|
|
boolean re = jwSmjkService.CancelOrder(obj.getCode(),obj.getSsc());
|
|
|
boolean re = jwSmjkService.CancelOrder(orderId,ssc);
|
|
|
|
|
|
// if (obj != null) {
|
|
|
// String type = obj.getType();
|
|
|
// String code = obj.getCode();
|
|
@ -66,6 +68,10 @@ public class PatientBookingController extends WeixinBaseController{
|
|
|
// }
|
|
|
|
|
|
if (re) {
|
|
|
PatientReservation obj = patientReservationService.findByCode(orderId);
|
|
|
if(obj==null){//不是在i健康预约
|
|
|
return write(200, "取消挂号单成功!");
|
|
|
}
|
|
|
//更新状态
|
|
|
patientReservationService.patientCancelOrder(orderId,getRepUID());//"9aa5c557e06a4324911487a035195545"
|
|
|
// patientReservationService.patientCancelOrder(orderId,getUID());//"9aa5c557e06a4324911487a035195545"
|