Kaynağa Gözat

update

master
dengbiao 1 ay önce
ebeveyn
işleme
b0ffdd6a85
1 değiştirilmiş dosya ile 7 ekleme ve 5 silme
  1. +7
    -5
      app/svc/svc_wx_data.go

+ 7
- 5
app/svc/svc_wx_data.go Dosyayı Görüntüle

@@ -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:已) )


Yükleniyor…
İptal
Kaydet