|
@@ -14,6 +14,7 @@ using Hotline.Share.Enums.Order;
|
|
|
using Hotline.Tools;
|
|
|
using MapsterMapper;
|
|
|
using SqlSugar;
|
|
|
+using System.Reflection;
|
|
|
using XF.Domain.Constants;
|
|
|
using XF.Domain.Dependency;
|
|
|
using XF.Domain.Repository;
|
|
@@ -86,6 +87,11 @@ namespace Hotline.Repository.SqlSugar.Orders
|
|
|
await Db.Updateable<Order>().SetColumns(x=>x.FileJson == order.FileJson).Where(x=>x.Id == order.Id).ExecuteCommandAsync(cancellationToken);
|
|
|
}
|
|
|
|
|
|
+ private static object GetPropertyValue(object obj, string property)
|
|
|
+ {
|
|
|
+ PropertyInfo propertyInfo = obj.GetType().GetProperty(property);
|
|
|
+ return propertyInfo.GetValue(obj, null);
|
|
|
+ }
|
|
|
|
|
|
public async Task<object> HotPortJoinOrgStatistics(DateTime StartTime, DateTime EndTime)
|
|
|
{
|
|
@@ -111,7 +117,7 @@ namespace Hotline.Repository.SqlSugar.Orders
|
|
|
}).ToPivotListAsync(x=>x.Key,x=>new { x.OrgCode,x.OrgName,x.HotSorpName },x=> x.Sum(x=>x.Count));
|
|
|
listReturn.AddRange(table);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return new { HotSpot = hotSpotList, Data = listReturn };
|
|
|
|
|
|
|