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.

23 lines
533 B

  1. using HKCardOUT.Logic;
  2. using HKLib.Dto;
  3. using HKLib.RabbitMQ.Config;
  4. using Logic.Model;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Text;
  8. using XExten.Advance.LinqFramework;
  9. namespace HKCardOUT
  10. {
  11. public class MqHandle : IAccept
  12. {
  13. public void AcceptMQ<T>(string msg)
  14. {
  15. var dto = msg.ToModel<CardStutasDto>();
  16. DbContext.Context.Updateable<CardStutas>().SetColumns(t => t.Stutas == dto.Stutas).Where(t => t.CardNo == dto.CardNo).ExecuteCommand();
  17. }
  18. }
  19. }