| | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | |
| | | List<StatusAnalysisWorkstationVO> statusByWorkstationByNull(@Param("workstationId") String workstationId, @Param("startTime") String startTime); |
| | | |
| | | List<SuperAggregateState> dateState(@Param("factoryDate") String factoryDate, @Param("ids") List<Long> ids); |
| | | /** |
| | | * 查询指定工位符合factoryDate的数据 用时分析 |
| | | * @param factoryDate |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | List<SuperAggregateState> dateState(@Param("factoryDate") int factoryDate, @Param("ids") List<Long> ids); |
| | | |
| | | /** |
| | | * 查询指定工位符合星期的数据 用时分析 |
| | | * @param ids |
| | | * @param year |
| | | * @param week |
| | | * @return |
| | | */ |
| | | List<SuperAggregateState> weekState(@Param("ids") List<Long> ids, @Param("year") Integer year, @Param("week") Integer week); |
| | | |
| | | /** |
| | | * 查询指定工位符合年份和月份的数据 用时分析 |
| | | * @param ids |
| | | * @param year |
| | | * @param month |
| | | * @return |
| | | */ |
| | | List<SuperAggregateState> yearState(@Param("ids") List<Long> ids, @Param("year") Integer year, @Param("month") Integer month); |
| | | |
| | | List<SuperAggregateState> shiftState(@Param("ids") List<Long> workStationIds, @Param("factoryDate") String factoryDate, @Param("shiftIndex") Integer shiftIndex, @Param("calendarCode") String calendarCode); |
| | | /** |
| | | * 查询指定工位符合班次和factoryDate的数据,用时分析中使用 |
| | | * @param workStationIds |
| | | * @param factoryDate |
| | | * @param shiftIndex |
| | | * @param calendarCode |
| | | * @return |
| | | */ |
| | | List<SuperAggregateState> shiftState(@Param("ids") List<Long> workStationIds, @Param("factoryDate") Integer factoryDate, @Param("shiftIndex") Integer shiftIndex, @Param("calendarCode") String calendarCode); |
| | | |
| | | List<StatusAnalysisWorkstationVO> statusByWorkstationList(@Param("workstationIdList") List<Long> workstationIdList, @Param("startTime") String startTime, @Param("endTime") String endTime); |
| | | |
| | |
| | | |
| | | List<SuperAggregateState> getStatusByFactory(@Param("factoryDate") Integer factoryDate, @Param("shiftIndex") Integer shiftIndex, @Param("workstationIds") List<Long> workstationIds); |
| | | |
| | | List<SuperAggregateState> getStatusData(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") String startDate, @Param("endDate") String endDate); |
| | | /** |
| | | * 查询状态数据 |
| | | * @param workstationIds 指定的工位id集合 |
| | | * @param startDate 开始时间 |
| | | * @param endDate 截至时间 |
| | | * @return 数据列表 |
| | | */ |
| | | List<SuperAggregateState> getStatusData(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") java.util.Date startDate, @Param("endDate") java.util.Date endDate); |
| | | |
| | | /** |
| | | * 根据工位id列表和时间节点获取状态数据yys,首页稼动率时使用的 |
| | |
| | | * @param endDate |
| | | * @return |
| | | */ |
| | | List<SuperAggregateState> getStatusDataByTimeSection(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") LocalDateTime startDate, @Param("endDate") LocalDateTime endDate); |
| | | List<SuperAggregateState> getStatusDataByTimeSection(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") java.util.Date startDate, @Param("endDate") java.util.Date endDate); |
| | | |
| | | List<SuperAggregateState> getStatusDataByFactoryDate(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") String startDate, @Param("endDate") String endDate); |
| | | /** |
| | | * 根据工厂日期获取聚合状态数据 |
| | | * @param workstationIds |
| | | * @param startDate |
| | | * @param endDate |
| | | * @return |
| | | */ |
| | | List<SuperAggregateState> getStatusDataByFactoryDate(@Param("workstationIds") List<Long> workstationIds, @Param("startFactoryDate") int startFactoryDate, @Param("endFactoryDate") int endFactoryDate); |
| | | |
| | | List<SuperAggregateState> getStatusDataByFactoryDateAndWorkstationId(@Param("workstationId") Long workstationId, @Param("startDate") String startDate, @Param("endDate") String endDate); |
| | | |
| | |
| | | * @return |
| | | */ |
| | | //List<SuperAggregateState> getEquipmentStatusDuration(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") String startDate, @Param("endDate") String endDate, @Param("status") Integer status); |
| | | List<SuperAggregateState> getEquipmentStatusDuration(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") LocalDateTime startDate, @Param("endDate") LocalDateTime endDate, @Param("status") Integer status); |
| | | List<SuperAggregateState> getEquipmentStatusDuration(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") java.util.Date startDate, @Param("endDate") java.util.Date endDate, @Param("status") Integer status); |
| | | |
| | | List<SuperAggregateState> getEquipmentStatusRecord(@Param("workstationIds") List<Long> workstationIds, @Param("shiftIndex") Integer shiftIndex, @Param("factoryDate") Integer factoryDate); |
| | | |