|
@ -567,4 +567,24 @@ public class BookingController extends WeixinBaseController {
|
|
|
return error(-1,e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取医生为患者预约的总数
|
|
|
*/
|
|
|
@RequestMapping(value = "CountReservationByDoctorForPatient",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("获取患者预约信息单条-患者端")
|
|
|
public String CountReservationByDoctorForPatient(@ApiParam(name="doctor",value="医生编号")
|
|
|
@RequestParam(value="doctor",required = true) String doctor,
|
|
|
@ApiParam(name="patient",value="患者编号")
|
|
|
@RequestParam(value="patient",required = true) String patient) {
|
|
|
try {
|
|
|
Long obj = patientReservationService.countReservationByDoctorForPatient(doctor, patient);
|
|
|
return write(200, "获取患者预约信息成功!", "data", obj);
|
|
|
} catch (Exception e) {
|
|
|
return error(-1,e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|