作者 tangxvhui

bug 修复

@@ -8,7 +8,7 @@ import ( @@ -8,7 +8,7 @@ import (
8 ) 8 )
9 9
10 type AchievementChance struct { 10 type AchievementChance struct {
11 - Id int64 `orm:"column(id);pk"` 11 + Id int64 `orm:"column(id);auto"`
12 AchievementId int64 `orm:"column(achievement_id);null" description:"成果编号 表achievement.id"` 12 AchievementId int64 `orm:"column(achievement_id);null" description:"成果编号 表achievement.id"`
13 ChanceId int64 `orm:"column(chance_id);null" description:"机会编号 表chance.id"` 13 ChanceId int64 `orm:"column(chance_id);null" description:"机会编号 表chance.id"`
14 ChanceCode string `orm:"column(chance_code);size(255);null" description:"机会编号 表chance.code"` 14 ChanceCode string `orm:"column(chance_code);size(255);null" description:"机会编号 表chance.code"`
@@ -8,7 +8,7 @@ import ( @@ -8,7 +8,7 @@ import (
8 ) 8 )
9 9
10 type AchievementProvider struct { 10 type AchievementProvider struct {
11 - Id int64 `orm:"column(id);pk" description:"主键id"` 11 + Id int64 `orm:"column(id);auto" description:"主键id"`
12 AchievementId int64 `orm:"column(achievement_id);null" description:"表achievement.id"` 12 AchievementId int64 `orm:"column(achievement_id);null" description:"表achievement.id"`
13 UserCompanyId int64 `orm:"column(user_company_id);null" description:"user_company.id"` 13 UserCompanyId int64 `orm:"column(user_company_id);null" description:"user_company.id"`
14 UserGraspScore float64 `orm:"column(user_grasp_score);null;digits(4);decimals(1)" description:"把握人得分"` 14 UserGraspScore float64 `orm:"column(user_grasp_score);null;digits(4);decimals(1)" description:"把握人得分"`