package com.fkzy.warn.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fkzy.warn.model.Dict;
import com.fkzy.warn.model.vo.DictVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: yuyantian
 * @Date: 2020/12/7
 * @description
 */
@Mapper
public interface DictMapper extends BaseMapper<Dict> {

    /**
     * 分页
     */
    Page<DictVO> queryPage(@Param("pagination") Page<DictVO> pagination,
                           @Param("map") Map map);

    /**
     * 分页查询出的数据总条数
     *
     * @param jsonObject
     * @return
     */
    long queryListTotal(JSONObject jsonObject);

    /**
     * 批量逻辑删除字典
     */
    boolean updateBatch(@Param("idList") List<String> idList);
}
