Browse Source

Merge branch 'cygx/cygx_11.2' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

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

+ 1 - 0
models/cygx/activity.go

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