MerchantDepositOrderUtil.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using MySystem.MainModels;
  2. using Library;
  3. using MySystem.Service.Main;
  4. using System.Collections.Generic;
  5. using System;
  6. namespace MySystem
  7. {
  8. /// <summary>
  9. /// 商户服务费缴纳记录工具类
  10. /// </summary>
  11. public class MerchantDepositOrderUtil
  12. {
  13. #region 添加商户服务费缴纳记录
  14. /// <summary>
  15. /// 添加商户服务费缴纳记录
  16. /// </summary>
  17. /// <param name="OrderNo">订单号</param>
  18. /// <param name="UserId">创客Id</param>
  19. /// <param name="MerchantId">商户Id</param>
  20. /// <param name="ActPayPrice">总金额</param>
  21. /// <returns></returns>
  22. public static int AddMerchantDepositOrder(string OrderNo, int UserId, int MerchantId, decimal ActPayPrice)
  23. {
  24. Dictionary<string, object> fields = new Dictionary<string, object>();
  25. fields.Add("OrderNo", OrderNo); //订单号
  26. fields.Add("UserId", UserId); //所属创客Id
  27. fields.Add("MerchantId", MerchantId); //商户Id
  28. fields.Add("ActPayPrice", ActPayPrice); //服务费总额
  29. AppResultJson resultJson = MerchantDepositOrderService.Add(fields, false);
  30. var Id = int.Parse(resultJson.Data.ToString());
  31. return Id;
  32. }
  33. #endregion
  34. }
  35. }