Merge pull request #2111 from zayn-code/dict

修复字典值分页bug
This commit is contained in:
PiexlMax(奇淼 2025-10-09 13:59:00 +08:00 committed by GitHub
commit b01b27f1eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (dictionaryDetailService *DictionaryDetailService) GetSysDictionaryDetailIn
if err != nil { if err != nil {
return return
} }
err = db.Limit(limit).Offset(offset).Order("sort").Find(&sysDictionaryDetails).Error err = db.Limit(limit).Offset(offset).Order("sort").Order("id").Find(&sysDictionaryDetails).Error
return sysDictionaryDetails, total, err return sysDictionaryDetails, total, err
} }