查询count


  1. dao := NewDbtestDao()
  2. param := torm.ParamRange{101,201}
  3. count, err := dao.GetCount(param) //count字段类型为int64
  4. if err != nil {
  5. return err
  6. }
  • GetCount参数和Get一样,返回结果为count