查待出库的

This commit is contained in:
苏尹岚
2020-09-09 10:59:42 +08:00
parent 5207d068c2
commit 17428c16d7
4 changed files with 7 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ const (
var ( var (
TopicList = []string{ TopicList = []string{
"open_message_order_order_pay", //订单付款 "open_message_order_order_pay", //订单付款
// "open_message_pop_order_out", //POP订单出库 "open_message_pop_order_out", //POP订单出库
// "open_message_pop_order_create", //POP订单创建 // "open_message_pop_order_create", //POP订单创建
// "open_message_pop_order_change", //POP订单变更消息 // "open_message_pop_order_change", //POP订单变更消息
// "open_message_order_order_finish", //订单完成 // "open_message_order_order_finish", //订单完成

View File

@@ -3,7 +3,8 @@ package jcqapi
import ( import (
"fmt" "fmt"
"testing" "testing"
"time"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/baseapi" "git.rosy.net.cn/baseapi"
"go.uber.org/zap" "go.uber.org/zap"
@@ -22,5 +23,5 @@ func init() {
} }
func TestConsumeInfo(t *testing.T) { func TestConsumeInfo(t *testing.T) {
fmt.Println(time.Now().Second()) fmt.Println(utils.Str2Float64("2.60"))
} }

View File

@@ -28,6 +28,7 @@ type CallBackResult struct {
Pin string `json:"pin"` Pin string `json:"pin"`
IDSopShipmenttype string `json:"idSopShipmenttype"` IDSopShipmenttype string `json:"idSopShipmenttype"`
ScDT string `json:"scDT"` ScDT string `json:"scDT"`
SellerDiscount string `json:"sellerDiscount"`
ConsigneeInfo *CallBackConsigneeInfo `json:"consigneeInfo"` ConsigneeInfo *CallBackConsigneeInfo `json:"consigneeInfo"`
ItemInfoList []*CallBackItemInfoList `json:"itemInfoList"` ItemInfoList []*CallBackItemInfoList `json:"itemInfoList"`
} }

View File

@@ -99,6 +99,7 @@ type GetOrderResult struct {
Pin string `json:"pin"` Pin string `json:"pin"`
IDSopShipmenttype string `json:"idSopShipmenttype"` IDSopShipmenttype string `json:"idSopShipmenttype"`
ScDT string `json:"scDT"` ScDT string `json:"scDT"`
SellerDiscount string `json:"sellerDiscount"`
} }
//查询单个订单 //查询单个订单
@@ -109,7 +110,7 @@ func (a *API) GetOrder(orderID int64, isStatus bool) (getOrderResult *GetOrderRe
params["optional_fields"] = `orderType,payType,orderTotalPrice,orderSellerPrice, params["optional_fields"] = `orderType,payType,orderTotalPrice,orderSellerPrice,
orderPayment,freightPrice,orderState,orderStateRemark, orderPayment,freightPrice,orderState,orderStateRemark,
orderStartTime,orderEndTime,orderRemark,consigneeInfo, orderStartTime,orderEndTime,orderRemark,consigneeInfo,
itemInfoList,pauseBizInfo,pin,idSopShipmenttype,scDT` itemInfoList,pauseBizInfo,pin,idSopShipmenttype,scDT,sellerDiscount`
if isStatus { if isStatus {
params["order_state"] = "WAIT_SELLER_STOCK_OUT,TRADE_CANCELED,PAUSE" params["order_state"] = "WAIT_SELLER_STOCK_OUT,TRADE_CANCELED,PAUSE"
} }