|
|
@@ -600,7 +600,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
600
|
600
|
/// <returns></returns>
|
|
601
|
601
|
public ActionResult GetAreaCountByDateNew(string branchcode, DateTime? start, DateTime? end, string areaid, int datetype = 0)
|
|
602
|
602
|
{
|
|
603
|
|
- DateTime stime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date;//当月第一天
|
|
|
603
|
+ DateTime stime = DateTime.Now.AddDays(-30).Date;//DateTime.Now.AddDays(1 - DateTime.Now.Day).Date;//当月第一天
|
|
604
|
604
|
DateTime etime = DateTime.Now;
|
|
605
|
605
|
string strstart = ""; string strend = "";
|
|
606
|
606
|
if (start != null)
|
|
|
@@ -775,7 +775,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
775
|
775
|
if (start != null)
|
|
776
|
776
|
strstart = start.Value.ToString("yyyy-MM-dd");
|
|
777
|
777
|
else
|
|
778
|
|
- strstart = DateTime.Now.ToString("yyyy-MM-01");
|
|
|
778
|
+ strstart = DateTime.Now.AddDays(-30).Date.ToString("yyyy-MM-dd");//DateTime.Now.ToString("yyyy-MM-01");
|
|
779
|
779
|
if (end != null)
|
|
780
|
780
|
strend = end.Value.ToString("yyyy-MM-dd");
|
|
781
|
781
|
else
|
|
|
@@ -1957,7 +1957,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
1957
|
1957
|
/// <returns></returns>
|
|
1958
|
1958
|
public ActionResult GetKeyCountRankByDate(string branchcode, DateTime? start, DateTime? end, int datetype = 0, int keyid = 0)
|
|
1959
|
1959
|
{
|
|
1960
|
|
- DateTime stime = DateTime.Now;
|
|
|
1960
|
+ DateTime stime = DateTime.Now.AddDays(-30).Date;//DateTime.Now;
|
|
1961
|
1961
|
DateTime etime = DateTime.Now;
|
|
1962
|
1962
|
if (start != null)
|
|
1963
|
1963
|
{
|
|
|
@@ -2016,7 +2016,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
2016
|
2016
|
/// <returns></returns>
|
|
2017
|
2017
|
public ActionResult GetDeptKeyCountByDateNew(string branchcode, DateTime? start, DateTime? end, int deptid = 0, int datetype = 0, int keyid = 0)
|
|
2018
|
2018
|
{
|
|
2019
|
|
- DateTime stime = DateTime.Now;
|
|
|
2019
|
+ DateTime stime = DateTime.Now.AddDays(-30).Date;//DateTime.Now;
|
|
2020
|
2020
|
DateTime etime = DateTime.Now;
|
|
2021
|
2021
|
if (start != null)
|
|
2022
|
2022
|
{
|
|
|
@@ -2132,7 +2132,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
2132
|
2132
|
/// </summary>
|
|
2133
|
2133
|
/// <param name="branchcode"></param>
|
|
2134
|
2134
|
/// <returns></returns>
|
|
2135
|
|
- public ActionResult GetTypeCountNew(string branchcode, string areaid)
|
|
|
2135
|
+ public ActionResult GetTypeCountNew(string branchcode, string areaid,string date)
|
|
2136
|
2136
|
{
|
|
2137
|
2137
|
if (branchcode == "sqs12345")
|
|
2138
|
2138
|
{
|
|
|
@@ -2147,6 +2147,8 @@ namespace CallCenterApi.Interface.Controllers
|
|
2147
|
2147
|
{
|
|
2148
|
2148
|
sqlwhere += " and F_IsSQ!=1";
|
|
2149
|
2149
|
}
|
|
|
2150
|
+ if (string.IsNullOrEmpty(date))
|
|
|
2151
|
+ date = DateTime.Now.ToString("yyyy-MM-dd");
|
|
2150
|
2152
|
|
|
2151
|
2153
|
#region 定义新表
|
|
2152
|
2154
|
DataTable dtnew = new DataTable();
|
|
|
@@ -2173,7 +2175,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
2173
|
2175
|
areaid = l.F_AreaId;
|
|
2174
|
2176
|
}
|
|
2175
|
2177
|
string signcode = CommonHelper.getsigncode(controllername, actionname, l.F_Sign);
|
|
2176
|
|
- string strparams = "?signcode=" + signcode + "&areaid=" + areaid;
|
|
|
2178
|
+ string strparams = "?signcode=" + signcode + "&areaid=" + areaid+"&date="+ date;
|
|
2177
|
2179
|
|
|
2178
|
2180
|
string ar = HttpMethods.HttpGet(l.F_Url + "/" + controllername + "/" + actionname + strparams);//.ToObject<AjaxResult>();
|
|
2179
|
2181
|
|
|
|
@@ -2228,6 +2230,8 @@ namespace CallCenterApi.Interface.Controllers
|
|
2228
|
2230
|
}
|
|
2229
|
2231
|
}
|
|
2230
|
2232
|
#endregion
|
|
|
2233
|
+ dtnew.DefaultView.Sort = "MonthCount DESC";
|
|
|
2234
|
+ dtnew = dtnew.DefaultView.ToTable();
|
|
2231
|
2235
|
return Success("成功", dtnew);
|
|
2232
|
2236
|
}
|
|
2233
|
2237
|
|