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.

38 lines
877 B

  1. using HKCardOUT.Helper;
  2. using HKCardOUT.Logic;
  3. using HKCardOUT.Logic.Model;
  4. using HKLib.Dto;
  5. using HKLib.RabbitMQ.Config;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Text;
  9. using XExten.Advance.LinqFramework;
  10. namespace HKCardOUT
  11. {
  12. public class CardHandle : IAccept
  13. {
  14. public void AcceptMQ<T>(string msg)
  15. {
  16. var dto = msg.ToModel<CardStutasDto>();
  17. DbContext.Context.Updateable<CardStutas>().SetColumns(t => t.Stutas == dto.Stutas).Where(t => t.CardNo == dto.CardNo).ExecuteCommand();
  18. }
  19. }
  20. public class TimeHandle : IAccept
  21. {
  22. public void AcceptMQ<T>(string msg)
  23. {
  24. DataBus.Times = msg.ToModel<TimeSpilte>();
  25. }
  26. }
  27. public class TestHandle : IAccept
  28. {
  29. public void AcceptMQ<T>(string msg)
  30. {
  31. var X = msg;
  32. }
  33. }
  34. }