作者 tangxvhui

bug修复

... ... @@ -7,7 +7,7 @@ import (
)
type ChanceCheckResult struct {
Id int `orm:"column(id);auto"`
Id int64 `orm:"column(id);auto"`
ChanceId int64 `orm:"column(chance_id)"`
GroupId int64 `orm:"column(group_id);null"`
CheckPid int64 `orm:"column(check_pid)"`
... ... @@ -29,7 +29,7 @@ func init() {
// GetChanceCheckResultById retrieves ChanceCheckResult by Id. Returns error if
// Id doesn't exist
func GetChanceCheckResultById(id int) (v *ChanceCheckResult, err error) {
func GetChanceCheckResultById(id int64) (v *ChanceCheckResult, err error) {
o := orm.NewOrm()
v = &ChanceCheckResult{Id: id}
if err = o.Read(v); err == nil {
... ...