| | |
| | | |
| | | import cn.lihu.jh.module.ecg.Utils; |
| | | import cn.lihu.jh.module.ecg.config.DynamicSchedulingConfig; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.checktype.CheckTypeDO; |
| | | import cn.lihu.jh.module.ecg.dal.mysql.queuesequence.QueueSequenceMapper; |
| | | import cn.lihu.jh.module.ecg.service.queue.QueueService; |
| | | import cn.lihu.jh.module.ecg.service.queuesequence.QueueSequenceService; |
| | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalTime; |
| | | import java.util.List; |
| | | import java.util.concurrent.Executors; |
| | | import java.util.concurrent.ScheduledExecutorService; |
| | | |
| | | import static cn.lihu.jh.module.ecg.Constants.ECG_OPENING_TIME_KEY; |
| | | import static cn.lihu.jh.module.ecg.Constants.ECG_ROOM_RESET_TIME_KEY; |
| | | import static cn.lihu.jh.module.ecg.Constants.*; |
| | | |
| | | @Service |
| | | @Validated |
| | |
| | | |
| | | @Resource |
| | | private QueueSequenceService queueSequenceService; |
| | | |
| | | List<LocalTime> timeslotList = null; |
| | | |
| | | ScheduledTask startBizTask = null; |
| | | ScheduledTask closeBizTask = null; |
| | |
| | | taskRegistrar.afterPropertiesSet(); |
| | | } |
| | | |
| | | @Override |
| | | public void readTimeSlotConfig() { |
| | | String strBookTimeslotLength = configApi.getConfigValueByKey(BOOK_TIMESLOT_LENGTH); |
| | | //String strBookTimeslotList = configApi.getConfigValueByKey(BOOK_TIMESLOT_LIST); |
| | | //timeslotList = Utils.parseTimeSlotList(strBookTimeslotList, Integer.valueOf(strBookTimeslotLength)); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocalTime> listTimeslot() { |
| | | return timeslotList; |
| | | } |
| | | |
| | | } |