纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

1 year ago
  1. using NFine.Data;
  2. using NFine.Domain.Entity.SystemManage;
  3. using NFine.Domain.IRepository.SystemManage;
  4. using NFine.Repository.SystemManage;
  5. using System.Collections.Generic;
  6. using System.Data.Common;
  7. using System.Data.SqlClient;
  8. using System.Text;
  9. namespace NFine.Repository.SystemManage
  10. {
  11. public class ItemsDetailRepository : RepositoryBase<ItemsDetailEntity>, IItemsDetailRepository
  12. {
  13. public List<ItemsDetailEntity> GetItemList(string enCode)
  14. {
  15. StringBuilder strSql = new StringBuilder();
  16. strSql.Append(@"SELECT d.*
  17. FROM Sys_SRM_ItemsDetail d
  18. INNER JOIN Sys_SRM_Items i ON i.F_Id = d.F_ItemId
  19. WHERE 1 = 1
  20. AND i.F_EnCode = @enCode
  21. AND d.F_EnabledMark = 1
  22. AND (d.F_DeleteMark = 0 OR d.F_DeleteMark IS NULL)
  23. ORDER BY d.F_SortCode ASC");
  24. DbParameter[] parameter =
  25. {
  26. new SqlParameter("@enCode",enCode)
  27. };
  28. return this.FindList(strSql.ToString(), parameter);
  29. }
  30. }
  31. }