| | |
| | | import org.springframework.cache.annotation.Caching; |
| | | |
| | | public interface IWorkstationFeedbackService extends IService<WorkstationFeedback> { |
| | | /** |
| | | * 一天缓存 blade:feedback#86400 |
| | | */ |
| | | public static final String WORK_FEEDBACK_EXP = "blade:feedback#86400"; |
| | | |
| | | /** |
| | | * 3天缓存 blade:feedback#259200 |
| | | */ |
| | | public static final String WORK_FEEDBACK_EXP3 = "blade:feedback#259200"; |
| | | |
| | | IPage<WorkstationFeedbackInfoVO> workstationPage(Query query, boolean excludeImmediate); |
| | |
| | | @RedisLock(value = ExtCacheConstant.WORK_FEEDBACK, param = "#dto.workstationId") |
| | | boolean endAndStartAgainFeedback(WorkstationEndAndStartImmediateFeedBackDTO dto); |
| | | |
| | | /** |
| | | * 从反馈的redis缓存中获取状态记录的数据 |
| | | * @param statusTime |
| | | * @param workstationIds |
| | | * @param statusRecordList |
| | | * @return |
| | | */ |
| | | List<StatusRecordVO> groupStatusRecordWithFeedbackCache(final LocalDate statusTime, final Long workstationIds, final List<StatusRecordVO> statusRecordList); |
| | | |
| | | @Cacheable(cacheNames = {WORK_FEEDBACK_EXP}, key = "'id:'.concat(#id)") |