using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using VueWebApi.DLL.BLL;
using VueWebApi.Tools;
namespace VueWebApi.Controllers
{
[RoutePrefix(prefix: "api/AppAnalytics")]
[ControllerGroup("App只能分析", "在线接口")]
[ChannelActionFilterAttributeApp]
public class AppAnalyticsController : ApiController
{
//定义全局信息返回变量
ToMessage mes = new ToMessage();
RedisHelper redis = new RedisHelper();
#region[App生产看板]
///
/// App生产看板
///
/// 登录人员
/// 时间
/// 缺陷统计类型
///
[Route(template: "ProductionKanban")]
[HttpGet]
public HttpResponseMessage ProductionKanban(string usercode, string Ratetime,string defecttype)
{
string startopendate = ""; //开始时间
string endclosedate = ""; //结束时间
if (Ratetime != "" && Ratetime != null)
{
startopendate = Ratetime.Split('~')[0].ToString();
endclosedate = Ratetime.Split('~')[1].ToString();
}
mes = AppAnalyticsBLL.ProductionKanban(usercode, startopendate, endclosedate, defecttype);
return TJson.toJson(mes);
}
#endregion
}
}