package org.jeecg.modules.mdc.mapper;
|
|
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Select;
|
import org.jeecg.modules.mdc.dto.EquipmentMachingDto;
|
import org.jeecg.modules.mdc.dto.MdcEquipmentDto;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @author: LiuS
|
* @create: 2023-04-07 14:12
|
*/
|
@Mapper
|
@Repository
|
public interface EquipmentWorklineMapper {
|
|
@InterceptorIgnore(tenantLine = "1")
|
List<MdcEquipmentDto> getMacingDataList(@Param("tableName") String tableName);
|
|
@InterceptorIgnore(tenantLine = "1")
|
@Select("select Sequencenumber,CollectTime from ${tableName} " +
|
" where CollectTime > #{startTime} and CollectTime <= #{endTime} and Sequencenumber is not null and Sequencenumber != ''" +
|
" order by CollectTime desc ")
|
List<Map<String, Object>> getEquipmentSequenceNumber(@Param("tableName") String tableName, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
|
|
@InterceptorIgnore(tenantLine = "1")
|
@Select("select CollectTime ${columns} from ${tableName} where CollectTime > #{startTime} and CollectTime <= #{endTime} order by CollectTime asc")
|
List<Map<String, Object>> getWorkLineList(Map<String, Object> param);
|
|
@InterceptorIgnore(tenantLine = "1")
|
List<String> findRunningData(@Param("tableName") String saveTableName, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
|
@InterceptorIgnore(tenantLine = "1")
|
List<EquipmentMachingDto> getEquipProgramNum(@Param("tableName") String saveTableName, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
|
@InterceptorIgnore(tenantLine = "1")
|
MdcEquipmentDto findProductCountStartTime(@Param("tableName") String saveTableName, @Param("productCount") String productCount, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
|
@InterceptorIgnore(tenantLine = "1")
|
MdcEquipmentDto findProductCountEndTime(@Param("tableName") String saveTableName, @Param("productCount") String productCount, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
|
@InterceptorIgnore(tenantLine = "1")
|
Map<String, Object> getDataList(@Param("tableName") String saveTableName);
|
|
@InterceptorIgnore(tenantLine = "1")
|
Map<String, Object> getDataProductName(@Param("tableName") String saveTableName);
|
|
}
|