From 71e821ab5e6b3014fac9b691d6957bcc09704b70 Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期三, 29 五月 2024 11:45:04 +0800
Subject: [PATCH] 修改定制封面逻辑

---
 CoreCms.Net.Web.Admin/Controllers/baifenbingfa/CoreCmsProductsController.cs |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/CoreCms.Net.Web.Admin/Controllers/baifenbingfa/CoreCmsProductsController.cs b/CoreCms.Net.Web.Admin/Controllers/baifenbingfa/CoreCmsProductsController.cs
index 1b97ef6..c12cfe2 100644
--- a/CoreCms.Net.Web.Admin/Controllers/baifenbingfa/CoreCmsProductsController.cs
+++ b/CoreCms.Net.Web.Admin/Controllers/baifenbingfa/CoreCmsProductsController.cs
@@ -245,6 +245,17 @@
             {
                 where = where.And(p => p.distributionCutMoney == distributionCutMoney);
             }
+
+            //鏄惁鍒犻櫎 bit
+            var isCustomizable = Request.Form["isCustomizable"].FirstOrDefault();
+            if (!string.IsNullOrEmpty(isCustomizable) && isCustomizable.ToLowerInvariant() == "true")
+            {
+                where = where.And(p => p.isCustomizable == true);
+            }
+            else if (!string.IsNullOrEmpty(isCustomizable) && isCustomizable.ToLowerInvariant() == "false")
+            {
+                where = where.And(p => p.isCustomizable == false);
+            }
             //鑾峰彇鏁版嵁
             var list = await _CoreCmsProductsServices.QueryDetailPageAsync(where, orderEx, orderBy, pageCurrent, pageSize, true);
             //杩斿洖鏁版嵁
@@ -344,6 +355,8 @@
         [Description("缂栬緫鎻愪氦")]
         public async Task<AdminUiCallBack> DoEdit([FromBody]CoreCmsProducts entity)
         {
+            
+           
             var jm = await _CoreCmsProductsServices.UpdateAsync(entity);
             return jm;
         }

--
Gitblit v1.9.1