Browse Source

xin

updatebug
506583276@qq.com 2 years ago
parent
commit
892ae2ad23
  1. 1
      BBWYB.Client/BBWYB.Client.csproj
  2. 4
      BBWYB.Client/Models/APIModel/Response/Order/OrderResponse.cs
  3. 5
      BBWYB.Client/Models/APIModel/Response/Order/OrderSkuResponse.cs
  4. 9
      BBWYB.Client/ViewModels/MainViewModel.cs
  5. 2
      BBWYB.Client/Views/MainWindow.xaml
  6. 39
      BBWYB.Client/Views/MainWindow.xaml.cs
  7. 28
      BBWYB.Client/Views/Order/OrderList.xaml
  8. 14
      BBWYB.Client/Views/WebB/WebB.xaml
  9. 18
      BBWYB.Client/Views/WebB/WebB.xaml.cs
  10. 69
      BBWYB.Client/WebView2Manager.cs
  11. 9
      BBWYB.Server.Business/Order/OrderBusiness.cs
  12. 21
      BBWYB.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs
  13. 1
      BBWYB.Server.Business/PurchaseScheme/PurchaseProductAPIService.cs
  14. 9
      BBWYB.Server.Business/Sync/OrderSyncBusiness.cs
  15. 10
      BBWYB.Server.Model/Db/Order/Order.cs
  16. 69
      BBWYB.Server.Model/Db/Order/OrderPurchaseRelationinfo.cs
  17. 6
      BBWYB.Server.Model/Db/Order/OrderSku.cs
  18. 5
      BBWYB.Server.Model/Dto/Response/Order/OrderResponse.cs
  19. 505
      doc/.back_bbwyB端库/bbwyB端库-backup-2023517184403.pdma.json
  20. 573
      doc/.back_bbwyB端库/bbwyB端库-backup-2023517191218.pdma.json
  21. 594
      doc/.back_bbwyB端库/bbwyB端库-backup-2023517215051.pdma.json
  22. 541
      doc/bbwyB端库.pdma.json

1
BBWYB.Client/BBWYB.Client.csproj

@ -37,6 +37,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.2-mauipre.1.22102.15" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="6.0.2-mauipre.1.22102.15" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.2-mauipre.1.22102.15" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.1829-prerelease" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.39" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

4
BBWYB.Client/Models/APIModel/Response/Order/OrderResponse.cs

@ -102,10 +102,6 @@ namespace BBWYB.Client.Models
///// </summary>
//public string ExpressName { get; set; }
/// <summary>
/// 来源Sku
/// </summary>
public string SourceSku { get; set; }
/// <summary>
/// 来源店铺名

5
BBWYB.Client/Models/APIModel/Response/Order/OrderSkuResponse.cs

@ -38,5 +38,10 @@ namespace BBWYB.Client.Models
/// Sku标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 来源Sku
/// </summary>
public string BelongSkuId { get; set; }
}
}

9
BBWYB.Client/ViewModels/MainViewModel.cs

@ -102,6 +102,15 @@ namespace BBWYB.Client.ViewModels
}
});
MenuList.Add(new MenuModel()
{
Name = "Web版",
ChildList = new List<MenuModel>()
{
new MenuModel(){ Name="订单列表Bata",Url="/Views/WebB/WebB.xaml" },
//new MenuModel(){ Name="团队配置",Url="/Views/Setting/TeamSetting.xaml" }
}
});
MenuList.Add(new MenuModel()
{
Name = "设置",
ChildList = new List<MenuModel>()

2
BBWYB.Client/Views/MainWindow.xaml

@ -24,7 +24,7 @@
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0">
<TextBlock Text="{Binding GlobalContext.User.Name}"/>
<TextBlock Text="{Binding GlobalContext.User.Shop.ShopName}" Margin="5,0,0,0"/>
<TextBlock Text="v10011" Margin="5,0,0,0"/>
<TextBlock Text="v10013" Margin="5,0,0,0"/>
</StackPanel>
</Border>
<Grid Grid.Row="1">

39
BBWYB.Client/Views/MainWindow.xaml.cs

@ -1,6 +1,8 @@
using CommunityToolkit.Mvvm.Messaging;
using Microsoft.Web.WebView2.Core;
using SJ.Controls;
using System;
using System.Threading;
using System.Windows;
namespace BBWYB.Client.Views
@ -20,7 +22,28 @@ namespace BBWYB.Client.Views
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
if (!CheckWebview2Runtime())
{
MessageBox.Show("缺少webview2 runtime,请下载安装之后重新运行bbwyb");
//下载webview2 runtime
//Task.Factory.StartNew(DownloadWebview2Runtime);
var webview2RuntimeUrl = "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/238fc310-c6c1-4a3e-a806-4a7c3c17b377/MicrosoftEdgeWebView2RuntimeInstallerX64.exe";
try
{
System.Diagnostics.Process.Start("explorer.exe", webview2RuntimeUrl);
Thread.Sleep(1000);
}
catch (Exception ex)
{
Clipboard.SetText(webview2RuntimeUrl);
MessageBox.Show($"{ex.Message}\r\n调用浏览器失败,网页链接已复制到剪切板,请手动打开浏览器访问", "提示");
}
finally
{
Environment.Exit(Environment.ExitCode);
}
}
}
private void frame_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
@ -28,5 +51,19 @@ namespace BBWYB.Client.Views
if (frame.CanGoBack)
frame.RemoveBackEntry();
}
private bool CheckWebview2Runtime()
{
bool isInstall = false;
try
{
isInstall = !string.IsNullOrEmpty(CoreWebView2Environment.GetAvailableBrowserVersionString());
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return isInstall;
}
}
}

28
BBWYB.Client/Views/Order/OrderList.xaml

@ -386,10 +386,6 @@
<c:BButton Style="{StaticResource LinkButton}" Content="{Binding SourceShopName}" Margin="5,0,0,0"
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}"
CommandParameter="{Binding SourceShopName}"/>
<TextBlock VerticalAlignment="Center" Margin="5,0,0,0" Text="店铺SKU:"/>
<c:BButton Style="{StaticResource LinkButton}" Content="{Binding SourceSku}" Margin="5,0,0,0"
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}"
CommandParameter="{Binding SourceSku}"/>
</StackPanel>
<Border VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/>
</Grid>
@ -441,6 +437,28 @@
<Run Text="{Binding ItemTotal}"/>
</TextBlock>
<StackPanel Orientation="Horizontal">
<TextBlock Text="SPU:"/>
<c:BButton Content="{Binding ProductId}" Style="{StaticResource LinkButton}"
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
CommandParameter="{Binding ProductId}"
Margin=" 5,0,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<TextBlock Text="QTSKU:"/>
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}"
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
CommandParameter="{Binding SkuId}"
Margin=" 5,0,0,0"/>
<TextBlock Text="JDSKU:" Margin="5,0,0,0"/>
<c:BButton Content="{Binding BelongSkuId}" Style="{StaticResource LinkButton}"
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
CommandParameter="{Binding BelongSkuId}"
Margin=" 5,0,0,0"/>
</StackPanel>
</StackPanel>
<!--<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBlock Text="SPU:"/>
@ -457,7 +475,7 @@
Margin=" 5,0,0,0"/>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>-->
</StackPanel>
<Border Grid.ColumnSpan="2" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"
DataContext="{Binding DataContext,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}"

14
BBWYB.Client/Views/WebB/WebB.xaml

@ -0,0 +1,14 @@
<Page x:Class="BBWYB.Client.Views.WebB.WebB"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:BBWYB.Client.Views.WebB"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Title="WebB" Background="Red">
<Grid>
</Grid>
</Page>

18
BBWYB.Client/Views/WebB/WebB.xaml.cs

@ -0,0 +1,18 @@
using System.Windows.Controls;
namespace BBWYB.Client.Views.WebB
{
/// <summary>
/// WebB.xaml 的交互逻辑
/// </summary>
public partial class WebB : Page
{
private WebView2Manager w2m;
private bool isNavigated;
public WebB()
{
InitializeComponent();
}
}
}

69
BBWYB.Client/WebView2Manager.cs

@ -0,0 +1,69 @@
using BBWYB.Common.Models;
using Microsoft.Web.WebView2.Core;
using Microsoft.Web.WebView2.Wpf;
using System;
using io = System.IO;
namespace BBWYB.Client
{
public class WebView2Manager : IDenpendency
{
public WebView2 wb2 { get; private set; }
//public WebView2Manager()
//{
// Init();
//}
public void Init()
{
if (wb2 == null)
{
wb2 = new WebView2();
var wb2Setting = CoreWebView2Environment.CreateAsync(userDataFolder: io.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "WebView2UserData")).Result;
wb2.EnsureCoreWebView2Async(wb2Setting);
wb2.CoreWebView2InitializationCompleted += Wb2_CoreWebView2InitializationCompleted;
wb2.NavigationCompleted += Wb2_NavigationCompleted;
wb2.WebMessageReceived += Wb2_WebMessageReceived;
}
}
public Action<CoreWebView2WebMessageReceivedEventArgs> OnWebMessageReceived;
public Action<CoreWebView2NavigationCompletedEventArgs> OnNavigationCompleted;
public Action<CoreWebView2InitializationCompletedEventArgs> CoreWebView2InitializationCompleted;
public bool IsInitializationCompleted { get ; private set; }
private void Wb2_WebMessageReceived(object sender, CoreWebView2WebMessageReceivedEventArgs e)
{
OnWebMessageReceived?.Invoke(e);
}
private void Wb2_NavigationCompleted(object sender, CoreWebView2NavigationCompletedEventArgs e)
{
OnNavigationCompleted?.Invoke(e);
}
private void Wb2_CoreWebView2InitializationCompleted(object sender, CoreWebView2InitializationCompletedEventArgs e)
{
CoreWebView2InitializationCompleted?.Invoke(e);
IsInitializationCompleted = true;
}
public void Close()
{
if (wb2 != null && wb2.CoreWebView2 != null)
{
IsInitializationCompleted = false;
wb2.CoreWebView2InitializationCompleted -= Wb2_CoreWebView2InitializationCompleted;
wb2.NavigationCompleted -= Wb2_NavigationCompleted;
wb2.WebMessageReceived -= Wb2_WebMessageReceived;
var udf = wb2.CoreWebView2.Environment.UserDataFolder;
wb2.Dispose();
wb2 = null;
try
{
io.Directory.Delete(udf, true);
}
catch { }
}
}
}
}

9
BBWYB.Server.Business/Order/OrderBusiness.cs

@ -37,10 +37,11 @@ namespace BBWYB.Server.Business
}
else
{
if (!string.IsNullOrEmpty(request.Sku) || !string.IsNullOrEmpty(request.ProductId))
if (!string.IsNullOrEmpty(request.Sku) || !string.IsNullOrEmpty(request.SourceSku) || !string.IsNullOrEmpty(request.ProductId))
{
var childSelect = fsql.Select<OrderSku>().As("osku")
.WhereIf(!string.IsNullOrEmpty(request.Sku), osku => osku.SkuId == request.Sku)
.WhereIf(!string.IsNullOrEmpty(request.SourceSku), osku => osku.BelongSkuId == request.SourceSku)
.WhereIf(!string.IsNullOrEmpty(request.ProductId), osku => osku.ProductId == request.ProductId);
select = select.Where((o, ocs, oct) => childSelect.Where(osku => osku.OrderId == o.Id).Any());
}
@ -57,9 +58,7 @@ namespace BBWYB.Server.Business
.WhereIf(request.StartDate != null, (o, ocs, oct) => o.StartTime >= request.StartDate)
.WhereIf(request.EndDate != null, (o, ocs, oct) => o.StartTime <= request.EndDate)
.WhereIf(!string.IsNullOrEmpty(request.ClientOrderId), (o, ocs, oct) => o.ClientOrderId == request.ClientOrderId)
.WhereIf(!string.IsNullOrEmpty(request.SourceShopName), (o, ocs, oct) => o.SourceShopName == request.SourceShopName)
.WhereIf(!string.IsNullOrEmpty(request.SourceSku), (o, ocs, oct) => o.SourceSku.Contains(request.SourceSku));
.WhereIf(!string.IsNullOrEmpty(request.SourceShopName), (o, ocs, oct) => o.SourceShopName == request.SourceShopName);
}
select = select.WhereIf(request.ShopId != null, (o, ocs, oct) => o.ShopId == request.ShopId);
@ -94,7 +93,7 @@ namespace BBWYB.Server.Business
PreferentialAmount = o.PreferentialAmount,
ClientOrderId = o.ClientOrderId,
SourceShopName = o.SourceShopName,
SourceSku = o.SourceSku,
//SourceSku = o.SourceSku,
//ExpressName = o.ExpressName,
IsPurchased = o.IsPurchased,
BuyerAccount = o.BuyerAccount,

21
BBWYB.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs

@ -177,6 +177,7 @@ namespace BBWYB.Server.Business
List<OrderPurchaseInfo> insertOrderPurchaseInfos = new List<OrderPurchaseInfo>();
List<OrderPurchaseSkuInfo> insertOrderPurchaseSkuInfos = new List<OrderPurchaseSkuInfo>();
List<long> updatePurchaseTimeSchemeIdList = new List<long>();
List<OrderPurchaseRelationInfo> insertOrderPurchaseRelationInfoList = new List<OrderPurchaseRelationInfo>();
IInsert<OrderCost> insertOrderCost = null;
IUpdate<OrderCost> updateOrderCost = null;
var totalPurchaseAmount = 0M;
@ -225,6 +226,23 @@ namespace BBWYB.Server.Business
OrderId = createOrderResponse.OrderId
});
foreach (var cargoParam in cargoParamGroup.CargoParamList)
{
insertOrderPurchaseRelationInfoList.Add(new OrderPurchaseRelationInfo()
{
Id = idGenerator.NewLong(),
BelongSkuId = cargoParam.BelongSkuId,
CreateTime = DateTime.Now,
OrderId = request.OrderId,
PurchaseOrderId = purchaseOrderSimpleInfo.OrderId,
PurchaseProductId = cargoParam.ProductId,
PurchaseSkuId = cargoParam.SkuId,
PurchaseSpecId = cargoParam.SpecId,
Quantity = cargoParam.Quantity,
SchemeId = cargoParam.SchemeId
});
}
totalPurchaseAmount += purchaseOrderSimpleInfo.TotalAmount;
var belongSkuGroups = cargoParamGroup.CargoParamList.GroupBy(p => p.BelongSkuId);
@ -337,6 +355,7 @@ namespace BBWYB.Server.Business
fsql.Insert(insertOrderCostDetails).ExecuteAffrows();
fsql.Insert(insertOrderPurchaseInfos).ExecuteAffrows();
fsql.Insert(insertOrderPurchaseSkuInfos).ExecuteAffrows();
fsql.Insert(insertOrderPurchaseRelationInfoList).ExecuteAffrows();
updateOrderCost?.ExecuteAffrows();
insertOrderCost?.ExecuteAffrows();
if (updatePurchaseTimeSchemeIdList.Count() > 0)
@ -655,7 +674,7 @@ namespace BBWYB.Server.Business
});
totalPurchaseAmount += purchaseOrderSimpleInfo.TotalAmount;
}
//var oldTotalAmount = dbOrderCost.PurchaseAmount;
//var oldProductAmount = dbOrderCostDetailList.Sum(ocd => ocd.SkuAmount);

1
BBWYB.Server.Business/PurchaseScheme/PurchaseProductAPIService.cs

@ -29,6 +29,7 @@ namespace BBWYB.Server.Business
public PurchaseProductAPIService(RestApiService restApiService, IMemoryCache memoryCache)
{
this.memoryCache = memoryCache;
this.restApiService = restApiService;
_1688ProductDetailRequestHeader = new Dictionary<string, string>()
{

9
BBWYB.Server.Business/Sync/OrderSyncBusiness.cs

@ -113,13 +113,17 @@ namespace BBWYB.Server.Business.Sync
ClientOrderId = qtOrder.ClientOrderId,
BuyerAccount = qtOrder.UserAccount
};
JArray belongSkus = null;
if (!string.IsNullOrEmpty(qtOrder.Extended))
{
try
{
var jobject = JObject.Parse(qtOrder.Extended);
dbOrder.SourceSku = jobject.Value<string>("SourceSku");
//dbOrder.SourceSku = jobject.Value<string>("SourceSku");
dbOrder.SourceShopName = jobject.Value<string>("SourceShopName");
if (jobject.ContainsKey("BelongSkus"))
belongSkus = jobject["BelongSkus"] as JArray;
}
catch (Exception ex)
{
@ -145,7 +149,8 @@ namespace BBWYB.Server.Business.Sync
Price = qtOrderSku.SkuPrice,
Title = qtOrderSku.SkuTitle,
ShopId = shopId,
ProductId = qtOrderSku.ProductId
ProductId = qtOrderSku.ProductId,
BelongSkuId = belongSkus?.FirstOrDefault(j=>j.Value<string>("SkuId") == qtOrderSku.SkuId)?.Value<string>("BelongSkuId") ?? string.Empty
});
}

10
BBWYB.Server.Model/Db/Order/Order.cs

@ -136,11 +136,11 @@ namespace BBWYB.Server.Model.Db
//[Column(StringLength = 100)]
//public string ExpressName { get; set; }
/// <summary>
/// 来源Sku
/// </summary>
[Column(StringLength = 500)]
public string SourceSku { get; set; }
///// <summary>
///// 来源Sku
///// </summary>
//[Column(StringLength = 500)]
//public string SourceSku { get; set; }
/// <summary>
/// 来源店铺名

69
BBWYB.Server.Model/Db/Order/OrderPurchaseRelationinfo.cs

@ -0,0 +1,69 @@
using FreeSql.DataAnnotations;
namespace BBWYB.Server.Model.Db
{
/// <summary>
/// 采购订单关系表
/// </summary>
[Table(Name = "orderpurchaserelationinfo", DisableSyncStructure = true)]
public partial class OrderPurchaseRelationInfo {
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true)]
public long Id { get; set; }
/// <summary>
/// 归属SkuId(拳探)
/// </summary>
[Column(StringLength = 100)]
public string BelongSkuId { get; set; }
[Column(DbType = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 订单Id
/// </summary>
[Column(StringLength = 100)]
public string OrderId { get; set; }
/// <summary>
/// 采购单Id
/// </summary>
[Column(StringLength = 100)]
public string PurchaseOrderId { get; set; }
/// <summary>
/// 采购Spu
/// </summary>
[Column(StringLength = 100)]
public string PurchaseProductId { get; set; }
/// <summary>
/// 采购Sku
/// </summary>
[Column(StringLength = 100)]
public string PurchaseSkuId { get; set; }
/// <summary>
/// 采购Spec(1688)
/// </summary>
[Column(StringLength = 100)]
public string PurchaseSpecId { get; set; }
/// <summary>
/// 采购数量
/// </summary>
public int? Quantity { get; set; }
/// <summary>
/// 采购方案Id
/// </summary>
public long? SchemeId { get; set; }
}
}

6
BBWYB.Server.Model/Db/Order/OrderSku.cs

@ -57,6 +57,12 @@ namespace BBWYB.Server.Model.Db
[Column(StringLength = 50, IsNullable = false)]
public string SkuId { get; set; }
/// <summary>
/// 归属SkuId
/// </summary>
[Column(StringLength = 50)]
public string BelongSkuId { get; set; }
/// <summary>
/// Sku标题
/// </summary>

5
BBWYB.Server.Model/Dto/Response/Order/OrderResponse.cs

@ -94,11 +94,6 @@
/// </summary>
public string PurchaseRemark { get; set; }
/// <summary>
/// 来源Sku
/// </summary>
public string SourceSku { get; set; }
/// <summary>
/// 来源店铺名
/// </summary>

505
doc/.back_bbwyB端库/bbwyB端库-backup-2023514100221.pdma.json → doc/.back_bbwyB端库/bbwyB端库-backup-2023517184403.pdma.json

@ -4,7 +4,7 @@
"avatar": "",
"version": "4.5.1",
"createdTime": "2023-5-12 20:56:05",
"updatedTime": "2023-5-14 09:51:29",
"updatedTime": "2023-5-17 18:43:55",
"dbConns": [],
"profile": {
"default": {
@ -3678,6 +3678,23 @@
"attr9": "",
"id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA",
"extProps": {}
},
{
"defKey": "BelongSkuId",
"defName": "来源Sku",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "1A0C9CCD-B348-4916-83C2-D02754D94E1D"
}
],
"indexes": [
@ -3831,7 +3848,8 @@
"hideInGraph": true
}
],
"correlations": []
"correlations": [],
"notes": {}
},
{
"id": "474E5807-5650-43BD-8C5C-E16F36D58F85",
@ -5113,7 +5131,7 @@
"fields": [
{
"defKey": "Id",
"defName": "",
"defName": "采购Sku订单Id(来自采购平台)",
"comment": "",
"type": "bigint",
"len": "",
@ -5248,9 +5266,238 @@
"id": "329B45D7-BCE9-4895-B52D-C953E95DB4B2"
},
{
"defKey": "PurchaseSkuOrderId",
"defName": "采购Sku订单Id",
"comment": "1688 OrderEntryId",
"defKey": "CreateTime",
"defName": "",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"id": "FB279AC5-DB2B-498B-9DC9-5EE05BCED570"
}
],
"correlations": [],
"indexes": []
},
{
"id": "1ED24FEC-604E-4B36-9E51-17D572021F0C",
"env": {
"base": {
"nameSpace": "",
"codeRoot": ""
}
},
"defKey": "orderPurchaseRelationInfo",
"defName": "采购订单关系表",
"comment": "",
"properties": {
"partitioned by": "(date string)",
"row format delimited": "",
"fields terminated by ','": "",
"collection items terminated by '-'": "",
"map keys terminated by ':'": "",
"store as textfile;": ""
},
"nameTemplate": "{defKey}[{defName}]",
"notes": {},
"headers": [
{
"refKey": "hideInGraph",
"hideInGraph": true
},
{
"refKey": "defKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "defName",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "primaryKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "notNull",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "autoIncrement",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "domain",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "type",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "len",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "scale",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "comment",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "refDict",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "defaultValue",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "isStandard",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "uiHint",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "extProps",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr1",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr2",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr3",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr4",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr5",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr6",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr7",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr8",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr9",
"freeze": false,
"hideInGraph": true
}
],
"fields": [
{
"defKey": "Id",
"defName": "主键",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": true,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"notes": {},
"attr1": "",
"attr2": "",
"attr3": "",
"attr4": "",
"attr5": "",
"attr6": "",
"attr7": "",
"attr8": "",
"attr9": "",
"id": "7B939B66-4149-4D8C-BCD3-E99B425C3327"
},
{
"defKey": "OrderId",
"defName": "订单Id",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "19E4CACC-5E58-4016-9654-FBDA15B17BE7"
},
{
"defKey": "PurchaseOrderId",
"defName": "采购单Id",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "55EB7910-E4F0-49A6-8A53-EB0167E5ED34"
},
{
"defKey": "PurchaseProductId",
"defName": "采购Spu",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
@ -5262,7 +5509,92 @@
"refDict": "",
"extProps": {},
"domain": "",
"id": "0910A21A-CFB1-4401-A2DA-47332E67EA6B"
"id": "3B0E5CF8-DBCF-447F-B49C-2096C0B2D402"
},
{
"defKey": "PurchaseSkuId",
"defName": "采购Sku",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "8024FAE2-F559-40AF-A1D6-D1725CF9E267"
},
{
"defKey": "PurchaseSpecId",
"defName": "采购Spec(1688)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "29B35FE1-220E-46A2-8636-BA833A60B4A0"
},
{
"defKey": "BelongSkuId",
"defName": "归属SkuId(拳探)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "5780904B-4B79-4357-A9CB-331DD828C920"
},
{
"defKey": "Quantity",
"defName": "采购数量",
"comment": "",
"type": "INT",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "4471FF5A-423F-453C-A31B-7F2B36433FE1"
},
{
"defKey": "SchemeId",
"defName": "采购方案Id",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "C4728627-12F6-4B95-8931-E32E8913C578"
},
{
"defKey": "CreateTime",
@ -5279,7 +5611,24 @@
"refDict": "",
"extProps": {},
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"id": "FB279AC5-DB2B-498B-9DC9-5EE05BCED570"
"id": "C76F8758-9EEC-4108-9F30-ECE489720FC8"
},
{
"defKey": "PruchaseOrderEntryId",
"defName": "采购Sku订单Id(来自采购平台)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "8B25DD45-6396-4F51-969D-EE6FA1CA8719"
}
],
"correlations": [],
@ -5535,6 +5884,46 @@
"relationType": "field",
"canvasData": {
"cells": [
{
"id": "bae79cdf-e627-427b-aa66-728f637effcb",
"shape": "table",
"position": {
"x": -260,
"y": -290
},
"count": 0,
"originKey": "AF1D8C00-44CE-478C-BBE6-013CF93AF22D"
},
{
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8",
"shape": "table",
"position": {
"x": 1690,
"y": -73.5
},
"count": 0,
"originKey": "474E5807-5650-43BD-8C5C-E16F36D58F85"
},
{
"id": "33443e42-a883-42ec-acc0-46cc1446218d",
"shape": "table",
"position": {
"x": 1690,
"y": 614
},
"count": 0,
"originKey": "1E65E858-7177-4B30-9B39-32A6D1CB104C"
},
{
"id": "129cac0b-4f1e-4d05-972f-73b2c710b6e0",
"shape": "table",
"position": {
"x": 1690,
"y": 388
},
"count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE"
},
{
"id": "c9cd6035-3abe-4d8f-8830-bc876fe240af",
"shape": "erdRelation",
@ -5558,9 +5947,6 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5580,9 +5966,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5608,9 +5991,6 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5630,9 +6010,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5658,45 +6035,12 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
}
}
},
{
"id": "bae79cdf-e627-427b-aa66-728f637effcb",
"shape": "table",
"position": {
"x": -260,
"y": -290
},
"count": 0,
"originKey": "AF1D8C00-44CE-478C-BBE6-013CF93AF22D"
},
{
"id": "9afa8d28-f5b8-4c34-8df4-b386c4dd32b9",
"shape": "table",
"position": {
"x": -250,
"y": 380
},
"count": 0,
"originKey": "93074B87-BE55-41BF-8358-B0E84C4E249A"
},
{
"id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table",
"position": {
"x": -260,
"y": 64.5
},
"count": 0,
"originKey": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E"
},
{
"id": "7771087b-7bda-4ec6-a831-c50dc06395e9",
"shape": "erdRelation",
@ -5710,9 +6054,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5720,44 +6061,54 @@
}
},
{
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8",
"id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
"shape": "table",
"position": {
"x": 1690,
"y": -73.5
"y": 83
},
"count": 0,
"originKey": "474E5807-5650-43BD-8C5C-E16F36D58F85"
"originKey": "03EA3614-C1F5-4909-96A0-0687EDEABD4B"
},
{
"id": "33443e42-a883-42ec-acc0-46cc1446218d",
"id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table",
"position": {
"x": 1690,
"y": 614
"x": -260,
"y": 64.5
},
"count": 0,
"originKey": "1E65E858-7177-4B30-9B39-32A6D1CB104C"
"originKey": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E"
},
{
"id": "129cac0b-4f1e-4d05-972f-73b2c710b6e0",
"id": "9afa8d28-f5b8-4c34-8df4-b386c4dd32b9",
"shape": "table",
"position": {
"x": 1690,
"y": 388
"x": -250,
"y": 380
},
"count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE"
"originKey": "93074B87-BE55-41BF-8358-B0E84C4E249A"
},
{
"id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
"id": "2c258cf1-71de-432b-835a-7fe52c849443",
"shape": "table",
"position": {
"x": 1690,
"y": 83
"x": 1100,
"y": -90
},
"count": 0,
"originKey": "03EA3614-C1F5-4909-96A0-0687EDEABD4B"
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214"
},
{
"id": "471ac35d-30de-48a3-8743-eec20f919eba",
"shape": "table",
"position": {
"x": 1100,
"y": 614
},
"count": 0,
"originKey": "1ED24FEC-604E-4B36-9E51-17D572021F0C"
},
{
"id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
@ -5784,20 +6135,10 @@
"shape": "table",
"position": {
"x": 1100,
"y": 349
"y": 342
},
"count": 0,
"originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4"
},
{
"id": "2c258cf1-71de-432b-835a-7fe52c849443",
"shape": "table",
"position": {
"x": 1100,
"y": -90
},
"count": 0,
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214"
}
]
},

573
doc/.back_bbwyB端库/bbwyB端库-backup-2023514095129.pdma.json → doc/.back_bbwyB端库/bbwyB端库-backup-2023517191218.pdma.json

@ -4,7 +4,7 @@
"avatar": "",
"version": "4.5.1",
"createdTime": "2023-5-12 20:56:05",
"updatedTime": "2023-5-13 01:45:49",
"updatedTime": "2023-5-17 18:44:03",
"dbConns": [],
"profile": {
"default": {
@ -1780,16 +1780,7 @@
"hideInGraph": true
}
],
"correlations": [
{
"myField": "144B14DF-B01B-4EF7-9163-24A3124BB808",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
]
"correlations": []
},
{
"id": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E",
@ -2143,16 +2134,7 @@
"hideInGraph": true
}
],
"correlations": [
{
"myField": "E9728883-C797-4973-82A6-58F0DD7306F7",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
]
"correlations": []
},
{
"id": "93074B87-BE55-41BF-8358-B0E84C4E249A",
@ -2838,16 +2820,7 @@
"hideInGraph": true
}
],
"correlations": [
{
"myField": "C972C40D-0C81-455D-8598-37DC80F7A538",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"correlations": [],
"notes": {}
},
{
@ -3358,16 +3331,7 @@
"hideInGraph": true
}
],
"correlations": [
{
"myField": "DD093BC7-0374-421D-A4B5-7D471C5444B2",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"correlations": [],
"notes": {}
},
{
@ -3714,6 +3678,23 @@
"attr9": "",
"id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA",
"extProps": {}
},
{
"defKey": "BelongSkuId",
"defName": "来源Sku",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "1A0C9CCD-B348-4916-83C2-D02754D94E1D"
}
],
"indexes": [
@ -3867,16 +3848,8 @@
"hideInGraph": true
}
],
"correlations": [
{
"myField": "2CE3E553-81E6-40B3-A711-98A8EBF41716",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
]
"correlations": [],
"notes": {}
},
{
"id": "474E5807-5650-43BD-8C5C-E16F36D58F85",
@ -5158,13 +5131,13 @@
"fields": [
{
"defKey": "Id",
"defName": "",
"defName": "采购Sku订单Id(来自采购平台)",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"primaryKey": true,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
@ -5293,9 +5266,204 @@
"id": "329B45D7-BCE9-4895-B52D-C953E95DB4B2"
},
{
"defKey": "PurchaseSkuOrderId",
"defName": "采购Sku订单Id",
"comment": "1688 OrderEntryId",
"defKey": "CreateTime",
"defName": "",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"id": "FB279AC5-DB2B-498B-9DC9-5EE05BCED570"
}
],
"correlations": [],
"indexes": []
},
{
"id": "1ED24FEC-604E-4B36-9E51-17D572021F0C",
"env": {
"base": {
"nameSpace": "",
"codeRoot": ""
}
},
"defKey": "orderPurchaseRelationInfo",
"defName": "采购订单关系表",
"comment": "",
"properties": {
"partitioned by": "(date string)",
"row format delimited": "",
"fields terminated by ','": "",
"collection items terminated by '-'": "",
"map keys terminated by ':'": "",
"store as textfile;": ""
},
"nameTemplate": "{defKey}[{defName}]",
"notes": {},
"headers": [
{
"refKey": "hideInGraph",
"hideInGraph": true
},
{
"refKey": "defKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "defName",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "primaryKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "notNull",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "autoIncrement",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "domain",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "type",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "len",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "scale",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "comment",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "refDict",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "defaultValue",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "isStandard",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "uiHint",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "extProps",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr1",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr2",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr3",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr4",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr5",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr6",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr7",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr8",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr9",
"freeze": false,
"hideInGraph": true
}
],
"fields": [
{
"defKey": "Id",
"defName": "主键",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": true,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"notes": {},
"attr1": "",
"attr2": "",
"attr3": "",
"attr4": "",
"attr5": "",
"attr6": "",
"attr7": "",
"attr8": "",
"attr9": "",
"id": "7B939B66-4149-4D8C-BCD3-E99B425C3327"
},
{
"defKey": "PruchaseOrderEntryId",
"defName": "采购Sku订单Id(来自采购平台)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
@ -5307,7 +5475,143 @@
"refDict": "",
"extProps": {},
"domain": "",
"id": "0910A21A-CFB1-4401-A2DA-47332E67EA6B"
"id": "8B25DD45-6396-4F51-969D-EE6FA1CA8719"
},
{
"defKey": "OrderId",
"defName": "订单Id",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "19E4CACC-5E58-4016-9654-FBDA15B17BE7"
},
{
"defKey": "PurchaseOrderId",
"defName": "采购单Id",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "55EB7910-E4F0-49A6-8A53-EB0167E5ED34"
},
{
"defKey": "PurchaseProductId",
"defName": "采购Spu",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "3B0E5CF8-DBCF-447F-B49C-2096C0B2D402"
},
{
"defKey": "PurchaseSkuId",
"defName": "采购Sku",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "8024FAE2-F559-40AF-A1D6-D1725CF9E267"
},
{
"defKey": "PurchaseSpecId",
"defName": "采购Spec(1688)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "29B35FE1-220E-46A2-8636-BA833A60B4A0"
},
{
"defKey": "BelongSkuId",
"defName": "归属SkuId(拳探)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "5780904B-4B79-4357-A9CB-331DD828C920"
},
{
"defKey": "Quantity",
"defName": "采购数量",
"comment": "",
"type": "INT",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "4471FF5A-423F-453C-A31B-7F2B36433FE1"
},
{
"defKey": "SchemeId",
"defName": "采购方案Id",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "C4728627-12F6-4B95-8931-E32E8913C578"
},
{
"defKey": "CreateTime",
@ -5324,19 +5628,10 @@
"refDict": "",
"extProps": {},
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"id": "FB279AC5-DB2B-498B-9DC9-5EE05BCED570"
}
],
"correlations": [
{
"myField": "1AC7EBFF-8FCC-40C9-A17B-2BACE1030CAB",
"refEntity": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214",
"refField": "36136AA8-299D-4616-8F98-7172BFB06DDB",
"myRows": "1",
"refRows": "n",
"innerType": ""
"id": "C76F8758-9EEC-4108-9F30-ECE489720FC8"
}
],
"correlations": [],
"indexes": []
}
],
@ -5589,6 +5884,46 @@
"relationType": "field",
"canvasData": {
"cells": [
{
"id": "bae79cdf-e627-427b-aa66-728f637effcb",
"shape": "table",
"position": {
"x": -260,
"y": -290
},
"count": 0,
"originKey": "AF1D8C00-44CE-478C-BBE6-013CF93AF22D"
},
{
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8",
"shape": "table",
"position": {
"x": 1690,
"y": -73.5
},
"count": 0,
"originKey": "474E5807-5650-43BD-8C5C-E16F36D58F85"
},
{
"id": "33443e42-a883-42ec-acc0-46cc1446218d",
"shape": "table",
"position": {
"x": 1690,
"y": 614
},
"count": 0,
"originKey": "1E65E858-7177-4B30-9B39-32A6D1CB104C"
},
{
"id": "129cac0b-4f1e-4d05-972f-73b2c710b6e0",
"shape": "table",
"position": {
"x": 1690,
"y": 388
},
"count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE"
},
{
"id": "c9cd6035-3abe-4d8f-8830-bc876fe240af",
"shape": "erdRelation",
@ -5612,9 +5947,6 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5634,9 +5966,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5662,9 +5991,6 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5684,9 +6010,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5712,45 +6035,12 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
}
}
},
{
"id": "bae79cdf-e627-427b-aa66-728f637effcb",
"shape": "table",
"position": {
"x": -260,
"y": -290
},
"count": 0,
"originKey": "AF1D8C00-44CE-478C-BBE6-013CF93AF22D"
},
{
"id": "9afa8d28-f5b8-4c34-8df4-b386c4dd32b9",
"shape": "table",
"position": {
"x": -250,
"y": 380
},
"count": 0,
"originKey": "93074B87-BE55-41BF-8358-B0E84C4E249A"
},
{
"id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table",
"position": {
"x": -260,
"y": 64.5
},
"count": 0,
"originKey": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E"
},
{
"id": "7771087b-7bda-4ec6-a831-c50dc06395e9",
"shape": "erdRelation",
@ -5764,9 +6054,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5774,44 +6061,54 @@
}
},
{
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8",
"id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
"shape": "table",
"position": {
"x": 1690,
"y": -73.5
"y": 83
},
"count": 0,
"originKey": "474E5807-5650-43BD-8C5C-E16F36D58F85"
"originKey": "03EA3614-C1F5-4909-96A0-0687EDEABD4B"
},
{
"id": "33443e42-a883-42ec-acc0-46cc1446218d",
"id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table",
"position": {
"x": 1690,
"y": 614
"x": -260,
"y": 64.5
},
"count": 0,
"originKey": "1E65E858-7177-4B30-9B39-32A6D1CB104C"
"originKey": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E"
},
{
"id": "129cac0b-4f1e-4d05-972f-73b2c710b6e0",
"id": "9afa8d28-f5b8-4c34-8df4-b386c4dd32b9",
"shape": "table",
"position": {
"x": 1690,
"y": 388
"x": -250,
"y": 380
},
"count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE"
"originKey": "93074B87-BE55-41BF-8358-B0E84C4E249A"
},
{
"id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
"id": "2c258cf1-71de-432b-835a-7fe52c849443",
"shape": "table",
"position": {
"x": 1690,
"y": 83
"x": 1100,
"y": -90
},
"count": 0,
"originKey": "03EA3614-C1F5-4909-96A0-0687EDEABD4B"
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214"
},
{
"id": "471ac35d-30de-48a3-8743-eec20f919eba",
"shape": "table",
"position": {
"x": 1100,
"y": 614
},
"count": 0,
"originKey": "1ED24FEC-604E-4B36-9E51-17D572021F0C"
},
{
"id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
@ -5838,20 +6135,10 @@
"shape": "table",
"position": {
"x": 1100,
"y": 349
"y": 342
},
"count": 0,
"originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4"
},
{
"id": "2c258cf1-71de-432b-835a-7fe52c849443",
"shape": "table",
"position": {
"x": 1100,
"y": -90
},
"count": 0,
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214"
}
]
},

594
doc/.back_bbwyB端库/bbwyB端库-backup-2023514100225.pdma.json → doc/.back_bbwyB端库/bbwyB端库-backup-2023517215051.pdma.json

@ -4,7 +4,7 @@
"avatar": "",
"version": "4.5.1",
"createdTime": "2023-5-12 20:56:05",
"updatedTime": "2023-5-14 10:02:21",
"updatedTime": "2023-5-17 19:12:18",
"dbConns": [],
"profile": {
"default": {
@ -1780,7 +1780,16 @@
"hideInGraph": true
}
],
"correlations": []
"correlations": [
{
"myField": "144B14DF-B01B-4EF7-9163-24A3124BB808",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
]
},
{
"id": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E",
@ -2134,7 +2143,16 @@
"hideInGraph": true
}
],
"correlations": []
"correlations": [
{
"myField": "E9728883-C797-4973-82A6-58F0DD7306F7",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
]
},
{
"id": "93074B87-BE55-41BF-8358-B0E84C4E249A",
@ -2820,7 +2838,16 @@
"hideInGraph": true
}
],
"correlations": [],
"correlations": [
{
"myField": "C972C40D-0C81-455D-8598-37DC80F7A538",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"notes": {}
},
{
@ -3331,7 +3358,16 @@
"hideInGraph": true
}
],
"correlations": [],
"correlations": [
{
"myField": "DD093BC7-0374-421D-A4B5-7D471C5444B2",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"notes": {}
},
{
@ -3678,6 +3714,23 @@
"attr9": "",
"id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA",
"extProps": {}
},
{
"defKey": "BelongSkuId",
"defName": "来源Sku",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "1A0C9CCD-B348-4916-83C2-D02754D94E1D"
}
],
"indexes": [
@ -3831,7 +3884,17 @@
"hideInGraph": true
}
],
"correlations": []
"correlations": [
{
"myField": "2CE3E553-81E6-40B3-A711-98A8EBF41716",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"notes": {}
},
{
"id": "474E5807-5650-43BD-8C5C-E16F36D58F85",
@ -5265,7 +5328,356 @@
"id": "FB279AC5-DB2B-498B-9DC9-5EE05BCED570"
}
],
"correlations": [],
"correlations": [
{
"myField": "1AC7EBFF-8FCC-40C9-A17B-2BACE1030CAB",
"refEntity": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214",
"refField": "36136AA8-299D-4616-8F98-7172BFB06DDB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"indexes": []
},
{
"id": "1ED24FEC-604E-4B36-9E51-17D572021F0C",
"env": {
"base": {
"nameSpace": "",
"codeRoot": ""
}
},
"defKey": "orderPurchaseRelationInfo",
"defName": "采购订单关系表",
"comment": "",
"properties": {
"partitioned by": "(date string)",
"row format delimited": "",
"fields terminated by ','": "",
"collection items terminated by '-'": "",
"map keys terminated by ':'": "",
"store as textfile;": ""
},
"nameTemplate": "{defKey}[{defName}]",
"notes": {},
"headers": [
{
"refKey": "hideInGraph",
"hideInGraph": true
},
{
"refKey": "defKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "defName",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "primaryKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "notNull",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "autoIncrement",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "domain",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "type",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "len",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "scale",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "comment",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "refDict",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "defaultValue",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "isStandard",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "uiHint",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "extProps",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr1",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr2",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr3",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr4",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr5",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr6",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr7",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr8",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr9",
"freeze": false,
"hideInGraph": true
}
],
"fields": [
{
"defKey": "Id",
"defName": "主键",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": true,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"notes": {},
"attr1": "",
"attr2": "",
"attr3": "",
"attr4": "",
"attr5": "",
"attr6": "",
"attr7": "",
"attr8": "",
"attr9": "",
"id": "7B939B66-4149-4D8C-BCD3-E99B425C3327"
},
{
"defKey": "OrderId",
"defName": "订单Id",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "19E4CACC-5E58-4016-9654-FBDA15B17BE7"
},
{
"defKey": "PurchaseOrderId",
"defName": "采购单Id",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "55EB7910-E4F0-49A6-8A53-EB0167E5ED34"
},
{
"defKey": "PurchaseProductId",
"defName": "采购Spu",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "3B0E5CF8-DBCF-447F-B49C-2096C0B2D402"
},
{
"defKey": "PurchaseSkuId",
"defName": "采购Sku",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "8024FAE2-F559-40AF-A1D6-D1725CF9E267"
},
{
"defKey": "PurchaseSpecId",
"defName": "采购Spec(1688)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "29B35FE1-220E-46A2-8636-BA833A60B4A0"
},
{
"defKey": "BelongSkuId",
"defName": "归属SkuId(拳探)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "5780904B-4B79-4357-A9CB-331DD828C920"
},
{
"defKey": "Quantity",
"defName": "采购数量",
"comment": "",
"type": "INT",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "4471FF5A-423F-453C-A31B-7F2B36433FE1"
},
{
"defKey": "SchemeId",
"defName": "采购方案Id",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "C4728627-12F6-4B95-8931-E32E8913C578"
},
{
"defKey": "CreateTime",
"defName": "",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"id": "C76F8758-9EEC-4108-9F30-ECE489720FC8"
}
],
"correlations": [
{
"myField": "8B25DD45-6396-4F51-969D-EE6FA1CA8719",
"refEntity": "EE319D46-61D9-47DB-80AD-AD97D460ACB4",
"refField": "667BC789-09BB-49B8-A7BF-0EBAEE7FC36C",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"indexes": []
}
],
@ -5518,6 +5930,46 @@
"relationType": "field",
"canvasData": {
"cells": [
{
"id": "bae79cdf-e627-427b-aa66-728f637effcb",
"shape": "table",
"position": {
"x": -260,
"y": -290
},
"count": 0,
"originKey": "AF1D8C00-44CE-478C-BBE6-013CF93AF22D"
},
{
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8",
"shape": "table",
"position": {
"x": 1690,
"y": -73.5
},
"count": 0,
"originKey": "474E5807-5650-43BD-8C5C-E16F36D58F85"
},
{
"id": "33443e42-a883-42ec-acc0-46cc1446218d",
"shape": "table",
"position": {
"x": 1690,
"y": 614
},
"count": 0,
"originKey": "1E65E858-7177-4B30-9B39-32A6D1CB104C"
},
{
"id": "129cac0b-4f1e-4d05-972f-73b2c710b6e0",
"shape": "table",
"position": {
"x": 1690,
"y": 388
},
"count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE"
},
{
"id": "c9cd6035-3abe-4d8f-8830-bc876fe240af",
"shape": "erdRelation",
@ -5541,9 +5993,6 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5563,9 +6012,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5591,9 +6037,6 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5613,9 +6056,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5641,45 +6081,12 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
}
}
},
{
"id": "bae79cdf-e627-427b-aa66-728f637effcb",
"shape": "table",
"position": {
"x": -260,
"y": -290
},
"count": 0,
"originKey": "AF1D8C00-44CE-478C-BBE6-013CF93AF22D"
},
{
"id": "9afa8d28-f5b8-4c34-8df4-b386c4dd32b9",
"shape": "table",
"position": {
"x": -250,
"y": 380
},
"count": 0,
"originKey": "93074B87-BE55-41BF-8358-B0E84C4E249A"
},
{
"id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table",
"position": {
"x": -260,
"y": 64.5
},
"count": 0,
"originKey": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E"
},
{
"id": "7771087b-7bda-4ec6-a831-c50dc06395e9",
"shape": "erdRelation",
@ -5693,9 +6100,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5703,34 +6107,34 @@
}
},
{
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8",
"id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table",
"position": {
"x": 1690,
"y": -73.5
"x": -260,
"y": 64.5
},
"count": 0,
"originKey": "474E5807-5650-43BD-8C5C-E16F36D58F85"
"originKey": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E"
},
{
"id": "33443e42-a883-42ec-acc0-46cc1446218d",
"id": "9afa8d28-f5b8-4c34-8df4-b386c4dd32b9",
"shape": "table",
"position": {
"x": 1690,
"y": 614
"x": -250,
"y": 380
},
"count": 0,
"originKey": "1E65E858-7177-4B30-9B39-32A6D1CB104C"
"originKey": "93074B87-BE55-41BF-8358-B0E84C4E249A"
},
{
"id": "129cac0b-4f1e-4d05-972f-73b2c710b6e0",
"id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
"shape": "table",
"position": {
"x": 1690,
"y": 388
"x": 390,
"y": -90
},
"count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE"
"originKey": "3A48F81A-49D5-423B-8A92-228615DCEA6F"
},
{
"id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
@ -5743,44 +6147,72 @@
"originKey": "03EA3614-C1F5-4909-96A0-0687EDEABD4B"
},
{
"id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
"id": "ff369484-e2eb-4af8-9b98-6fd2d9f202f9",
"shape": "table",
"position": {
"x": 390,
"y": -90
"x": 501,
"y": 587
},
"count": 0,
"originKey": "3A48F81A-49D5-423B-8A92-228615DCEA6F"
"originKey": "B0921F8C-064A-48FC-A028-C849BD1EAC09"
},
{
"id": "ff369484-e2eb-4af8-9b98-6fd2d9f202f9",
"id": "2c258cf1-71de-432b-835a-7fe52c849443",
"shape": "table",
"position": {
"x": 501,
"y": 587
"x": 1100,
"y": -90
},
"count": 0,
"originKey": "B0921F8C-064A-48FC-A028-C849BD1EAC09"
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214"
},
{
"id": "b968f678-c31b-4396-b761-dd3269ba6fb8",
"id": "21f63eec-82ac-4156-aa34-1ea862ff1eb5",
"shape": "erdRelation",
"source": {
"cell": "471ac35d-30de-48a3-8743-eec20f919eba",
"port": "8B25DD45-6396-4F51-969D-EE6FA1CA8719%in"
},
"target": {
"cell": "b968f678-c31b-4396-b761-dd3269ba6fb8",
"port": "667BC789-09BB-49B8-A7BF-0EBAEE7FC36C%in"
},
"relation": "1:n",
"vertices": [
{
"x": 980,
"y": 382
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
}
}
},
{
"id": "471ac35d-30de-48a3-8743-eec20f919eba",
"shape": "table",
"position": {
"x": 1100,
"y": 349
"y": 614
},
"count": 0,
"originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4"
"originKey": "1ED24FEC-604E-4B36-9E51-17D572021F0C"
},
{
"id": "2c258cf1-71de-432b-835a-7fe52c849443",
"id": "b968f678-c31b-4396-b761-dd3269ba6fb8",
"shape": "table",
"position": {
"x": 1100,
"y": -90
"y": 342
},
"count": 0,
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214"
"originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4"
}
]
},

541
doc/bbwyB端库.pdma.json

@ -4,7 +4,7 @@
"avatar": "",
"version": "4.5.1",
"createdTime": "2023-5-12 20:56:05",
"updatedTime": "2023-5-14 10:02:25",
"updatedTime": "2023-5-17 21:50:51",
"dbConns": [],
"profile": {
"default": {
@ -1780,7 +1780,16 @@
"hideInGraph": true
}
],
"correlations": []
"correlations": [
{
"myField": "144B14DF-B01B-4EF7-9163-24A3124BB808",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
]
},
{
"id": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E",
@ -2134,7 +2143,16 @@
"hideInGraph": true
}
],
"correlations": []
"correlations": [
{
"myField": "E9728883-C797-4973-82A6-58F0DD7306F7",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
]
},
{
"id": "93074B87-BE55-41BF-8358-B0E84C4E249A",
@ -2820,7 +2838,16 @@
"hideInGraph": true
}
],
"correlations": [],
"correlations": [
{
"myField": "C972C40D-0C81-455D-8598-37DC80F7A538",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"notes": {}
},
{
@ -3331,7 +3358,16 @@
"hideInGraph": true
}
],
"correlations": [],
"correlations": [
{
"myField": "DD093BC7-0374-421D-A4B5-7D471C5444B2",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"notes": {}
},
{
@ -3678,6 +3714,23 @@
"attr9": "",
"id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA",
"extProps": {}
},
{
"defKey": "BelongSkuId",
"defName": "来源Sku",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "1A0C9CCD-B348-4916-83C2-D02754D94E1D"
}
],
"indexes": [
@ -3831,7 +3884,17 @@
"hideInGraph": true
}
],
"correlations": []
"correlations": [
{
"myField": "2CE3E553-81E6-40B3-A711-98A8EBF41716",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"notes": {}
},
{
"id": "474E5807-5650-43BD-8C5C-E16F36D58F85",
@ -5265,6 +5328,346 @@
"id": "FB279AC5-DB2B-498B-9DC9-5EE05BCED570"
}
],
"correlations": [
{
"myField": "1AC7EBFF-8FCC-40C9-A17B-2BACE1030CAB",
"refEntity": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214",
"refField": "36136AA8-299D-4616-8F98-7172BFB06DDB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
],
"indexes": []
},
{
"id": "1ED24FEC-604E-4B36-9E51-17D572021F0C",
"env": {
"base": {
"nameSpace": "",
"codeRoot": ""
}
},
"defKey": "orderPurchaseRelationInfo",
"defName": "采购订单关系表",
"comment": "",
"properties": {
"partitioned by": "(date string)",
"row format delimited": "",
"fields terminated by ','": "",
"collection items terminated by '-'": "",
"map keys terminated by ':'": "",
"store as textfile;": ""
},
"nameTemplate": "{defKey}[{defName}]",
"notes": {},
"headers": [
{
"refKey": "hideInGraph",
"hideInGraph": true
},
{
"refKey": "defKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "defName",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "primaryKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "notNull",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "autoIncrement",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "domain",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "type",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "len",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "scale",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "comment",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "refDict",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "defaultValue",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "isStandard",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "uiHint",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "extProps",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr1",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr2",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr3",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr4",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr5",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr6",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr7",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr8",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr9",
"freeze": false,
"hideInGraph": true
}
],
"fields": [
{
"defKey": "Id",
"defName": "主键",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": true,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"notes": {},
"attr1": "",
"attr2": "",
"attr3": "",
"attr4": "",
"attr5": "",
"attr6": "",
"attr7": "",
"attr8": "",
"attr9": "",
"id": "7B939B66-4149-4D8C-BCD3-E99B425C3327"
},
{
"defKey": "OrderId",
"defName": "订单Id",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "19E4CACC-5E58-4016-9654-FBDA15B17BE7"
},
{
"defKey": "PurchaseOrderId",
"defName": "采购单Id",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "55EB7910-E4F0-49A6-8A53-EB0167E5ED34"
},
{
"defKey": "PurchaseProductId",
"defName": "采购Spu",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "3B0E5CF8-DBCF-447F-B49C-2096C0B2D402"
},
{
"defKey": "PurchaseSkuId",
"defName": "采购Sku",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "8024FAE2-F559-40AF-A1D6-D1725CF9E267"
},
{
"defKey": "PurchaseSpecId",
"defName": "采购Spec(1688)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "29B35FE1-220E-46A2-8636-BA833A60B4A0"
},
{
"defKey": "BelongSkuId",
"defName": "归属SkuId(拳探)",
"comment": "",
"type": "VARCHAR",
"len": 100,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "5780904B-4B79-4357-A9CB-331DD828C920"
},
{
"defKey": "Quantity",
"defName": "采购数量",
"comment": "",
"type": "INT",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "4471FF5A-423F-453C-A31B-7F2B36433FE1"
},
{
"defKey": "SchemeId",
"defName": "采购方案Id",
"comment": "",
"type": "bigint",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "C4728627-12F6-4B95-8931-E32E8913C578"
},
{
"defKey": "CreateTime",
"defName": "",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"id": "C76F8758-9EEC-4108-9F30-ECE489720FC8"
}
],
"correlations": [],
"indexes": []
}
@ -5518,6 +5921,46 @@
"relationType": "field",
"canvasData": {
"cells": [
{
"id": "bae79cdf-e627-427b-aa66-728f637effcb",
"shape": "table",
"position": {
"x": -260,
"y": -290
},
"count": 0,
"originKey": "AF1D8C00-44CE-478C-BBE6-013CF93AF22D"
},
{
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8",
"shape": "table",
"position": {
"x": 1690,
"y": -73.5
},
"count": 0,
"originKey": "474E5807-5650-43BD-8C5C-E16F36D58F85"
},
{
"id": "33443e42-a883-42ec-acc0-46cc1446218d",
"shape": "table",
"position": {
"x": 1690,
"y": 614
},
"count": 0,
"originKey": "1E65E858-7177-4B30-9B39-32A6D1CB104C"
},
{
"id": "129cac0b-4f1e-4d05-972f-73b2c710b6e0",
"shape": "table",
"position": {
"x": 1690,
"y": 388
},
"count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE"
},
{
"id": "c9cd6035-3abe-4d8f-8830-bc876fe240af",
"shape": "erdRelation",
@ -5541,9 +5984,6 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5563,9 +6003,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5591,9 +6028,6 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5613,9 +6047,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5641,45 +6072,12 @@
}
],
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
}
}
},
{
"id": "bae79cdf-e627-427b-aa66-728f637effcb",
"shape": "table",
"position": {
"x": -260,
"y": -290
},
"count": 0,
"originKey": "AF1D8C00-44CE-478C-BBE6-013CF93AF22D"
},
{
"id": "9afa8d28-f5b8-4c34-8df4-b386c4dd32b9",
"shape": "table",
"position": {
"x": -250,
"y": 380
},
"count": 0,
"originKey": "93074B87-BE55-41BF-8358-B0E84C4E249A"
},
{
"id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table",
"position": {
"x": -260,
"y": 64.5
},
"count": 0,
"originKey": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E"
},
{
"id": "7771087b-7bda-4ec6-a831-c50dc06395e9",
"shape": "erdRelation",
@ -5693,9 +6091,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -5703,34 +6098,34 @@
}
},
{
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8",
"id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table",
"position": {
"x": 1690,
"y": -73.5
"x": -260,
"y": 64.5
},
"count": 0,
"originKey": "474E5807-5650-43BD-8C5C-E16F36D58F85"
"originKey": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E"
},
{
"id": "33443e42-a883-42ec-acc0-46cc1446218d",
"id": "9afa8d28-f5b8-4c34-8df4-b386c4dd32b9",
"shape": "table",
"position": {
"x": 1690,
"y": 614
"x": -250,
"y": 380
},
"count": 0,
"originKey": "1E65E858-7177-4B30-9B39-32A6D1CB104C"
"originKey": "93074B87-BE55-41BF-8358-B0E84C4E249A"
},
{
"id": "129cac0b-4f1e-4d05-972f-73b2c710b6e0",
"id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
"shape": "table",
"position": {
"x": 1690,
"y": 388
"x": 390,
"y": -90
},
"count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE"
"originKey": "3A48F81A-49D5-423B-8A92-228615DCEA6F"
},
{
"id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
@ -5743,14 +6138,14 @@
"originKey": "03EA3614-C1F5-4909-96A0-0687EDEABD4B"
},
{
"id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
"id": "2c258cf1-71de-432b-835a-7fe52c849443",
"shape": "table",
"position": {
"x": 390,
"x": 1100,
"y": -90
},
"count": 0,
"originKey": "3A48F81A-49D5-423B-8A92-228615DCEA6F"
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214"
},
{
"id": "ff369484-e2eb-4af8-9b98-6fd2d9f202f9",
@ -5767,20 +6162,20 @@
"shape": "table",
"position": {
"x": 1100,
"y": 349
"y": 342
},
"count": 0,
"originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4"
},
{
"id": "2c258cf1-71de-432b-835a-7fe52c849443",
"id": "471ac35d-30de-48a3-8743-eec20f919eba",
"shape": "table",
"position": {
"x": 1100,
"y": -90
"y": 614
},
"count": 0,
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214"
"originKey": "1ED24FEC-604E-4B36-9E51-17D572021F0C"
}
]
},

Loading…
Cancel
Save