Browse Source

采购时保存采购关系

updatebug
shanji 2 years ago
parent
commit
e98deb9ff5
  1. 1
      BBWYB.Client/BBWYB.Client.csproj
  2. 9
      BBWYB.Client/ViewModels/MainViewModel.cs
  3. 39
      BBWYB.Client/Views/MainWindow.xaml.cs
  4. 14
      BBWYB.Client/Views/WebB/WebB.xaml
  5. 18
      BBWYB.Client/Views/WebB/WebB.xaml.cs
  6. 69
      BBWYB.Client/WebView2Manager.cs
  7. 21
      BBWYB.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs
  8. 69
      BBWYB.Server.Model/Db/Order/OrderPurchaseRelationinfo.cs
  9. 505
      doc/.back_bbwyB端库/bbwyB端库-backup-2023517184355.pdma.json
  10. 573
      doc/.back_bbwyB端库/bbwyB端库-backup-2023517184403.pdma.json
  11. 510
      doc/.back_bbwyB端库/bbwyB端库-backup-2023517191218.pdma.json
  12. 594
      doc/bbwyB端库.pdma.json

1
BBWYB.Client/BBWYB.Client.csproj

@ -33,6 +33,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.2-mauipre.1.22102.15" /> <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.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.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="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.39" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup> </ItemGroup>

9
BBWYB.Client/ViewModels/MainViewModel.cs

@ -102,6 +102,15 @@ namespace BBWYB.Client.ViewModels
} }
}); });
MenuList.Add(new MenuModel() 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 = "设置", Name = "设置",
ChildList = new List<MenuModel>() ChildList = new List<MenuModel>()

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

@ -1,6 +1,8 @@
using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging;
using Microsoft.Web.WebView2.Core;
using SJ.Controls; using SJ.Controls;
using System; using System;
using System.Threading;
using System.Windows; using System.Windows;
namespace BBWYB.Client.Views namespace BBWYB.Client.Views
@ -20,7 +22,28 @@ namespace BBWYB.Client.Views
private void MainWindow_Loaded(object sender, RoutedEventArgs e) 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) private void frame_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
@ -28,5 +51,19 @@ namespace BBWYB.Client.Views
if (frame.CanGoBack) if (frame.CanGoBack)
frame.RemoveBackEntry(); frame.RemoveBackEntry();
} }
private bool CheckWebview2Runtime()
{
bool isInstall = false;
try
{
isInstall = !string.IsNullOrEmpty(CoreWebView2Environment.GetAvailableBrowserVersionString());
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return isInstall;
}
} }
} }

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 { }
}
}
}
}

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

@ -177,6 +177,7 @@ namespace BBWYB.Server.Business
List<OrderPurchaseInfo> insertOrderPurchaseInfos = new List<OrderPurchaseInfo>(); List<OrderPurchaseInfo> insertOrderPurchaseInfos = new List<OrderPurchaseInfo>();
List<OrderPurchaseSkuInfo> insertOrderPurchaseSkuInfos = new List<OrderPurchaseSkuInfo>(); List<OrderPurchaseSkuInfo> insertOrderPurchaseSkuInfos = new List<OrderPurchaseSkuInfo>();
List<long> updatePurchaseTimeSchemeIdList = new List<long>(); List<long> updatePurchaseTimeSchemeIdList = new List<long>();
List<OrderPurchaseRelationInfo> insertOrderPurchaseRelationInfoList = new List<OrderPurchaseRelationInfo>();
IInsert<OrderCost> insertOrderCost = null; IInsert<OrderCost> insertOrderCost = null;
IUpdate<OrderCost> updateOrderCost = null; IUpdate<OrderCost> updateOrderCost = null;
var totalPurchaseAmount = 0M; var totalPurchaseAmount = 0M;
@ -225,6 +226,23 @@ namespace BBWYB.Server.Business
OrderId = createOrderResponse.OrderId 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; totalPurchaseAmount += purchaseOrderSimpleInfo.TotalAmount;
var belongSkuGroups = cargoParamGroup.CargoParamList.GroupBy(p => p.BelongSkuId); var belongSkuGroups = cargoParamGroup.CargoParamList.GroupBy(p => p.BelongSkuId);
@ -337,6 +355,7 @@ namespace BBWYB.Server.Business
fsql.Insert(insertOrderCostDetails).ExecuteAffrows(); fsql.Insert(insertOrderCostDetails).ExecuteAffrows();
fsql.Insert(insertOrderPurchaseInfos).ExecuteAffrows(); fsql.Insert(insertOrderPurchaseInfos).ExecuteAffrows();
fsql.Insert(insertOrderPurchaseSkuInfos).ExecuteAffrows(); fsql.Insert(insertOrderPurchaseSkuInfos).ExecuteAffrows();
fsql.Insert(insertOrderPurchaseRelationInfoList).ExecuteAffrows();
updateOrderCost?.ExecuteAffrows(); updateOrderCost?.ExecuteAffrows();
insertOrderCost?.ExecuteAffrows(); insertOrderCost?.ExecuteAffrows();
if (updatePurchaseTimeSchemeIdList.Count() > 0) if (updatePurchaseTimeSchemeIdList.Count() > 0)
@ -655,7 +674,7 @@ namespace BBWYB.Server.Business
}); });
totalPurchaseAmount += purchaseOrderSimpleInfo.TotalAmount; totalPurchaseAmount += purchaseOrderSimpleInfo.TotalAmount;
} }
//var oldTotalAmount = dbOrderCost.PurchaseAmount; //var oldTotalAmount = dbOrderCost.PurchaseAmount;
//var oldProductAmount = dbOrderCostDetailList.Sum(ocd => ocd.SkuAmount); //var oldProductAmount = dbOrderCostDetailList.Sum(ocd => ocd.SkuAmount);

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; }
}
}

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

@ -4,7 +4,7 @@
"avatar": "", "avatar": "",
"version": "4.5.1", "version": "4.5.1",
"createdTime": "2023-5-12 20:56:05", "createdTime": "2023-5-12 20:56:05",
"updatedTime": "2023-5-14 09:51:29", "updatedTime": "2023-5-17 18:43:53",
"dbConns": [], "dbConns": [],
"profile": { "profile": {
"default": { "default": {
@ -3678,6 +3678,23 @@
"attr9": "", "attr9": "",
"id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA", "id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA",
"extProps": {} "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": [ "indexes": [
@ -3831,7 +3848,8 @@
"hideInGraph": true "hideInGraph": true
} }
], ],
"correlations": [] "correlations": [],
"notes": {}
}, },
{ {
"id": "474E5807-5650-43BD-8C5C-E16F36D58F85", "id": "474E5807-5650-43BD-8C5C-E16F36D58F85",
@ -5113,7 +5131,7 @@
"fields": [ "fields": [
{ {
"defKey": "Id", "defKey": "Id",
"defName": "", "defName": "采购Sku订单Id(来自采购平台)",
"comment": "", "comment": "",
"type": "bigint", "type": "bigint",
"len": "", "len": "",
@ -5248,9 +5266,238 @@
"id": "329B45D7-BCE9-4895-B52D-C953E95DB4B2" "id": "329B45D7-BCE9-4895-B52D-C953E95DB4B2"
}, },
{ {
"defKey": "PurchaseSkuOrderId", "defKey": "CreateTime",
"defName": "采购Sku订单Id", "defName": "",
"comment": "1688 OrderEntryId", "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", "type": "VARCHAR",
"len": 100, "len": 100,
"scale": "", "scale": "",
@ -5262,7 +5509,92 @@
"refDict": "", "refDict": "",
"extProps": {}, "extProps": {},
"domain": "", "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", "defKey": "CreateTime",
@ -5279,7 +5611,24 @@
"refDict": "", "refDict": "",
"extProps": {}, "extProps": {},
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", "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": [], "correlations": [],
@ -5535,6 +5884,46 @@
"relationType": "field", "relationType": "field",
"canvasData": { "canvasData": {
"cells": [ "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", "id": "c9cd6035-3abe-4d8f-8830-bc876fe240af",
"shape": "erdRelation", "shape": "erdRelation",
@ -5558,9 +5947,6 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5580,9 +5966,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5608,9 +5991,6 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5630,9 +6010,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5658,45 +6035,12 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "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", "id": "7771087b-7bda-4ec6-a831-c50dc06395e9",
"shape": "erdRelation", "shape": "erdRelation",
@ -5710,9 +6054,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5720,44 +6061,54 @@
} }
}, },
{ {
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8", "id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
"shape": "table", "shape": "table",
"position": { "position": {
"x": 1690, "x": 1690,
"y": -73.5 "y": 83
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": -260,
"y": 614 "y": 64.5
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": -250,
"y": 388 "y": 380
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": 1100,
"y": 83 "y": -90
}, },
"count": 0, "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", "id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
@ -5784,20 +6135,10 @@
"shape": "table", "shape": "table",
"position": { "position": {
"x": 1100, "x": 1100,
"y": 349 "y": 342
}, },
"count": 0, "count": 0,
"originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4" "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-2023517184403.pdma.json

@ -4,7 +4,7 @@
"avatar": "", "avatar": "",
"version": "4.5.1", "version": "4.5.1",
"createdTime": "2023-5-12 20:56:05", "createdTime": "2023-5-12 20:56:05",
"updatedTime": "2023-5-13 01:45:49", "updatedTime": "2023-5-17 18:43:55",
"dbConns": [], "dbConns": [],
"profile": { "profile": {
"default": { "default": {
@ -1780,16 +1780,7 @@
"hideInGraph": true "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", "id": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E",
@ -2143,16 +2134,7 @@
"hideInGraph": true "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", "id": "93074B87-BE55-41BF-8358-B0E84C4E249A",
@ -2838,16 +2820,7 @@
"hideInGraph": true "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": {} "notes": {}
}, },
{ {
@ -3358,16 +3331,7 @@
"hideInGraph": true "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": {} "notes": {}
}, },
{ {
@ -3714,6 +3678,23 @@
"attr9": "", "attr9": "",
"id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA", "id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA",
"extProps": {} "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": [ "indexes": [
@ -3867,16 +3848,8 @@
"hideInGraph": true "hideInGraph": true
} }
], ],
"correlations": [ "correlations": [],
{ "notes": {}
"myField": "2CE3E553-81E6-40B3-A711-98A8EBF41716",
"refEntity": "3A48F81A-49D5-423B-8A92-228615DCEA6F",
"refField": "31AF4355-53ED-42E2-AB7F-A8AC17D17DBB",
"myRows": "1",
"refRows": "n",
"innerType": ""
}
]
}, },
{ {
"id": "474E5807-5650-43BD-8C5C-E16F36D58F85", "id": "474E5807-5650-43BD-8C5C-E16F36D58F85",
@ -5158,13 +5131,13 @@
"fields": [ "fields": [
{ {
"defKey": "Id", "defKey": "Id",
"defName": "", "defName": "采购Sku订单Id(来自采购平台)",
"comment": "", "comment": "",
"type": "bigint", "type": "bigint",
"len": "", "len": "",
"scale": "", "scale": "",
"primaryKey": false, "primaryKey": true,
"notNull": false, "notNull": true,
"autoIncrement": false, "autoIncrement": false,
"defaultValue": "", "defaultValue": "",
"hideInGraph": false, "hideInGraph": false,
@ -5293,9 +5266,204 @@
"id": "329B45D7-BCE9-4895-B52D-C953E95DB4B2" "id": "329B45D7-BCE9-4895-B52D-C953E95DB4B2"
}, },
{ {
"defKey": "PurchaseSkuOrderId", "defKey": "CreateTime",
"defName": "采购Sku订单Id", "defName": "",
"comment": "1688 OrderEntryId", "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", "type": "VARCHAR",
"len": 100, "len": 100,
"scale": "", "scale": "",
@ -5307,7 +5475,126 @@
"refDict": "", "refDict": "",
"extProps": {}, "extProps": {},
"domain": "", "domain": "",
"id": "0910A21A-CFB1-4401-A2DA-47332E67EA6B" "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", "defKey": "CreateTime",
@ -5324,19 +5611,27 @@
"refDict": "", "refDict": "",
"extProps": {}, "extProps": {},
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"id": "FB279AC5-DB2B-498B-9DC9-5EE05BCED570" "id": "C76F8758-9EEC-4108-9F30-ECE489720FC8"
} },
], {
"correlations": [ "defKey": "PruchaseOrderEntryId",
{ "defName": "采购Sku订单Id(来自采购平台)",
"myField": "1AC7EBFF-8FCC-40C9-A17B-2BACE1030CAB", "comment": "",
"refEntity": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214", "type": "VARCHAR",
"refField": "36136AA8-299D-4616-8F98-7172BFB06DDB", "len": 100,
"myRows": "1", "scale": "",
"refRows": "n", "primaryKey": false,
"innerType": "" "notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "8B25DD45-6396-4F51-969D-EE6FA1CA8719"
} }
], ],
"correlations": [],
"indexes": [] "indexes": []
} }
], ],
@ -5589,6 +5884,46 @@
"relationType": "field", "relationType": "field",
"canvasData": { "canvasData": {
"cells": [ "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", "id": "c9cd6035-3abe-4d8f-8830-bc876fe240af",
"shape": "erdRelation", "shape": "erdRelation",
@ -5612,9 +5947,6 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5634,9 +5966,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5662,9 +5991,6 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5684,9 +6010,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5712,45 +6035,12 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "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", "id": "7771087b-7bda-4ec6-a831-c50dc06395e9",
"shape": "erdRelation", "shape": "erdRelation",
@ -5764,9 +6054,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5774,44 +6061,54 @@
} }
}, },
{ {
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8", "id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
"shape": "table", "shape": "table",
"position": { "position": {
"x": 1690, "x": 1690,
"y": -73.5 "y": 83
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": -260,
"y": 614 "y": 64.5
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": -250,
"y": 388 "y": 380
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": 1100,
"y": 83 "y": -90
}, },
"count": 0, "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", "id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
@ -5838,20 +6135,10 @@
"shape": "table", "shape": "table",
"position": { "position": {
"x": 1100, "x": 1100,
"y": 349 "y": 342
}, },
"count": 0, "count": 0,
"originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4" "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"
} }
] ]
}, },

510
doc/.back_bbwyB端库/bbwyB端库-backup-2023514100225.pdma.json → doc/.back_bbwyB端库/bbwyB端库-backup-2023517191218.pdma.json

@ -4,7 +4,7 @@
"avatar": "", "avatar": "",
"version": "4.5.1", "version": "4.5.1",
"createdTime": "2023-5-12 20:56:05", "createdTime": "2023-5-12 20:56:05",
"updatedTime": "2023-5-14 10:02:21", "updatedTime": "2023-5-17 18:44:03",
"dbConns": [], "dbConns": [],
"profile": { "profile": {
"default": { "default": {
@ -3678,6 +3678,23 @@
"attr9": "", "attr9": "",
"id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA", "id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA",
"extProps": {} "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": [ "indexes": [
@ -3831,7 +3848,8 @@
"hideInGraph": true "hideInGraph": true
} }
], ],
"correlations": [] "correlations": [],
"notes": {}
}, },
{ {
"id": "474E5807-5650-43BD-8C5C-E16F36D58F85", "id": "474E5807-5650-43BD-8C5C-E16F36D58F85",
@ -5267,6 +5285,354 @@
], ],
"correlations": [], "correlations": [],
"indexes": [] "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": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"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",
"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": []
} }
], ],
"views": [], "views": [],
@ -5518,6 +5884,46 @@
"relationType": "field", "relationType": "field",
"canvasData": { "canvasData": {
"cells": [ "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", "id": "c9cd6035-3abe-4d8f-8830-bc876fe240af",
"shape": "erdRelation", "shape": "erdRelation",
@ -5541,9 +5947,6 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5563,9 +5966,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5591,9 +5991,6 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5613,9 +6010,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5641,45 +6035,12 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "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", "id": "7771087b-7bda-4ec6-a831-c50dc06395e9",
"shape": "erdRelation", "shape": "erdRelation",
@ -5693,9 +6054,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5703,44 +6061,54 @@
} }
}, },
{ {
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8", "id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
"shape": "table", "shape": "table",
"position": { "position": {
"x": 1690, "x": 1690,
"y": -73.5 "y": 83
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": -260,
"y": 614 "y": 64.5
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": -250,
"y": 388 "y": 380
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": 1100,
"y": 83 "y": -90
}, },
"count": 0, "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", "id": "414ef58f-57e8-4362-971a-85af3ea9a44f",
@ -5767,20 +6135,10 @@
"shape": "table", "shape": "table",
"position": { "position": {
"x": 1100, "x": 1100,
"y": 349 "y": 342
}, },
"count": 0, "count": 0,
"originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4" "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/bbwyB端库.pdma.json

@ -4,7 +4,7 @@
"avatar": "", "avatar": "",
"version": "4.5.1", "version": "4.5.1",
"createdTime": "2023-5-12 20:56:05", "createdTime": "2023-5-12 20:56:05",
"updatedTime": "2023-5-14 10:02:25", "updatedTime": "2023-5-17 19:12:18",
"dbConns": [], "dbConns": [],
"profile": { "profile": {
"default": { "default": {
@ -1780,7 +1780,16 @@
"hideInGraph": true "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", "id": "C52E23C2-6CC5-4404-92A5-7CCE77E8AB1E",
@ -2134,7 +2143,16 @@
"hideInGraph": true "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", "id": "93074B87-BE55-41BF-8358-B0E84C4E249A",
@ -2820,7 +2838,16 @@
"hideInGraph": true "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": {} "notes": {}
}, },
{ {
@ -3331,7 +3358,16 @@
"hideInGraph": true "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": {} "notes": {}
}, },
{ {
@ -3678,6 +3714,23 @@
"attr9": "", "attr9": "",
"id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA", "id": "1A165F66-FE0D-4A2E-AF71-EE7F6EBDDCFA",
"extProps": {} "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": [ "indexes": [
@ -3831,7 +3884,17 @@
"hideInGraph": true "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", "id": "474E5807-5650-43BD-8C5C-E16F36D58F85",
@ -5265,7 +5328,356 @@
"id": "FB279AC5-DB2B-498B-9DC9-5EE05BCED570" "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": [] "indexes": []
} }
], ],
@ -5518,6 +5930,46 @@
"relationType": "field", "relationType": "field",
"canvasData": { "canvasData": {
"cells": [ "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", "id": "c9cd6035-3abe-4d8f-8830-bc876fe240af",
"shape": "erdRelation", "shape": "erdRelation",
@ -5541,9 +5993,6 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5563,9 +6012,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5591,9 +6037,6 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5613,9 +6056,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5641,45 +6081,12 @@
} }
], ],
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "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", "id": "7771087b-7bda-4ec6-a831-c50dc06395e9",
"shape": "erdRelation", "shape": "erdRelation",
@ -5693,9 +6100,6 @@
}, },
"relation": "1:n", "relation": "1:n",
"fillColor": "#ACDAFC", "fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": { "attrs": {
"line": { "line": {
"strokeDasharray": "" "strokeDasharray": ""
@ -5703,34 +6107,34 @@
} }
}, },
{ {
"id": "34567615-fdb5-4d1d-b6ee-a8b61faa04b8", "id": "53bec785-6ee3-497e-bfa6-0318b99147db",
"shape": "table", "shape": "table",
"position": { "position": {
"x": 1690, "x": -260,
"y": -73.5 "y": 64.5
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": -250,
"y": 614 "y": 380
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1690, "x": 390,
"y": 388 "y": -90
}, },
"count": 0, "count": 0,
"originKey": "4CDAE2F8-5F79-4A75-8F5A-27226FDD1ACE" "originKey": "3A48F81A-49D5-423B-8A92-228615DCEA6F"
}, },
{ {
"id": "6593da18-d55c-47e3-bb4c-cf75fc56702a", "id": "6593da18-d55c-47e3-bb4c-cf75fc56702a",
@ -5743,44 +6147,72 @@
"originKey": "03EA3614-C1F5-4909-96A0-0687EDEABD4B" "originKey": "03EA3614-C1F5-4909-96A0-0687EDEABD4B"
}, },
{ {
"id": "414ef58f-57e8-4362-971a-85af3ea9a44f", "id": "ff369484-e2eb-4af8-9b98-6fd2d9f202f9",
"shape": "table", "shape": "table",
"position": { "position": {
"x": 390, "x": 501,
"y": -90 "y": 587
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 501, "x": 1100,
"y": 587 "y": -90
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1100, "x": 1100,
"y": 349 "y": 614
}, },
"count": 0, "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", "shape": "table",
"position": { "position": {
"x": 1100, "x": 1100,
"y": -90 "y": 342
}, },
"count": 0, "count": 0,
"originKey": "7DC43BAC-F8BC-4423-96C5-4C770CCD6214" "originKey": "EE319D46-61D9-47DB-80AD-AD97D460ACB4"
} }
] ]
}, },

Loading…
Cancel
Save