Browse Source

no message

xingzai 1 year ago
parent
commit
63fd381cc4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      models/cygx/activity.go

+ 1 - 0
models/cygx/activity.go

@@ -295,6 +295,7 @@ func AddActivity(items []*CygxActivity, industrialActivityItems [][]*CygxIndustr
 			//添加研选扣点内容
 			//添加研选扣点内容
 			if itemPointsSet.PointsObject != "" {
 			if itemPointsSet.PointsObject != "" {
 				itemPointsSet.ActivityId = int(newId)
 				itemPointsSet.ActivityId = int(newId)
+				itemPointsSet.Id = 0 // 二次插入的时候主键被赋值了
 				_, err = to.Insert(itemPointsSet)
 				_, err = to.Insert(itemPointsSet)
 				if err != nil {
 				if err != nil {
 					return
 					return