username@email.com
2025-02-24 429d9ffb4bd7607b83b0ce8b89c07441fb0d0f57
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";