DataDictionaryDao.java 1.07 KB
package com.diligrp.website.dao;

import java.util.List;

import com.diligrp.website.domain.DataDictionary;
import com.diligrp.website.domain.DataDictionaryValue;
import com.diligrp.website.domain.SysConfig;
import com.diligrp.website.util.dao.BaseQuery;


public interface DataDictionaryDao {

    DataDictionary getDataDictionaryByCode(String code);

    List<DataDictionaryValue> getDataDictionaryValue(Long id);

    Integer getDataDicListCount(BaseQuery query);

    List<SysConfig> getDataDicList(BaseQuery query);

    boolean deleteValue(Long id);

    boolean delete(Long id);

    boolean save(DataDictionary dic);

    boolean update(DataDictionary dic);

    DataDictionary getDataDictionaryById(Long id);

    boolean saveValue(DataDictionaryValue dicv);

    DataDictionaryValue getDataDicValById(Long id);

    boolean editValue(DataDictionaryValue dicv);

    DataDictionaryValue getDataDicValByCode(String code, Integer ddId);

    DataDictionaryValue getDataDicValByName(String name, Integer ddId);

    DataDictionaryValue getDataDicValBySort(Integer sort, Integer ddId);

}