缓存

来源:互联网 发布:mac百度云下载没反应 编辑:程序博客网 时间:2024/05/16 08:08
  List<DbDictionaryLangInfoModel> modelLangList = dictionaryLangInfoService.selectByModel(modelLang);
                        if(modelLangList.size() > 0){
                        modelLang = modelLangList.get(0);
                        DbDictionaryInfoModel model = new DbDictionaryInfoModel();
                        model = dbDictionaryInfoDao.selectById(id);
                        if(null != model){
                        model.setValue(modelLang.getValue());
                        model.setDescription(modelLang.getDescription());
                        return model;
                        }else{
                        return null;
                        }
                        }else{
                        DbDictionaryInfoModel model = new DbDictionaryInfoModel();
                        model = dbDictionaryInfoDao.selectById(Long.valueOf(keys[1]));
                        if(null != model){
                            model.setValue("");
                            model.setDescription("");
                            return model;
                        }else{
                        return null;
                        }
                        }
0 0
原创粉丝点击