From 18a8fab394f764e5b30c48c8e0d6887ef7d44cbf Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 29 十月 2024 14:22:49 +0800
Subject: [PATCH] 取消拆单
---
CoreCms.Net.Model/Entities/Good/CoreCmsGoodsPartial.cs | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/CoreCms.Net.Model/Entities/Good/CoreCmsGoodsPartial.cs b/CoreCms.Net.Model/Entities/Good/CoreCmsGoodsPartial.cs
index f03f6c9..36c646c 100644
--- a/CoreCms.Net.Model/Entities/Good/CoreCmsGoodsPartial.cs
+++ b/CoreCms.Net.Model/Entities/Good/CoreCmsGoodsPartial.cs
@@ -108,7 +108,10 @@
/// 鍏宠仈SKU
/// </summary>
[SugarColumn(IsIgnore = true)]
- public List<CoreCmsProducts> sku { get; set; } = new();
+ [Navigate(NavigateType.OneToMany, nameof(CoreCmsProducts.goodsId))]
+ public List<CoreCmsProducts> sku { get; set; }
+
+
/// <summary>
/// 鍟嗗搧瑙勬牸
@@ -243,5 +246,27 @@
[SugarColumn(IsIgnore = true)]
public bool isCustomizable { get; set; }= false;
+
+
+
+
+ /// <summary>
+ /// 鍟嗗搧鍒嗙被
+ /// </summary>
+ [Navigate(NavigateType.OneToOne, nameof(goodsCategoryId))]
+ public CoreCmsGoodsCategory? goodsCategory { get; set; }
+
+ /// <summary>
+ /// 鍟嗗搧鍝佺墝
+ /// </summary>
+ [Navigate(NavigateType.OneToOne, nameof(brandId))]
+ public CoreCmsBrand? goodsBrand { get; set; }
+
+ /// <summary>
+ /// 鎵╁睍鍒嗙被
+ /// </summary>
+ [Navigate(NavigateType.OneToMany, nameof(CoreCmsGoodsCategoryExtend.goodsId), nameof(id))]
+ public List<CoreCmsGoodsCategoryExtend>? CategoryExtendIds { get; set; }
+
}
}
\ No newline at end of file
--
Gitblit v1.9.1