| | |
| | | * @return |
| | | */ |
| | | long fixPointCountByDate(int factoryDate); |
| | | |
| | | /** |
| | | * 根据工位id,获取 小于时间戳 的非反馈点数据 |
| | | * @param workstationId 工位id |
| | | * @param time 时间戳 |
| | | * @return |
| | | */ |
| | | DeviceState lastNoFeedbackStateLessThanTime(@Param("workstationId")Long workstationId, @Param("time")Long time); |
| | | |
| | | /** |
| | | * 根据工位id,获取 小于等于时间戳 的非反馈点数据 |
| | | * @param workstationId |
| | | * @param time |
| | | * @return |
| | | */ |
| | | DeviceState lastNoFeedbackStateLeTime(@Param("workstationId")Long workstationId, @Param("time")Long time); |
| | | /** |
| | | * 根据工位id和时间戳精确获取一条状态数据 |
| | | * @param workstationId |
| | | * @param time |
| | | * @return |
| | | */ |
| | | DeviceState getByWorkstationIdAndTime(@Param("workstationId")Long workstationId, @Param("time")Long time); |
| | | |
| | | /** |
| | | * 根据工位id和时间戳精确获取一条状态数据 |
| | | * @param workstationId |
| | | * @param time |
| | | * @return |
| | | */ |
| | | DeviceState getLastByWorkstationIdAndLeTimeAndShiftIndexNotNull(@Param("workstationId")Long workstationId, @Param("time")Long time); |
| | | |
| | | /** |
| | | * 根据时间和工位id,获取一个固定点 |
| | | * @param workstationId |
| | | * @param time |
| | | * @return |
| | | */ |
| | | DeviceState getFixPointByWorkstationIdAndTime(@Param("workstationId")Long workstationId, @Param("time")Long time); |
| | | |
| | | /** |
| | | * 获取指定工位时间区间内的非反馈点状态数据列表 |
| | | * @param workstationId |
| | | * @param startTime |
| | | * @param endTime |
| | | * @return |
| | | */ |
| | | List<DeviceState> workstationNoFeedbackPointStatesInTimeRange(@Param("workstationId")Long workstationId, @Param("startTime")Long startTime, @Param("endTime")Long endTime); |
| | | |
| | | /** |
| | | * 获取指定工位时间区间内的 固定点 状态数据列表 |
| | | * @param workstationId |
| | | * @param startTime |
| | | * @param endTime |
| | | * @return |
| | | */ |
| | | List<DeviceState> workstationFixPointStatesInTimeRange(@Param("workstationId")Long workstationId, @Param("startTime")Long startTime, @Param("endTime")Long endTime); |
| | | } |