package com.qianwen.smartman.modules.mdc.service;
|
|
import java.time.LocalDate;
|
import java.time.LocalDateTime;
|
import java.util.List;
|
import com.qianwen.smartman.modules.mdc.entity.SuperAggregateState;
|
import com.qianwen.smartman.modules.mdc.enums.StatisticalMethodEnum;
|
import com.qianwen.smartman.modules.mdc.vo.StatusTimeTopVO;
|
|
public interface ISuperAggregateStateService {
|
/**
|
* 根据日期获取工位状态数据
|
* @param workstationIds
|
* @param statisticalMethod
|
* @param startDate
|
* @param endDate
|
* @return
|
*/
|
List<SuperAggregateState> getStatusData(List<Long> workstationIds, StatisticalMethodEnum statisticalMethod, LocalDate startDate, LocalDate endDate);
|
|
/**
|
* 稼动率数据查询
|
* @param workstationIds
|
* @param statisticalMethod
|
* @param startDate
|
* @param endDate
|
* @return
|
*/
|
List<SuperAggregateState> getStatusDataWithFeedback(List<Long> workstationIds, StatisticalMethodEnum statisticalMethod, LocalDate startDate, LocalDate endDate);
|
|
List<SuperAggregateState> getStatusByCondition(List<Long> workstationIds, LocalDateTime startTime, LocalDateTime endTime);
|
|
/**
|
* 统计首页稼动率排名时使用的查询
|
* @param workstationIds
|
* @param startTime
|
* @param endTime
|
* @return
|
*/
|
List<SuperAggregateState> getStatusByTimeSection(List<Long> workstationIds, LocalDateTime startTime, LocalDateTime endTime);
|
|
/**
|
* 根据状态,起止时间获取聚合状态数据列表
|
* @param workstationIds
|
* @param startTime 开始时间
|
* @param endTime 结束时间
|
* @param status 状态值,查询wcs=status的数据
|
* @param top top多少(统计后取出最高的top个数据)
|
* @return 数据列表
|
*/
|
List<StatusTimeTopVO> getStatusTimeByWcs(List<Long> workstationIds, LocalDateTime startTime, LocalDateTime endTime, Integer status, Integer top);
|
|
List<SuperAggregateState> getOeeAnalysis(List<Long> workStationIdList, LocalDateTime startTime, LocalDateTime endTime);
|
|
List<SuperAggregateState> getShiftStatusData(List<Long> workstationIdList, String factoryDate, Integer shiftIndex);
|
|
List<SuperAggregateState> getStatusByFactory(List<Long> workstationIdList, String factoryDate, Integer shiftIndex);
|
|
List<SuperAggregateState> listsState(List<Long> ids, LocalDate queryTime, List<Integer> shiftIndex);
|
|
List<SuperAggregateState> getDataByWeek(List<Long> ids, Integer year, List<Integer> weekList);
|
|
List<SuperAggregateState> getDataByMonth(List<Long> ids, Integer year, List<Integer> monthList);
|
|
List<SuperAggregateState> crossDay(LocalDateTime start, LocalDateTime end);
|
|
//void saveState(List<SuperAggregateState> collect);
|
|
List<SuperAggregateState> getStatusDataByTime(List<Long> workstationIdList, LocalDateTime startTime, LocalDateTime endTime);
|
|
List<SuperAggregateState> queryPerfByDay(Long workstationId, String startTime, String endTime, Long employeeId);
|
|
List<SuperAggregateState> queryPerfByWeek(Long workstationId, List<Integer> weeks, Long employeeId);
|
|
List<SuperAggregateState> queryPerfByMonth(Long workstationId, List<Integer> months, Long employeeId);
|
|
List<SuperAggregateState> queryPerfByEtDay(Long employeeId, String queryTime);
|
|
List<SuperAggregateState> queryPerfByEtWeek(Long employeeId, Integer week);
|
|
List<SuperAggregateState> queryPerfByEtMonth(Long employeeId, Integer month);
|
|
List<SuperAggregateState> queryPerfByWtDay(Long workstationId, String time);
|
|
List<SuperAggregateState> queryPerfByWtWeek(Long workstationId, Integer week);
|
|
List<SuperAggregateState> queryPerfByWtMonth(Long workstationId, Integer month);
|
|
List<SuperAggregateState> getCurrMonthState(List<Long> ids, Integer month);
|
|
List<SuperAggregateState> getCurrMonthAlarmState(List<Long> workIds, Integer month, Integer code);
|
|
List<SuperAggregateState> getCurrWeekAlarmState(List<Long> workIds, Integer week, Integer code);
|
}
|