Browse Source

update

three
DengBiao 1 year ago
parent
commit
3f7c6ad8b6
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      consume/canal_guide_order_consume.go
  2. +1
    -0
      consume/canal_order_consume.go
  3. +1
    -0
      es/md/es_struct.go

+ 1
- 0
consume/canal_guide_order_consume.go View File

@@ -83,6 +83,7 @@ func handleGuideOrdTable(msg []byte) error {
Uid: data.Uid, Uid: data.Uid,
BuyerPhone: user.Phone, BuyerPhone: user.Phone,
CostPrice: utils.StrToFloat64(data.CostPrice), CostPrice: utils.StrToFloat64(data.CostPrice),
Gmv: utils.StrToFloat64(data.CostPrice) * float64(utils.StrToInt(data.ItemNum)),
State: int32(utils.StrToInt(data.State)), State: int32(utils.StrToInt(data.State)),
StateZh: md.CanalGuideOrderState(int32(utils.StrToInt(data.State))).String(), StateZh: md.CanalGuideOrderState(int32(utils.StrToInt(data.State))).String(),
GoodsNum: utils.StrToInt(data.ItemNum), GoodsNum: utils.StrToInt(data.ItemNum),


+ 1
- 0
consume/canal_order_consume.go View File

@@ -110,6 +110,7 @@ func handleMallOrdTable(msg []byte) error {
Uid: data.Uid, Uid: data.Uid,
BuyerPhone: data.BuyerPhone, BuyerPhone: data.BuyerPhone,
CostPrice: utils.StrToFloat64(data.CostPrice), CostPrice: utils.StrToFloat64(data.CostPrice),
Gmv: utils.StrToFloat64(data.CostPrice) * float64(goodsNum),
State: int32(utils.StrToInt(data.State)), State: int32(utils.StrToInt(data.State)),
StateZh: md.CanalOrderState(int32(utils.StrToInt(data.State))).String(), StateZh: md.CanalOrderState(int32(utils.StrToInt(data.State))).String(),
PayChannel: int32(utils.StrToInt(data.PayChannel)), PayChannel: int32(utils.StrToInt(data.PayChannel)),


+ 1
- 0
es/md/es_struct.go View File

@@ -10,6 +10,7 @@ type ZhiosOrdersEs struct {
Uid string `json:"uid"` Uid string `json:"uid"`
BuyerPhone string `json:"buyer_phone"` BuyerPhone string `json:"buyer_phone"`
CostPrice float64 `json:"cost_price"` CostPrice float64 `json:"cost_price"`
Gmv float64 `json:"gmv"`
State int32 `json:"state"` State int32 `json:"state"`
StateZh string `json:"state_zh"` StateZh string `json:"state_zh"`
PayTime interface{} `json:"pay_time"` PayTime interface{} `json:"pay_time"`


Loading…
Cancel
Save