Browse Source

add reverse:for v1.8.9 公排修改状态调整

tags/v1.8.9
huangjiajun 2 years ago
parent
commit
96d78533ba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rule/public_platoon_relate_commission.go

+ 1
- 1
rule/public_platoon_relate_commission.go View File

@@ -247,7 +247,7 @@ func UpdateWaitForSettlementDate(engine *xorm.Engine, userIds []string) (err err
settleDay = userPublicPlatoonSetting.SettleDay settleDay = userPublicPlatoonSetting.SettleDay
} }
//Todo:: 将 user_public_platoon_relation 中 wait_for_settlement_date 设置为 30天后 //Todo:: 将 user_public_platoon_relation 中 wait_for_settlement_date 设置为 30天后
sql := "update user_public_platoon_amount set wait_for_settlement_date = ? where uid in (" + strings.Join(userIds, ",") + ")"
sql := "update user_public_platoon_relation set wait_for_settlement_date = ? where uid in (" + strings.Join(userIds, ",") + ")"
waitForSettlementDate := time.Now().AddDate(0, 0, settleDay).Format("2006-01-02") waitForSettlementDate := time.Now().AddDate(0, 0, settleDay).Format("2006-01-02")
_, err = engine.Exec(sql, waitForSettlementDate) _, err = engine.Exec(sql, waitForSettlementDate)
if err != nil { if err != nil {


Loading…
Cancel
Save