@@ -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), | ||||
@@ -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)), | ||||
@@ -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"` | ||||