gorm scan查询报了Scan error on column index 0, name \“count\“: converting NULL to int is unsupported
解决方案1:使用sql.NullInt64。只做简单记录。示例:func(oOrderModel)GetInfoByUid(ctxcontext.Context,idstring,fieldsstring)(sql.NullInt64,error){varcountsql.NullInt64db:=o.dbdb=db.WithContext(ctx)err:=db.Table(OrderTable