| | |
| | | package cn.lihu.jh.module.ecg.controller.admin.appointment; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.lihu.jh.framework.common.exception.ErrorCode; |
| | | import cn.lihu.jh.framework.common.util.date.DateUtils; |
| | | import cn.lihu.jh.module.ecg.controller.admin.queue.vo.QueueSaveReqVO; |
| | | import cn.lihu.jh.module.ecg.feign.RemoteDataService; |
| | | import cn.lihu.jh.module.ecg.feign.RestApiReqBodyVo; |
| | |
| | | import cn.lihu.jh.framework.common.pojo.PageResult; |
| | | import cn.lihu.jh.framework.common.pojo.CommonResult; |
| | | import cn.lihu.jh.framework.common.util.object.BeanUtils; |
| | | |
| | | import static cn.lihu.jh.framework.common.pojo.CommonResult.error; |
| | | import static cn.lihu.jh.framework.common.pojo.CommonResult.success; |
| | | |
| | | import cn.lihu.jh.framework.excel.core.util.ExcelUtils; |
| | |
| | | //TODO 先从预约表取数据,后续对接数据平台查预约数据 |
| | | AppointmentDO appointment = appointmentService.getAppointment(confirmReqVO.getId()); |
| | | |
| | | /* TODO for Testing |
| | | if ( !DateUtils.isToday(appointment.getBookDate()) ) |
| | | return error( new ErrorCode(101, "不是今天的预约用户")); |
| | | */ |
| | | |
| | | QueueSaveReqVO queueSaveReqVO = new QueueSaveReqVO(); |
| | | queueSaveReqVO.setPatId( appointment.getPatId()); |
| | | queueSaveReqVO.setPatName( appointment.getPatName() ); |
| | | queueSaveReqVO.setPatGender( appointment.getPatGender()); |
| | | queueSaveReqVO.setBookDate( appointment.getBookDate() ); |
| | | queueSaveReqVO.setBookTimeslot( appointment.getBookTimeslot() ); |
| | | queueSaveReqVO.setBookCheckType( appointment.getBookCheckType() ); |
| | | queueSaveReqVO.setPassed((byte)0); |