From 7a3a4f8012a72f80d8dd62064a76655c803da864 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 29 五月 2024 12:42:45 +0800 Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/baifenbaishop --- 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