...
|
...
|
@@ -29,7 +29,21 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti |
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return result, nil
|
|
|
var response = make([]interface{}, 0)
|
|
|
if result == nil || len(result.Dictionarys) == 0 {
|
|
|
return response, nil
|
|
|
}
|
|
|
for i := range getDictionaryQuery.DictCode {
|
|
|
code := getDictionaryQuery.DictCode[i]
|
|
|
for j := range result.Dictionarys {
|
|
|
item := result.Dictionarys[j]
|
|
|
if item.DictCode == code {
|
|
|
response = append(response, item)
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return response, nil
|
|
|
}
|
|
|
|
|
|
//LatestVersionInfo 版本升级
|
...
|
...
|
|