package com.njcn.mapper.advanced;

import com.njcn.utils.GetBalance.Sarifi;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

//统计的数据事件持续时间需小于60s
public interface GetBalanceMapper {
    Float getSarfiValue(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
                        @Param("fvalue") float value);

    Integer getSarfiCount(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
                          @Param("fvalue") float sarfi);

    List<Sarifi> getSarifiList(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
                               @Param("fvalue") float value);
}
