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);
|
}
|