|
|
@@ -46,7 +46,12 @@ namespace molilian.core
|
|
|
//type可以不入参,留空就两个场景的数据都显示就行了
|
|
|
//先只要成功的就行了,,到时候他们要明细再加就行了
|
|
|
|
|
|
+ //0:全分销类型;-1:各分销类型,1:goods 2: live 3:video 4: profile 5: unknown
|
|
|
int distributiontype = form.Read("distributiontype", 0);
|
|
|
+
|
|
|
+ //0:全平台;-1:各平台;1:淘宝 2:京东
|
|
|
+ int platform = form.Read("platform", 0);
|
|
|
+
|
|
|
int data_type = form.Read("type", 0);
|
|
|
var report_date = form.PathReadArray<string>("query_date[]");
|
|
|
|
|
|
@@ -64,7 +69,7 @@ namespace molilian.core
|
|
|
case 1:
|
|
|
case 2:
|
|
|
{
|
|
|
- var data = await DataTypeReportDailysAsync(distributiontype, data_type, stime, etime, clientIp, debug);
|
|
|
+ var data = await DataTypeReportDailysAsync(platform, distributiontype, data_type, stime, etime, clientIp, debug);
|
|
|
list.AddRange(data);
|
|
|
|
|
|
}
|
|
|
@@ -74,7 +79,7 @@ namespace molilian.core
|
|
|
int[] types = { 1, 2 };
|
|
|
foreach (var type in types)
|
|
|
{
|
|
|
- var data = await DataTypeReportDailysAsync(distributiontype, type, stime, etime, clientIp, debug);
|
|
|
+ var data = await DataTypeReportDailysAsync(platform, distributiontype, type, stime, etime, clientIp, debug);
|
|
|
list.AddRange(data);
|
|
|
}
|
|
|
}
|
|
|
@@ -83,7 +88,7 @@ namespace molilian.core
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
- public static async Task<List<dynamic>> DataTypeReportDailysAsync(int distributiontype, int data_type, DateTime stime, DateTime etime, string clientIp, bool debug = false)
|
|
|
+ public static async Task<List<dynamic>> DataTypeReportDailysAsync(int platform, int distributiontype, int data_type, DateTime stime, DateTime etime, string clientIp, bool debug = false)
|
|
|
{
|
|
|
string filter = "`is_show`=@is_show AND data_type=@data_type AND report_date>=@stime AND report_date<=@etime";
|
|
|
string orderBy = "report_date DESC";
|