京东JavaDate类型,改为毫秒的timestamp类型兼容处理。
This commit is contained in:
@@ -399,7 +399,7 @@ func (a *API) QuerySingleOrder(orderId string) (map[string]interface{}, error) {
|
||||
func (a *API) OrderQuery2(queryParam *OrderQueryParam) (retVal []*OrderInfo, totalCount int, err error) {
|
||||
orderList, totalCount, err := a.OrderQuery(utils.Struct2MapByJson(queryParam))
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(orderList, &retVal, true)
|
||||
err = JdMap2StructByJson(orderList, &retVal, true)
|
||||
}
|
||||
return retVal, totalCount, err
|
||||
}
|
||||
@@ -506,7 +506,7 @@ func (a *API) OrderShoudSettlementService(orderId string) (map[string]interface{
|
||||
func (a *API) OrderShoudSettlementService2(orderId string) (orderSettlement *OrderSettlementInfo, err error) {
|
||||
result, err := a.OrderShoudSettlementService(orderId)
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result, &orderSettlement, false)
|
||||
err = JdMap2StructByJson(result, &orderSettlement, false)
|
||||
}
|
||||
return orderSettlement, err
|
||||
}
|
||||
@@ -527,7 +527,7 @@ func (a *API) GetAfsService(orderId string) (map[string]interface{}, error) {
|
||||
func (a *API) GetAfsService2(afsOrderID string) (afsOrderInfo *AfsServiceResponse, err error) {
|
||||
result, err := a.GetAfsService(afsOrderID)
|
||||
if err == nil {
|
||||
if err = utils.Map2StructByJson(result, &afsOrderInfo, false); err != nil {
|
||||
if err = JdMap2StructByJson(result, &afsOrderInfo, false); err != nil {
|
||||
baseapi.SugarLogger.Warnf("GetAfsService2, result:%s failed with error:%v", utils.Format4Output(result, true), err)
|
||||
}
|
||||
}
|
||||
@@ -703,7 +703,7 @@ func (a *API) GetByOrderNoForOaos(orderNo string) (orderTrackList []*OrderTrack,
|
||||
}
|
||||
result, err := a.AccessAPINoPage("orderTrace/getByOrderNoForOaos", jdParams, nil, nil, genNoPageResultParser("code", "msg", "orderTrackList", "0"))
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result, &orderTrackList, false)
|
||||
err = JdMap2StructByJson(result, &orderTrackList, false)
|
||||
}
|
||||
return orderTrackList, err
|
||||
}
|
||||
@@ -716,7 +716,7 @@ func (a *API) GetByOrderNoForOaosNew(orderID string) (orderTrackList []*OrderTra
|
||||
}
|
||||
result, err := a.AccessAPINoPage("orderTrace/getByOrderNoForOaosNew", jdParams, nil, nil, genNoPageResultParser("code", "detail", "result", "0"))
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result.(map[string]interface{})["orderTrackList"], &orderTrackList, false)
|
||||
err = JdMap2StructByJson(result.(map[string]interface{})["orderTrackList"], &orderTrackList, false)
|
||||
}
|
||||
return orderTrackList, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user