package com.steerinfo.meterwork.meterworkcomparespotscale.mapper;

import com.steerinfo.framework.mapper.IBaseMapper;
import com.steerinfo.meterwork.meterworkcomparespotscale.model.MeterWorkCompareSpotScale;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MeterWorkCompareSpotScaleMapper extends IBaseMapper<MeterWorkCompareSpotScale, String> {
    //生成流水号
    String GetNewID();

    /**
     * 判断创建时间在几个小时内是否存在未使用的预约
     * @param time 表示几个小时
     * @return 存在：返回最近的主键
     */
    String isExistWithinHour(Integer time,String carNo);

    List<MeterWorkCompareSpotScale> getAllScaleNo();
}