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;
}
}
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;
}
}