package com.ruoyi.web.modules.trading.mapper;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.trading.domain.BizMarketDailyQuote;

/**
 * 日度市场行情 Mapper
 */
public interface BizMarketDailyQuoteMapper
{
    BizMarketDailyQuote selectBizMarketDailyQuoteById(Long id);

    BizMarketDailyQuote selectBizMarketDailyQuoteByIdAny(Long id);

    List<BizMarketDailyQuote> selectBizMarketDailyQuoteList(BizMarketDailyQuote query);

    int countDuplicateDimension(@Param("quoteDate") Date quoteDate,
            @Param("countyCode") String countyCode,
            @Param("tradeMarketId") Long tradeMarketId,
            @Param("cattleGender") Integer cattleGender,
            @Param("weightGradeNorm") int weightGradeNorm,
            @Param("growthStageNorm") int growthStageNorm,
            @Param("ageMonthGradeNorm") int ageMonthGradeNorm,
            @Param("fatGradeNorm") int fatGradeNorm,
            @Param("excludeId") Long excludeId);

    int insertBizMarketDailyQuote(BizMarketDailyQuote row);

    int updateBizMarketDailyQuote(BizMarketDailyQuote row);

    int logicDeleteBizMarketDailyQuoteByIds(@Param("ids") Long[] ids, @Param("updateBy") String updateBy);
}
