refactor: 移除冗余错误日志,优化查询逻辑

This commit is contained in:
TsMask
2025-03-04 14:52:15 +08:00
parent 986624c48f
commit 8595a1c0cb
3 changed files with 10 additions and 7 deletions

View File

@@ -43,7 +43,6 @@ func (r *UDMAuthUser) SelectPage(query map[string]any) (int64, []model.UDMAuthUs
// 查询数量 长度为0直接返回
if err := tx.Count(&total).Error; err != nil || total <= 0 {
logger.Errorf("total err => %v", err)
return total, rows
}