package com.dk.mdm.mapper.mst;

import com.dk.mdm.model.pojo.mst.DictionaryData;
import com.dk.common.mapper.BaseMapper;
import com.dk.mdm.model.query.mst.DictionaryDataQuery;
import com.dk.mdm.model.query.mst.GoodsBrandQuery;
import com.dk.mdm.model.response.mst.DictionaryDataResponse;
import com.dk.mdm.model.response.mst.GoodsBrandResponse;
import org.springframework.stereotype.Repository;

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

/**
*  数据字典 Mapper
*/
@Repository
public interface DictionaryDataMapper extends BaseMapper<DictionaryData>{
    /**
     * @desc   : 根据条件进行查询
     * @author : 于继渤
     * @date : 2024/2/26 10:36
     */
    List<DictionaryDataResponse> selectByCond(DictionaryDataQuery dictionaryDataQuery);

    /**
     * @desc   : 根据条件进行查询（数量）
     * @author : 于继渤
     * @date : 2024/2/26 10:36
     */
    Long countByCond(DictionaryDataQuery dictionaryDataQuery);

    Long countByCondMoneyAccount(String id);

    /**
     * @desc : 批量编辑序号
     * @author : 于继渤
     * @date :  2023/1/4 9:39
     */
    Integer updateBatchDictionaryDataDisplayNo(List<Map<String,Object>> dataIds);
    Integer updateFlgDefault(DictionaryDataQuery dictionaryDataQuery);

}

