|
@@ -198,7 +198,10 @@ ON DUPLICATE KEY UPDATE
|
|
|
var client = new WebClientUtility().SetContentType("application/json;charset=utf-8")
|
|
var client = new WebClientUtility().SetContentType("application/json;charset=utf-8")
|
|
|
.AddHeaders("X-Requested-With", "XMLHttpRequest")
|
|
.AddHeaders("X-Requested-With", "XMLHttpRequest")
|
|
|
.AddHeaders("Cookie", _cookies);
|
|
.AddHeaders("Cookie", _cookies);
|
|
|
- client.Proxy = _proxy;
|
|
|
|
|
|
|
+#if DEBUG
|
|
|
|
|
+#else
|
|
|
|
|
+ client.Proxy = _proxy;
|
|
|
|
|
+#endif
|
|
|
if (!string.IsNullOrEmpty(_user_agent)) client.UserAgent = _user_agent;
|
|
if (!string.IsNullOrEmpty(_user_agent)) client.UserAgent = _user_agent;
|
|
|
var response = client.Request(url);
|
|
var response = client.Request(url);
|
|
|
|
|
|
|
@@ -234,12 +237,6 @@ ON DUPLICATE KEY UPDATE
|
|
|
result.sett_ord_num_56 = data.Read<int>("sett_ord_num_56", 0);
|
|
result.sett_ord_num_56 = data.Read<int>("sett_ord_num_56", 0);
|
|
|
result.sett_ord_amt_56 = data.Read<decimal>("sett_ord_amt_56", 0);
|
|
result.sett_ord_amt_56 = data.Read<decimal>("sett_ord_amt_56", 0);
|
|
|
result.sett_tk_disp_tfee_56 = data.Read<decimal>("sett_tk_disp_tfee_56", 0);
|
|
result.sett_tk_disp_tfee_56 = data.Read<decimal>("sett_tk_disp_tfee_56", 0);
|
|
|
- result.eff_tk_disp_tfee = data.Read<decimal>("eff_tk_disp_tfee", 0);
|
|
|
|
|
- result.eff_tk_disp_tfee = data.Read<decimal>("eff_tk_disp_tfee", 0);
|
|
|
|
|
- result.eff_tk_disp_tfee = data.Read<decimal>("eff_tk_disp_tfee", 0);
|
|
|
|
|
- result.eff_tk_disp_tfee = data.Read<decimal>("eff_tk_disp_tfee", 0);
|
|
|
|
|
- result.eff_tk_disp_tfee = data.Read<decimal>("eff_tk_disp_tfee", 0);
|
|
|
|
|
- result.eff_tk_disp_tfee = data.Read<decimal>("eff_tk_disp_tfee", 0);
|
|
|
|
|
|
|
|
|
|
DateTime report_date = date.Date;
|
|
DateTime report_date = date.Date;
|
|
|
if (report_date == DateTime.Now.Date)
|
|
if (report_date == DateTime.Now.Date)
|
|
@@ -313,7 +310,10 @@ ON DUPLICATE KEY UPDATE
|
|
|
var client = new WebClientUtility().SetContentType("application/json;charset=utf-8")
|
|
var client = new WebClientUtility().SetContentType("application/json;charset=utf-8")
|
|
|
.AddHeaders("X-Requested-With", "XMLHttpRequest")
|
|
.AddHeaders("X-Requested-With", "XMLHttpRequest")
|
|
|
.AddHeaders("Cookie", _cookies);
|
|
.AddHeaders("Cookie", _cookies);
|
|
|
- client.Proxy = _proxy;
|
|
|
|
|
|
|
+#if DEBUG
|
|
|
|
|
+#else
|
|
|
|
|
+ client.Proxy = _proxy;
|
|
|
|
|
+#endif
|
|
|
if (!string.IsNullOrEmpty(_user_agent)) client.UserAgent = _user_agent;
|
|
if (!string.IsNullOrEmpty(_user_agent)) client.UserAgent = _user_agent;
|
|
|
var response = client.Request(url);
|
|
var response = client.Request(url);
|
|
|
|
|
|
|
@@ -332,32 +332,50 @@ ON DUPLICATE KEY UPDATE
|
|
|
|
|
|
|
|
var data = root.ElementRead("data").ElementRead("data");
|
|
var data = root.ElementRead("data").ElementRead("data");
|
|
|
|
|
|
|
|
- result.fix_uclk_pv_56 = data.Read<int>("uclk_pv_56", 0);
|
|
|
|
|
-
|
|
|
|
|
- DateTime report_date = date.Date;
|
|
|
|
|
|
|
+ result.eff_ord_num = data.Read<int>("eff_ord_num", 0);
|
|
|
|
|
+ result.eff_ord_amt = data.Read<decimal>("eff_ord_amt", 0);
|
|
|
|
|
+ result.eff_tk_disp_tfee = data.Read<decimal>("eff_tk_disp_tfee", 0);
|
|
|
|
|
|
|
|
- var exist = new DBContext.Table("tk_report")
|
|
|
|
|
- .Fields("id,report_date")
|
|
|
|
|
- .Get<dynamic>("report_date=@report_date AND accountId=@accountId",
|
|
|
|
|
- new { report_date, accountId = _accountId });
|
|
|
|
|
- var createArgs = new DBContext.Table("tk_report")
|
|
|
|
|
- .Add("fix_uclk_pv_56", result.fix_uclk_pv_56);
|
|
|
|
|
|
|
+ result.uclk_uv_56 = data.Read<int>("uclk_uv_56", 0);
|
|
|
|
|
+ result.uclk_pv_56 = data.Read<int>("uclk_pv_56", 0);
|
|
|
|
|
+ result.uclt_uv_56 = data.Read<int>("uclt_uv_56", 0);
|
|
|
|
|
+ result.ucart_uv_56 = data.Read<int>("ucart_uv_56", 0);
|
|
|
|
|
+ result.dep_ord_num_56 = data.Read<int>("dep_ord_num_56", 0);
|
|
|
|
|
+ result.dep_ord_dep_amt_56 = data.Read<decimal>("dep_ord_dep_amt_56", 0);
|
|
|
|
|
+ result.pay_ord_num_56 = data.Read<int>("pay_ord_num_56", 0);
|
|
|
|
|
+ result.pay_ord_amt_56 = data.Read<decimal>("pay_ord_amt_56", 0);
|
|
|
|
|
+ result.pay_tk_disp_tfee_56 = data.Read<decimal>("pay_tk_disp_tfee_56", 0);
|
|
|
|
|
+ result.pay_ord_uv_56 = data.Read<int>("pay_ord_uv_56", 0);
|
|
|
|
|
+ result.sett_ord_num_56 = data.Read<int>("sett_ord_num_56", 0);
|
|
|
|
|
+ result.sett_ord_amt_56 = data.Read<decimal>("sett_ord_amt_56", 0);
|
|
|
|
|
+ result.sett_tk_disp_tfee_56 = data.Read<decimal>("sett_tk_disp_tfee_56", 0);
|
|
|
|
|
|
|
|
- if (exist == null)
|
|
|
|
|
- {
|
|
|
|
|
- createArgs.Add("accountId", _accountId)
|
|
|
|
|
- .Add("accountName", _company)
|
|
|
|
|
- .Add("report_date", report_date)
|
|
|
|
|
- .Add("create_time", DateTime.Now)
|
|
|
|
|
- .Add("last_time", DateTime.Now)
|
|
|
|
|
- .Create();
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- createArgs.Add("last_time", DateTime.Now)
|
|
|
|
|
- .Where("id=@id", new { exist.id })
|
|
|
|
|
- .Update();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ DateTime report_date = date.Date;
|
|
|
|
|
+ EachSaveReportOverview(report_date, "tk_report", result);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ //var exist = new DBContext.Table("tk_report")
|
|
|
|
|
+ // .Fields("id,report_date")
|
|
|
|
|
+ // .Get<dynamic>("report_date=@report_date AND accountId=@accountId",
|
|
|
|
|
+ // new { report_date, accountId = _accountId });
|
|
|
|
|
+ //var createArgs = new DBContext.Table("tk_report")
|
|
|
|
|
+ // .Add("fix_uclk_pv_56", result.fix_uclk_pv_56);
|
|
|
|
|
+
|
|
|
|
|
+ //if (exist == null)
|
|
|
|
|
+ //{
|
|
|
|
|
+ // createArgs.Add("accountId", _accountId)
|
|
|
|
|
+ // .Add("accountName", _company)
|
|
|
|
|
+ // .Add("report_date", report_date)
|
|
|
|
|
+ // .Add("create_time", DateTime.Now)
|
|
|
|
|
+ // .Add("last_time", DateTime.Now)
|
|
|
|
|
+ // .Create();
|
|
|
|
|
+ //}
|
|
|
|
|
+ //else
|
|
|
|
|
+ //{
|
|
|
|
|
+ // createArgs.Add("last_time", DateTime.Now)
|
|
|
|
|
+ // .Where("id=@id", new { exist.id })
|
|
|
|
|
+ // .Update();
|
|
|
|
|
+ //}
|
|
|
}
|
|
}
|
|
|
catch (Exception ex) { }
|
|
catch (Exception ex) { }
|
|
|
}
|
|
}
|
|
@@ -378,7 +396,10 @@ ON DUPLICATE KEY UPDATE
|
|
|
var client = new WebClientUtility().SetContentType("application/json;charset=utf-8")
|
|
var client = new WebClientUtility().SetContentType("application/json;charset=utf-8")
|
|
|
.AddHeaders("X-Requested-With", "XMLHttpRequest")
|
|
.AddHeaders("X-Requested-With", "XMLHttpRequest")
|
|
|
.AddHeaders("Cookie", _cookies);
|
|
.AddHeaders("Cookie", _cookies);
|
|
|
|
|
+#if DEBUG
|
|
|
|
|
+#else
|
|
|
client.Proxy = _proxy;
|
|
client.Proxy = _proxy;
|
|
|
|
|
+#endif
|
|
|
if (!string.IsNullOrEmpty(_user_agent)) client.UserAgent = _user_agent;
|
|
if (!string.IsNullOrEmpty(_user_agent)) client.UserAgent = _user_agent;
|
|
|
var response = client.Request(url);
|
|
var response = client.Request(url);
|
|
|
|
|
|
|
@@ -476,7 +497,10 @@ ON DUPLICATE KEY UPDATE
|
|
|
var client = new WebClientUtility().SetContentType("application/json;charset=utf-8")
|
|
var client = new WebClientUtility().SetContentType("application/json;charset=utf-8")
|
|
|
.AddHeaders("X-Requested-With", "XMLHttpRequest")
|
|
.AddHeaders("X-Requested-With", "XMLHttpRequest")
|
|
|
.AddHeaders("Cookie", _cookies);
|
|
.AddHeaders("Cookie", _cookies);
|
|
|
- client.Proxy = _proxy;
|
|
|
|
|
|
|
+#if DEBUG
|
|
|
|
|
+#else
|
|
|
|
|
+ client.Proxy = _proxy;
|
|
|
|
|
+#endif
|
|
|
if (!string.IsNullOrEmpty(_user_agent)) client.UserAgent = _user_agent;
|
|
if (!string.IsNullOrEmpty(_user_agent)) client.UserAgent = _user_agent;
|
|
|
var response = client.Request(url);
|
|
var response = client.Request(url);
|
|
|
|
|
|