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.

31 lines
738 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. }