Skip to content

Commit d40b1ba

Browse files
authored
修复字典值分页bug
当字典值有多页,且sort值一样时,分页返回的数据有问题,导致有些数据一直加载不出来
1 parent a1dfc36 commit d40b1ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/service/system/sys_dictionary_detail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (dictionaryDetailService *DictionaryDetailService) GetSysDictionaryDetailIn
8383
if err != nil {
8484
return
8585
}
86-
err = db.Limit(limit).Offset(offset).Order("sort").Find(&sysDictionaryDetails).Error
86+
err = db.Limit(limit).Offset(offset).Order("sort").Order("id").Find(&sysDictionaryDetails).Error
8787
return sysDictionaryDetails, total, err
8888
}
8989

0 commit comments

Comments
 (0)