Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
7f9c6ede
提交
7f9c6ede
authored
7月 25, 2025
作者:
屈传平
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wdt
上级
76e8ca84
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
108 行增加
和
0 行删除
+108
-0
wdt_refund.go
upstream/wangdiantong/wdt_refund.go
+108
-0
没有找到文件。
upstream/wangdiantong/wdt_refund.go
浏览文件 @
7f9c6ede
...
...
@@ -308,3 +308,111 @@ func (s *WangDianTong) StockinRefundPush(ctx context.Context, req *StockinRefund
err
=
gjson
.
New
(
result
)
.
Scan
(
&
res
)
return
}
type
StockinRefundQueryReq
struct
{
StartTime
string
`json:"start_time"`
EndTime
string
`json:"end_time"`
PageSize
string
`json:"page_size"`
PageNo
string
`json:"page_no"`
ShopNo
string
`json:"shop_no"`
TimeType
string
`json:"time_type"`
SrcOrderNo
string
`json:"src_order_no"`
StockinNo
string
`json:"stockin_no"`
WarehouseNo
string
`json:"warehouse_no"`
}
type
StockinRefundQueryRes
struct
{
Code
int
`json:"code"`
Message
string
`json:"message"`
TotalCount
int
`json:"total_count"`
StockinList
[]
struct
{
Status
string
`json:"status"`
StockinId
string
`json:"stockin_id"`
OrderNo
string
`json:"order_no"`
WarehouseNo
string
`json:"warehouse_no"`
WarehouseName
string
`json:"warehouse_name"`
StockinTime
string
`json:"stockin_time"`
CreatedTime
string
`json:"created_time"`
OrderType
string
`json:"order_type"`
GoodsAmount
string
`json:"goods_amount"`
TotalPrice
string
`json:"total_price"`
AdjustPrice
string
`json:"adjust_price"`
RightPrice
string
`json:"right_price"`
Discount
string
`json:"discount"`
TaxAmount
string
`json:"tax_amount"`
PostFee
string
`json:"post_fee"`
OtherFee
string
`json:"other_fee"`
Remark
string
`json:"remark"`
LogisticsType
string
`json:"logistics_type"`
CheckTime
string
`json:"check_time"`
SrcOrderNo
string
`json:"src_order_no"`
GoodsCount
string
`json:"goods_count"`
LogisticsName
string
`json:"logistics_name"`
LogisticsCode
string
`json:"logistics_code"`
LogisticsNo
string
`json:"logistics_no"`
ActualRefundAmount
string
`json:"actual_refund_amount"`
RefundNo
string
`json:"refund_no"`
ProcessStatus
string
`json:"process_status"`
CustomerNo
string
`json:"customer_no"`
CustomerName
string
`json:"customer_name"`
NickName
string
`json:"nick_name"`
ShopName
string
`json:"shop_name"`
ShopNo
string
`json:"shop_no"`
ShopRemark
string
`json:"shop_remark"`
FlagName
string
`json:"flag_name"`
TradeNo
string
`json:"trade_no"`
TradeType
string
`json:"trade_type"`
StockinReason
string
`json:"stockin_reason"`
PlatformId
string
`json:"platform_id"`
OrderTypeName
string
`json:"order_type_name"`
DetailsList
[]
struct
{
StockinId
string
`json:"stockin_id"`
GoodsCount
string
`json:"goods_count"`
Discount
string
`json:"discount"`
CostPrice
string
`json:"cost_price"`
ProductionDate
string
`json:"production_date"`
ValidityDays
string
`json:"validity_days"`
ExpireDate
string
`json:"expire_date"`
SrcPrice
string
`json:"src_price"`
TaxPrice
string
`json:"tax_price"`
TaxAmount
string
`json:"tax_amount"`
Tax
string
`json:"tax"`
TotalCost
string
`json:"total_cost"`
Remark
string
`json:"remark"`
AdjustNum
string
`json:"adjust_num"`
AdjustPrice
string
`json:"adjust_price"`
RightNum
string
`json:"right_num"`
RightPrice
string
`json:"right_price"`
RightCost
string
`json:"right_cost"`
RecId
string
`json:"rec_id"`
SrcOrderDetailId
string
`json:"src_order_detail_id"`
GoodsName
string
`json:"goods_name"`
GoodsNo
string
`json:"goods_no"`
SpecNo
string
`json:"spec_no"`
Prop2
string
`json:"prop2"`
SpecName
string
`json:"spec_name"`
SpecCode
string
`json:"spec_code"`
BrandNo
string
`json:"brand_no"`
BrandName
string
`json:"brand_name"`
GoodsUnit
string
`json:"goods_unit"`
BatchNo
string
`json:"batch_no"`
}
`json:"details_list"`
}
`json:"stockin_list"`
}
/*
*查询出库单
*/
func
(
s
*
WangDianTong
)
StockinRefundQuery
(
ctx
context
.
Context
,
req
*
StockinRefundQueryReq
)
(
res
*
StockinRefundQueryRes
,
err
error
)
{
jsonStr
:=
gjson
.
New
(
req
)
paramas
:=
g
.
Map
{
"stockin_refund_info"
:
jsonStr
.
MustToJsonString
(),
}
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/stockin_order_query_refund.php"
,
paramas
)
if
nil
!=
err
{
return
}
err
=
gjson
.
New
(
result
)
.
Scan
(
&
res
)
return
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论