package com.xunmei.core.resumption.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xunmei.core.resumption.domain.AppRule;
import com.xunmei.core.resumption.dto.appRuleItem.AppRulePointSelectPageDto;
import com.xunmei.core.resumption.vo.appRule.AppRuleGroupVo;
import com.xunmei.core.resumption.vo.appRule.AppRuleInfoVo;
import com.xunmei.core.resumption.vo.appRule.AppRulePageVo;
import com.xunmei.core.resumption.vo.appRuleItem.AppRulePointSelectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author system
 * @since 2022-04-26
 */
@Mapper
@Repository
public interface AppRuleMapper extends BaseMapper<AppRule> {

    Page<AppRulePageVo> selectPageByCondition(@Param("page") Page<AppRulePageVo> page, @Param("appRule") AppRule appRule);

    List<AppRuleGroupVo> getRuleGroupList();

//    AppRuleInfoVo get(Long id);

    Integer checkRuleNameRepeat(@Param("id") Long id, @Param("name") String name);

}
