fix: mock数据调整

This commit is contained in:
fuzhongyun 2025-11-24 13:38:30 +08:00
parent 57788c9908
commit af54224504
2 changed files with 54 additions and 42 deletions

View File

@ -126,39 +126,38 @@ func (t *ZltxOrderAfterSaleResellerTool) checkZltxOrderAfterSaleReseller(orderNu
Code: 0,
Msg: "success",
Data: []ZltxOrderAfterSaleResellerData{
// 为我生成两条不一样的数据
{
OrderType: 1,
OrderNumber: orderNumber,
OrderAmount: 100,
OrderPrice: 100,
OrderNumber: "846784115378364417",
OrderAmount: 0.1,
OrderPrice: 0.1,
SignCompany: 1,
OrderQuantity: 1,
ResellerID: 1,
ResellerName: "测试供应商",
OurProductID: 1,
OurProductTitle: "测试商品",
Account: []string{"123456"},
Platforms: map[int]string{4: "测试平台"},
ResellerID: 23329,
ResellerName: "分销商23329",
OurProductID: 106,
OurProductTitle: "爱奇艺黄金会员周卡",
Account: []string{"15516353308"},
Platforms: map[int]string{4: "爱奇艺"},
AfterType: 1,
Remark: "测试售后",
AfterAmount: 50,
ResponsibleType: 1,
IsExistsAfterSale: true,
IsExistsAfterSale: false,
},
{
OrderType: 1,
OrderNumber: orderNumber,
OrderAmount: 100,
OrderPrice: 100,
OrderType: 101,
OrderNumber: "846052057729867777",
OrderAmount: 23,
OrderPrice: 23,
SignCompany: 1,
OrderQuantity: 1,
ResellerID: 1,
ResellerName: "测试供应商2",
OurProductID: 1,
OurProductTitle: "测试商品2",
Account: []string{"123456"},
Platforms: map[int]string{4: "测试平台2"},
ResellerID: 25629,
ResellerName: "二期财务分销商简称",
OurProductID: 104,
OurProductTitle: "优酷年卡",
Account: []string{"18380416326"},
Platforms: map[int]string{1: "爱瓦力"},
AfterType: 2,
Remark: "测试售后2",
AfterAmount: 30,

View File

@ -123,39 +123,52 @@ func (t *ZltxOrderAfterSaleSupplierTool) checkZltxOrderAfterSaleSupplier(orderNu
Code: 0,
Msg: "success",
Data: []ZltxOrderAfterSaleSupplierData{
// {
// "serialNumber": "847465394004430849",
// "platformName": "爱奇艺",
// "signCompany": 1,
// "platformProductName": "爱奇艺官方周卡",
// "platformPrice": 6,
// "terminalAccount": "15516353308",
// "status": 1,
// "platformProductId": 2,
// "platformId": 4,
// "signCompanyName": "成都蓝色兄弟网络科技有限公司",
// "executeTime": 1763961931
// }
{
SerialNumber: "123456",
PlatformName: "测试平台",
SerialNumber: "847465394004430849",
PlatformName: "爱奇艺",
SignCompany: 1,
PlatformProductName: "测试商品",
PlatformPrice: 100,
TerminalAccount: "123456",
PlatformProductName: "爱奇艺官方周卡",
PlatformPrice: 6,
TerminalAccount: "15516353308",
Status: 1,
PlatformProductID: 1,
PlatformID: 1,
SignCompanyName: "测试公司",
ExecuteTime: 1694560000,
PlatformProductID: 2,
PlatformID: 4,
SignCompanyName: "成都蓝色兄弟网络科技有限公司",
ExecuteTime: 1763961931,
Reason: "测试售后",
SalePrice: 50,
SaleType: 1,
IsExistsAfterSale: true,
IsExistsAfterSale: false,
},
{
SerialNumber: "123457",
PlatformName: "测试平台2",
SerialNumber: "843493448012140545",
PlatformName: "卓望别名1",
SignCompany: 1,
PlatformProductName: "测试商品2",
PlatformPrice: 100,
TerminalAccount: "123456",
Status: 1,
PlatformProductID: 1,
PlatformID: 1,
SignCompanyName: "测试公司2",
ExecuteTime: 1694570000,
PlatformProductName: "卓望--别名商品1",
PlatformPrice: 897.7765,
TerminalAccount: "18380416326",
Status: -1,
PlatformProductID: 7497,
PlatformID: 15,
SignCompanyName: "成都蓝色兄弟网络科技有限公司",
ExecuteTime: 1763014914,
Reason: "测试售后2",
SalePrice: 30,
SaleType: 2,
IsExistsAfterSale: false,
IsExistsAfterSale: true,
},
},
}