yangys
2025-11-18 8e944cfabb253fc2556588e308e282586043f7b0
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
package com.qianwen.smartman.modules.mdc.mapper;
 
import java.time.LocalDateTime;
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.qianwen.smartman.modules.mdc.entity.SuperAggregateOutput;
 
@DS("iotdb")
@InterceptorIgnore(tenantLine = "true")
public interface SuperAggregateOutputMapper {
    /**
     * 自然日产量
     * @param workstationIds
     * @param startDate
     * @param endDate
     * @return
     */
    List<SuperAggregateOutput> getOutputDataByNaturalDate(@Param("workstationIds") List<Long> workstationIds, @Param("startDate") LocalDateTime startDate, @Param("endDate") LocalDateTime endDate);
 
    /**
     * 根据起止日期,获取产量数据
     * @param workstationIds
     * @param startFatoryDate
     * @param endFatoryDate
     * @return
     */
    List<SuperAggregateOutput> getOutputDataByFactoryDate(@Param("workstationIds") List<Long> workstationIds, @Param("startFatoryDate") int startFatoryDate, @Param("endFatoryDate") int endFatoryDate);
 
    List<SuperAggregateOutput> getOutputDataByWorkstationAndFactoryDate(@Param("workstationId") Long workstationId, @Param("startDate") String startDate, @Param("endDate") String endDate);
 
    List<SuperAggregateOutput> getShiftOutput(@Param("workstationIds") List<Long> workstationIds, @Param("shiftIndex") Integer shiftIndex, @Param("factoryDate") Integer factoryDate);
 
    List<SuperAggregateOutput> getOutputByDateCycle(@Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("ids") List<Long> ids);
 
    List<SuperAggregateOutput> getOutputByDateCycleAndWorkstationId(@Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("workstationId") Long workstationId, @Param("type") Integer type);
 
    List<SuperAggregateOutput> queryPerfByDay(@Param("workstationId") Long workstationId, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("employeeId") Long employeeId);
 
    List<SuperAggregateOutput> queryPerfByWeek(@Param("workstationId") Long workstationId, @Param("weeks") List<Integer> weeks, @Param("employeeId") Long employeeId);
 
    List<SuperAggregateOutput> queryPerfByMonth(@Param("workstationId") Long workstationId, @Param("months") List<Integer> months, @Param("employeeId") Long employeeId);
 
    List<SuperAggregateOutput> queryPerfByEtDay(@Param("employeeId") Long employeeId, @Param("time") String time);
 
    List<SuperAggregateOutput> queryPerfByEtWeek(@Param("employeeId") Long employeeId, @Param("week") Integer week);
 
    List<SuperAggregateOutput> queryPerfByEtMonth(@Param("employeeId") Long employeeId, @Param("month") Integer month);
 
    List<SuperAggregateOutput> queryPerfByWtDay(@Param("workstationId") Long workstationId, @Param("time") String time);
 
    List<SuperAggregateOutput> queryPerfByWtWeek(@Param("workstationId") Long workstationId, @Param("week") Integer week);
 
    List<SuperAggregateOutput> queryPerfByWtMonth(@Param("workstationId") Long workstationId, @Param("month") Integer month);
}