|
@ -574,10 +574,11 @@ public class BookingController extends WeixinBaseController {
|
|
|
@RequestParam(value = "patient", required = false) String patient) {
|
|
|
try {
|
|
|
SimpleDateFormat sm = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
SimpleDateFormat sm2 = new SimpleDateFormat("yyyy/M/d");
|
|
|
Date nowDate = new Date();
|
|
|
Date oneMonthAfter = getMonthBefore(nowDate, -1);
|
|
|
Date threeMonthBefore = getMonthBefore(nowDate, 3); //三个月历史记录
|
|
|
List<PatientReservation> list = guahaoXM.GetRegList(patient, sm.format(threeMonthBefore), sm.format(oneMonthAfter));
|
|
|
List<PatientReservation> list = guahaoXM.GetRegList(patient, sm.format(threeMonthBefore), sm.format(oneMonthAfter), sm2.format(threeMonthBefore), sm2.format(oneMonthAfter));
|
|
|
return write(200, "获取患者预约信息列表成功!", "data", list);
|
|
|
} catch (Exception e) {
|
|
|
return error(-1, e.getMessage());
|