数据字典查询接口 多加一个根据key查询
This commit is contained in:
@@ -23,6 +23,8 @@ public interface DicEODao extends BaseMapper<DictionaryEO> {
|
||||
//gaoyan
|
||||
public List<DictionaryEO> getDictionaryEO();
|
||||
|
||||
public List<DictionaryEO> getDictionaryEOByType(@Param("types") List<String> types);
|
||||
|
||||
public Integer countByCodeOrName(DictionaryEOPage page);
|
||||
|
||||
public List<DictionaryEO> queryAllDicByPage(DictionaryEOPage page);
|
||||
|
||||
@@ -22,6 +22,8 @@ public interface IDicEOService extends IService<DictionaryEO> {
|
||||
//gaoyan
|
||||
public List<DictionaryEO> getDictionaryEO();
|
||||
|
||||
public List<DictionaryEO> getDictionaryEOByType(List<String> types);
|
||||
|
||||
public Integer countByCodeOrName(DictionaryEOPage page);
|
||||
|
||||
public List<DictionaryEO> queryAllDicByPage(DictionaryEOPage page);
|
||||
|
||||
@@ -84,6 +84,8 @@ public interface IDicTypeEOService extends IService<DicTypeEO> {
|
||||
|
||||
public Map<String,Object> getDicTypeListCode();
|
||||
|
||||
public Map<String,Object> getDicTypeListCodeByType(List<String> types);
|
||||
|
||||
public List<Map<String,String>> getDicTypeByParentCodes(String dicTypeCode);
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.adc.da.sys.service.IDicEOService;
|
||||
import com.adc.da.sys.service.IDicTypeEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.slf4j.Logger;
|
||||
@@ -82,6 +83,11 @@ public class DicEOServiceImpl extends ServiceImpl<DicEODao,DictionaryEO> impleme
|
||||
return dicEODao.getDictionaryEO();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DictionaryEO> getDictionaryEOByType(List<String> types) {
|
||||
return dicEODao.getDictionaryEOByType(types);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer countByCodeOrName(DictionaryEOPage page) {
|
||||
return dicEODao.countByCodeOrName(page);
|
||||
|
||||
@@ -190,6 +190,34 @@ public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> im
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author gaoyan
|
||||
* @Description
|
||||
* Date 2018/9/11 19:12
|
||||
* @Param [dictionaryCode]
|
||||
* @return java.util.List<com.adc.da.sys.entity.DicTypeEO>
|
||||
**/
|
||||
@Override
|
||||
public Map<String,Object> getDicTypeListCodeByType(List<String> types){
|
||||
Map<String,Object> resultMap = new HashMap<>();
|
||||
List<DictionaryEO> diclist = dicEODao.getDictionaryEOByType(types);
|
||||
for (DictionaryEO dictionaryEO : diclist){
|
||||
if(dictionaryEO.getDictionType().equals("TREE")){
|
||||
List<SarMenuStandard> treeList = iSarMenuStandardService.getAll(dictionaryEO.getId());
|
||||
resultMap.put(dictionaryEO.getDictionaryCode(),treeList);
|
||||
}else {
|
||||
List<Map<String,String >> relist = getDicTypeByDicCode(dictionaryEO.getDictionaryCode());
|
||||
resultMap.put(dictionaryEO.getDictionaryCode(),relist);
|
||||
}
|
||||
}
|
||||
// 查询细类
|
||||
List<Map<String,String >> relist = getDicTypeByDicCode("BUSSFINECLASSSHOW");
|
||||
resultMap.put("BUSSFINECLASSSHOW",relist);
|
||||
List<Map<String,String >> arr = new ArrayList<>();
|
||||
resultMap.put("STANDCLASSIFYSHOW",arr);
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
//liwenxuan:国家地区新增
|
||||
public List<DicTypeEO> queryByPageNoParentId(DicTypeEOPage page){
|
||||
Integer rowCount = dicTypeEODao.queryByCountCounter(page);
|
||||
|
||||
Reference in New Issue
Block a user