package com.hdkj.lt.mq.mapper.plan;


import com.hdkj.lt.core.bizms.modle.po.plan.FhzgPlanTransferStrategyConfigDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FhzgPlanStrategyDetialMapper extends BaseMapper<FhzgPlanTransferStrategyConfigDetail> {

    List<FhzgPlanTransferStrategyConfigDetail>  getStrategyDetialByTime(@Param("transferStrategy")Integer transferStrategy);

    @Select("select d.* from  fhzg_plan_transfer_strategy_config c left join fhzg_plan_transfer_strategy_config_detail d on c.id=d.strategy_id where c.transfer_strategy=#{type} and c.status=0 and d.enable=0 order by priority")
    List<FhzgPlanTransferStrategyConfigDetail> getConfigDetailListByPlanType(@Param("type") Integer type);
}
