Base.cs 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System.Collections.Generic;
  2. using Library;
  3. namespace AppConfig
  4. {
  5. public class Base
  6. {
  7. public static string SqlConn = Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString();
  8. public static string StatSqlConn = Library.ConfigurationManager.AppSettings["StatSqlConnStr"].ToString();
  9. public static string SqlConn2 = Library.ConfigurationManager.AppSettings["SqlConnStr2"].ToString();
  10. public static string StatSqlConn2 = Library.ConfigurationManager.AppSettings["StatSqlConnStr2"].ToString();
  11. //交易记录表
  12. public static string CreateMerchantTradeSummary = "CREATE TABLE `MerchantTradeSummary#DateTime#` (" +
  13. "`Id` int(11) NOT NULL AUTO_INCREMENT," +
  14. "`Sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序序号'," +
  15. "`QueryCount` int(11) NOT NULL DEFAULT '0' COMMENT '点击量'," +
  16. "`Status` int(11) NOT NULL DEFAULT '0' COMMENT '状态'," +
  17. "`Version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号'," +
  18. "`CreateDate` datetime DEFAULT NULL COMMENT '创建时间'," +
  19. "`UpdateDate` datetime DEFAULT NULL COMMENT '更新时间'," +
  20. "`CreateMan` varchar(50) DEFAULT NULL COMMENT '创建人'," +
  21. "`UpdateMan` varchar(50) DEFAULT NULL COMMENT '更新人'," +
  22. "`SeoTitle` varchar(100) DEFAULT NULL," +
  23. "`SeoKeyword` varchar(200) DEFAULT NULL," +
  24. "`SeoDescription` varchar(500) DEFAULT NULL," +
  25. "`NonActAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '非活动交易额'," +
  26. "`ActAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '活动交易额'," +
  27. "`AliPayInFactAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '支付宝实收金额'," +
  28. "`WeChatInfactAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '微信实收金额'," +
  29. "`OderCount` int(11) NOT NULL DEFAULT '0' COMMENT '订单数'," +
  30. "`InFactAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '实收金额'," +
  31. "`TradeAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '交易金额'," +
  32. "`TradeDate` varchar(50) DEFAULT NULL COMMENT '交易日期'," +
  33. "`TradeMonth` varchar(50) DEFAULT NULL COMMENT '交易月份'," +
  34. "`MerchantId` int(11) NOT NULL DEFAULT '0' COMMENT '商户Id'," +
  35. "PRIMARY KEY (`Id`)," +
  36. "KEY `MerchantTradeSummaryIndex#DateTime#` (`MerchantId`)" +
  37. ") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商户交易统计表';";
  38. public static string CreateMerchantTradeSummaryList = "CREATE TABLE `MerchantTradeSummaryList#DateTime#` (" +
  39. "`Id` int(11) NOT NULL AUTO_INCREMENT," +
  40. "`Sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序序号'," +
  41. "`QueryCount` int(11) NOT NULL DEFAULT '0' COMMENT '点击量'," +
  42. "`Status` int(11) NOT NULL DEFAULT '0' COMMENT '状态'," +
  43. "`Version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号'," +
  44. "`CreateDate` datetime DEFAULT NULL COMMENT '创建时间'," +
  45. "`UpdateDate` datetime DEFAULT NULL COMMENT '更新时间'," +
  46. "`CreateMan` varchar(50) DEFAULT NULL COMMENT '创建人'," +
  47. "`UpdateMan` varchar(50) DEFAULT NULL COMMENT '更新人'," +
  48. "`SeoTitle` varchar(100) DEFAULT NULL," +
  49. "`SeoKeyword` varchar(200) DEFAULT NULL," +
  50. "`SeoDescription` varchar(500) DEFAULT NULL," +
  51. "`NonActAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '非活动交易额'," +
  52. "`ActAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '活动交易额'," +
  53. "`AliPayInFactAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '支付宝实收金额'," +
  54. "`WeChatInfactAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '微信实收金额'," +
  55. "`OderCount` int(11) NOT NULL DEFAULT '0' COMMENT '订单数'," +
  56. "`InFactAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '实收金额'," +
  57. "`TradeAmount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '交易金额'," +
  58. "`TradeDate` varchar(50) DEFAULT NULL COMMENT '交易日期'," +
  59. "`TradeMonth` varchar(50) DEFAULT NULL COMMENT '交易月份'," +
  60. "`MerchantId` int(11) NOT NULL DEFAULT '0' COMMENT '商户Id'," +
  61. "PRIMARY KEY (`Id`)," +
  62. "KEY `MerchantTradeSummaryListIndex#DateTime#` (`MerchantId`)" +
  63. ") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商户交易统计表';";
  64. }
  65. }