WorkSpaceController.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // using System;
  2. // using System.Collections.Generic;
  3. // using System.Linq;
  4. // using Microsoft.AspNetCore.Mvc;
  5. // using Microsoft.AspNetCore.Http;
  6. // using Microsoft.Extensions.Logging;
  7. // using Microsoft.Extensions.Options;
  8. // using Microsoft.AspNetCore.Authorization;
  9. // using System.Web;
  10. // using MySystem.Models.Main;
  11. // using LitJson;
  12. // using Library;
  13. // using System.Data;
  14. // using MySystem.Service.Main;
  15. // namespace MySystem.Areas.Api.Controllers.v1
  16. // {
  17. // [Area("Api")]
  18. // [Route("Api/v1/[controller]/[action]")]
  19. // public class WorkSpaceController : BaseController
  20. // {
  21. // public WorkSpaceController(IHttpContextAccessor accessor) : base(accessor)
  22. // {
  23. // }
  24. // #region 工作台-交易统计
  25. // [Authorize]
  26. // public JsonResult TradeAmount(string value)
  27. // {
  28. // value = DesDecrypt(value);
  29. // JsonData data = JsonMapper.ToObject(value);
  30. // Dictionary<string, object> Obj = TradeAmountDo(value);
  31. // return Json(new AppResultJson() { Status = "1", Info = "", Data = Obj });
  32. // }
  33. // private Dictionary<string, object> TradeAmountDo(string value)
  34. // {
  35. // JsonData data = JsonMapper.ToObject(value);
  36. // string Kind = data["Kind"].ToString(); //通道类型(1 原生 2 好哒)
  37. // int MerchantId = int.Parse(function.CheckInt(data["MerchantId"].ToString())); //商户
  38. // string TradeMonth = data["TradeMonth"].ToString(); //月份
  39. // string TradeDate = data["TradeDate"].ToString(); //日期
  40. // Dictionary<string, object> Obj = new Dictionary<string, object>();
  41. // Merchantamountsummay query = new Merchantamountsummay();
  42. // int Id = int.Parse(function.CheckInt(data["Id"].ToString()));
  43. // query = MerchantamountsummayService.Query(Id);
  44. // Obj.Add("TradeAmount", query.Tradeamount); //订单金额
  45. // return Obj;
  46. // }
  47. // #endregion
  48. // }
  49. // }