Explorar el Código

Merge remote-tracking branch 'origin/master'

master
dengbiao hace 8 meses
padre
commit
828458db2e
Se han modificado 3 ficheros con 3 adiciones y 2 borrados
  1. +1
    -0
      db/model/o2o_fin_user_flow.go
  2. +1
    -1
      rule/consume_integral_settlement.go
  3. +1
    -1
      svc/svc_deal_user_amount.go

+ 1
- 0
db/model/o2o_fin_user_flow.go Ver fichero

@@ -29,4 +29,5 @@ type O2oFinUserFlow struct {
AliOrdId string `json:"ali_ord_id" xorm:"default '' comment('支付宝订单号') VARCHAR(128)"`
CreateAt time.Time `json:"create_at" xorm:"created not null default 'CURRENT_TIMESTAMP' comment('创建时间') TIMESTAMP"`
UpdateAt time.Time `json:"update_at" xorm:"updated not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
SubsidyNum int `json:"subsidy_num" xorm:"not null default 1 comment('') INT(11)"`
}

+ 1
- 1
rule/consume_integral_settlement.go Ver fichero

@@ -199,7 +199,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask
//加余额流水
if len(storeTotalMap) > 0 {
for k, v := range storeTotalMap {
err1 := DealUserStoreAmountFlow(session, k, zhios_order_relate_utils.StrToFloat64(v.String()), mid, zhios_order_relate_utils.IntToStr(experienceTotalCountMap[k]))
err1 := DealUserStoreAmountFlow(session, k, zhios_order_relate_utils.StrToFloat64(v.String()), mid, zhios_order_relate_utils.IntToStr(storeTotalCountMap[k]))
if err1 != nil {
_ = session.Rollback()
return err1, totalMap, storeTotalMap


+ 1
- 1
svc/svc_deal_user_amount.go Ver fichero

@@ -240,7 +240,7 @@ func DealUserStoreAmountFlow(session *xorm.Session, req md.DealUserAmount) (err
State: 1,
CreateAt: now,
UpdateAt: now,
Memo: req.Num,
SubsidyNum: zhios_order_relate_utils.StrToInt(req.Num),
Date: now.Format("2006-01-02"),
}
finUserFlow.Type = 0


Cargando…
Cancelar
Guardar