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

View File

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