Browse Source

update

master
dengbiao 1 month ago
parent
commit
b0ffdd6a85
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      app/svc/svc_wx_data.go

+ 7
- 5
app/svc/svc_wx_data.go View File

@@ -152,11 +152,13 @@ func GenerateWxAdData(req md.GenerateWxAdData) (err error, generateWxAdData mode
UpdateAt: now.Format("2006-01-02 15:04:05"),
})
}
generateWxAdDataWithAgentFlowDb := implement.NewGenerateWxAdDataWithAgentFlowDb(db.Db)
_, err = generateWxAdDataWithAgentFlowDb.BatchAddGenerateWxAdDataWithAgentFlow(session, generateWxAdDataWithAgentFlows)
if err != nil {
_ = session.Rollback()
return
if len(generateWxAdDataWithAgentFlows) > 0 {
generateWxAdDataWithAgentFlowDb := implement.NewGenerateWxAdDataWithAgentFlowDb(db.Db)
_, err = generateWxAdDataWithAgentFlowDb.BatchAddGenerateWxAdDataWithAgentFlow(session, generateWxAdDataWithAgentFlows)
if err != nil {
_ = session.Rollback()
return
}
}

// 6、修改 original_wx_ad_data 记录中的 is_apply(是否已应用(0:未 1:已) )


Loading…
Cancel
Save