Browse Source

易董会议同步过滤同步 过滤失效会议

xingzai 2 years ago
parent
commit
15ed86348a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      services/yidong.go

+ 4 - 0
services/yidong.go

@@ -249,6 +249,10 @@ func GetYiDongActivity(cont context.Context) (err error) {
 	if len(ApifoxModal.Result) > 0 {
 		actList := ApifoxModal.Result
 		for _, v := range actList {
+			//同步有效性 1有效,0失效
+			if v.SyncFlag == "0" {
+				continue
+			}
 			var item = new(models.CygxActivity)
 			item.YidongActivityId = v.ID
 			item.ActivityTypeId = 3