移动系统liao
2024-05-29 f8ed0a1ee63cad489c67caaf76e9527a06da2947
no message
2个文件已修改
30 ■■■■ 已修改文件
CoreCms.Net.Repository/baifenbingfa/CoreCmsProductsRepository.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CoreCms.Net.Web.Admin/Controllers/baifenbingfa/CoreCmsProductsController.cs 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CoreCms.Net.Repository/baifenbingfa/CoreCmsProductsRepository.cs
@@ -288,7 +288,7 @@
                        spesDesc = product.spesDesc,
                        isDefalut = product.isDefalut,
                        images = product.images,
                        isDel = good.isDel,
                        isDel = good.isDel| product.isDel,
                        name = good.name,
                        bn = good.bn,
                        isMarketable = good.isMarketable,
@@ -331,7 +331,7 @@
                        spesDesc = product.spesDesc,
                        isDefalut = product.isDefalut,
                        images = product.images,
                        isDel = good.isDel,
                        isDel = good.isDel  | product.isDel ,
                        name = good.name,
                        bn = good.bn,
                        isMarketable = good.isMarketable,
@@ -394,7 +394,8 @@
                        spesDesc = product.spesDesc,
                        isDefalut = product.isDefalut,
                        images = product.images,
                        isDel = good.isDel,
                        isDel = good.isDel | product.isDel,
                        name = good.name,
                        bn = good.bn,
                        isMarketable = good.isMarketable,
@@ -437,7 +438,7 @@
                        spesDesc = product.spesDesc,
                        isDefalut = product.isDefalut,
                        images = product.images,
                        isDel = good.isDel,
                        isDel = good.isDel | product.isDel,
                        name = good.name,
                        bn = good.bn,
                        isMarketable = good.isMarketable,
CoreCms.Net.Web.Admin/Controllers/baifenbingfa/CoreCmsProductsController.cs
@@ -217,16 +217,17 @@
            {
                where = where.And(p => p.images.Contains(images));
            }
            //是否删除 bit
            var isDel = Request.Form["isDel"].FirstOrDefault();
            if (!string.IsNullOrEmpty(isDel) && isDel.ToLowerInvariant() == "true")
            {
                where = where.And(p => p.isDel == true);
            }
            else if (!string.IsNullOrEmpty(isDel) && isDel.ToLowerInvariant() == "false")
            {
            ////是否删除 bit
            //var isDel = Request.Form["isDel"].FirstOrDefault();
   //         if (!string.IsNullOrEmpty(isDel) && isDel.ToLowerInvariant() == "true")
   //         {
   //             where = where.And(p => p.isDel == true);
   //         }
   //         else if (!string.IsNullOrEmpty(isDel) && isDel.ToLowerInvariant() == "false")
   //         {
   //             where = where.And(p => p.isDel == false);
   //         }
                where = where.And(p => p.isDel == false);
            }
            // decimal
            var distributionPrice = Request.Form["distributionPrice"].FirstOrDefault().ObjectToDecimal(0);
            if (distributionPrice > 0)
@@ -246,7 +247,7 @@
                where = where.And(p => p.distributionCutMoney == distributionCutMoney);
            }
            //是否删除 bit
            //是否定制 bit
            var isCustomizable = Request.Form["isCustomizable"].FirstOrDefault();
            if (!string.IsNullOrEmpty(isCustomizable) && isCustomizable.ToLowerInvariant() == "true")
            {