Esempio n. 1
0
 public Page<SysDicIndex> queryDicIndex(Map<String, Object> params) {
   Page<String> idPage = this.getPage(params);
   List<String> ids = dicIndexMapper.selectIdByMap(idPage, params);
   Page<SysDicIndex> page = new Page<SysDicIndex>(idPage.getCurrent(), idPage.getSize());
   page.setTotal(idPage.getTotal());
   if (ids != null) {
     ISysDicProvider provider = InstanceUtil.getBean(getClass());
     List<SysDicIndex> records = InstanceUtil.newArrayList();
     for (String id : ids) {
       records.add(provider.queryDicIndexById(id));
     }
     page.setRecords(records);
   }
   return page;
 }
Esempio n. 2
0
 @Cacheable(value = "sysDicMap")
 public Map<String, String> queryDicByDicIndexKey(String key) {
   return InstanceUtil.getBean(ISysDicProvider.class).getAllDic().get(key);
 }