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.AppRuleItem;
import com.xunmei.core.resumption.dto.appRuleItem.AppRuleItemPageDto;
import com.xunmei.core.resumption.vo.appRuleItem.AppRuleItemPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author jingyuanchao
 * @since 2022-04-27
 */
@Mapper
public interface AppRuleItemMapper extends BaseMapper<AppRuleItem> {

    Page<AppRuleItemPageVo> pageQuery(Page<AppRuleItem> page, @Param("itemPageDto") AppRuleItemPageDto itemPageDto);

//    List<SecBookDtInstDto> selectDataTypeList();


//    List<AreaListVo> selectCheckAreaList();


//    Integer checkItemIsUse(@Param("id") Long id);

//    Integer checkItemNumRepeat(@Param("id") Long id, @Param("ruleId") Long ruleId, @Param("itemNum") Integer itemNum);

    Integer checkItemNameRepeat(@Param("id") Long id, @Param("ruleId") Long ruleId, @Param("itemName") String itemName);
}
