using NFine.Data; using NFine.Domain.Entity.SystemManage; using NFine.Domain.IRepository.SystemManage; using NFine.Repository.SystemManage; using System.Collections.Generic; using System.Data.Common; using System.Data.SqlClient; using System.Text; namespace NFine.Repository.SystemManage { public class ItemsDetailRepository : RepositoryBase, IItemsDetailRepository { public List GetItemList(string enCode) { StringBuilder strSql = new StringBuilder(); strSql.Append(@"SELECT d.* FROM Sys_SRM_ItemsDetail d INNER JOIN Sys_SRM_Items i ON i.F_Id = d.F_ItemId WHERE 1 = 1 AND i.F_EnCode = @enCode AND d.F_EnabledMark = 1 AND (d.F_DeleteMark = 0 OR d.F_DeleteMark IS NULL) ORDER BY d.F_SortCode ASC"); DbParameter[] parameter = { new SqlParameter("@enCode",enCode) }; return this.FindList(strSql.ToString(), parameter); } } }