package com.fizz.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fizz.business.domain.PdoStripvalue;
import com.fizz.business.domain.Segment;
import com.fizz.business.dto.SegmentDTO;
import com.fizz.business.vo.SegmentParamVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 各机张力，电流等架跟踪表 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2023-05-17
 */
@Mapper
public interface SegmentMapper extends BaseMapper<SegmentDTO> {

    PdoStripvalue getStripValue(@Param("entryMatId") String entryMatId, @Param("startPos") double startPos, @Param("endPos") double endPos);

    Segment getLatestRecord();

    List<SegmentParamVO> queryParamByEnCoilId(@Param("enCoilID") String enCoilID,
                                              @Param("paramField") String paramField);

}
