refactor: 移除冗余错误日志并优化缓存获取逻辑
This commit is contained in:
@@ -42,7 +42,6 @@ func (r *UDMAuthUser) SelectPage(query map[string]string) (int64, []model.UDMAut
|
||||
|
||||
// 查询数量 长度为0直接返回
|
||||
if err := tx.Count(&total).Error; err != nil || total <= 0 {
|
||||
logger.Errorf("total err => %v", err)
|
||||
return total, rows
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user