package com.yeejoin.amos.fas.business.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <h1><h1>
 *
 * @author tiantao
 * @date 2021/1/15 10:53
 */
@Repository
public interface PlanRuleMapper {

    /**
     * 更新删除状态
     * @param idList id
     * @param isDelete 是否删除
     * @return
     */
    int updateIsDeleteByPlanIdList(@Param("planIdList") List<Long> idList, @Param("isDelete") Boolean isDelete);

    int logicDeleteByRuleIdList(@Param("ruleIdList") List<String> idList);

}
