|
|
@ -143,9 +143,8 @@ public class AppController extends BaseController
|
|
|
|
tRecord.setAppointmentTime(DateUtils.dateTime(new Date()));
|
|
|
|
tRecord.setAppointmentTime(DateUtils.dateTime(new Date()));
|
|
|
|
List<TRecord> tRecords = tRecordService.selectTRecordList(tRecord);
|
|
|
|
List<TRecord> tRecords = tRecordService.selectTRecordList(tRecord);
|
|
|
|
if (!CollectionUtils.isEmpty(tRecords)) {
|
|
|
|
if (!CollectionUtils.isEmpty(tRecords)) {
|
|
|
|
String appointmentTime = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS ,tRecords.get(0).getCreateTime());
|
|
|
|
|
|
|
|
AjaxResult ajaxResult = AjaxResult.error();
|
|
|
|
AjaxResult ajaxResult = AjaxResult.error();
|
|
|
|
ajaxResult.put("msg", "同一个医生,一天只能登记一次;您今天已经在" + appointmentTime + "登记");
|
|
|
|
ajaxResult.put("msg", "您今天已登记过信息!");
|
|
|
|
ajaxResult.put("isBook", true);
|
|
|
|
ajaxResult.put("isBook", true);
|
|
|
|
return ajaxResult;
|
|
|
|
return ajaxResult;
|
|
|
|
}
|
|
|
|
}
|
|
|
|