PointBll.cs 613 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using WMS.Core._02Entity;
  7. using WMS.Info;
  8. using WMS.Info.Models;
  9. namespace WMS.Core.APPBLL
  10. {
  11. public class PointBll : AppCoreBLL
  12. {
  13. public List<BASE_POINT> Query(PointQueryRequest reqData)
  14. {
  15. using (var ctx = SysDbCore.GetDbCtx())
  16. {
  17. var points = ctx.Queryable<BASE_POINT>().Where(c => c.F_type == reqData.PointType && c.F_isDelete == 0).Select<BASE_POINT>().ToList();
  18. return points;
  19. }
  20. }
  21. }
  22. }