查询多个id


  1. dao := mysqlRepo.NewDbtestDao()
  2. param := torm.CastToParamIn([]int{1,2,3})
  3. lists, err := dao.Get(param)
  4. if err != nil {
  5. return err
  6. }
  7. for _,record := range lists {
  8. //逻辑
  9. }