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

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

/**
 * <p>
 * 转供方案评比指标数据表 Mapper 接口
 * </p>
 *
 * @author luorui
 * @since 2025-05-23
 */
public interface PlanTransferSchemeEvaluationIndexMapper extends BaseMapper<FhzgPlanTransferSchemeEvaluationIndex> {

    @Delete("delete FROM fhzg_plan_transfer_scheme_evaluation_index WHERE scheme_id in (select id from fhzg_plan_transfer_scheme where plan_id =#{planId}) ;" +
            "delete FROM fhzg_plan_transfer_scheme_strategy_score WHERE scheme_id in (select id from fhzg_plan_transfer_scheme where plan_id =#{planId} );")
    Integer deleteScoreData(@Param("planId") Long planId);



}
