1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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);
}