瀏覽代碼

更新

master
huangjiajun 4 週之前
父節點
當前提交
1718533359
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      app/svc/svc_division_strategy.go

+ 3
- 1
app/svc/svc_division_strategy.go 查看文件

@@ -113,7 +113,9 @@ func DivisionStrategySave(c *gin.Context, req md.DivisionStrategyDetailRes) erro
mediumData.AgentRevenueRate = utils.StrToInt(req.AgentRevenueRate)
mediumData.ExtraRevenueRate = utils.StrToInt(req.ExtraRevenueRate)
mediumData.AgreementSharingRate = utils.StrToInt(req.AgreementSharingRate)
_, err := sess.Where("id=?", mediumData.Id).Cols("agreement_sharing_rate,platform_retention_rate,commission_retention_rate,media_revenue_rate,agent_revenue_rate,extra_revenue_rate").Update(mediumData)
mediumData.UpdateAt = time.Now().Format("2006-01-02 15:04:05")

_, err := sess.Where("id=?", mediumData.Id).Cols("update_at,agreement_sharing_rate,platform_retention_rate,commission_retention_rate,media_revenue_rate,agent_revenue_rate,extra_revenue_rate").Update(mediumData)
if err != nil {
sess.Rollback()
return err


Loading…
取消
儲存