username@email.com
2024-12-20 ebd639c929bd5c05859b6b414787e3440cdcd4bc
CY_ECommercePlatform/CY.SQLDAL/OA/OA_GoodsInfoDAL.cs
@@ -153,7 +153,7 @@
            throw new NotImplementedException();
        }
        public IEnumerable<Model.OA_GoodsInfo> SelectModelPage(Pagination pa, Guid FirmId, string GoodsName, string CommodityName)
        public IEnumerable<Model.OA_GoodsInfo> SelectModelPage(Pagination pa, Guid FirmId, string GoodsName, string CommodityName ,string selGoodsStatus)
        {
            string Condition = " where a.FirmId='" + FirmId + "' ";
@@ -163,7 +163,11 @@
            }
            if (!string.IsNullOrEmpty(CommodityName))
            {
                Condition += "  and e.CommodityName like '%" + CommodityName + "%' ";
                Condition += "  and a.GoodsTypeId = " + CommodityName + " ";
            }
            if (!string.IsNullOrEmpty(selGoodsStatus))
            {
                Condition += "  and a.StatusId = " + selGoodsStatus + " ";
            }
            string selTarget = "a.* ,b.Name AS brandName,c.Name as SpecificationName,d.Name as  StatusName,e.CommodityName as CommodityName";