|
@@ -387,13 +387,13 @@ public class SnapshotController : BaseController
|
|
|
.Where(m => m.IndustryType == EIndustryType.Declare)
|
|
|
.Select(m => m.Id)
|
|
|
.ToListAsync();
|
|
|
- var result = await _orderSnapshotRepository.Queryable()
|
|
|
+ var query = _orderSnapshotRepository.Queryable()
|
|
|
.LeftJoin<Order>((snapshot, order) => order.Id == snapshot.Id)
|
|
|
.Where((snapshot, order) => industryId.Contains(snapshot.IndustryId))
|
|
|
.WhereIF(dto.JsonData.AcceptContent.Tyep == 2, (snapshot, order) => order.CreationTime.Date == disposeDate.Date)
|
|
|
.WhereIF(dto.JsonData.AcceptContent.Tyep == 1, (snapshot, order) => order.FiledTime != null && order.FiledTime.Value.Date == disposeDate.Date)
|
|
|
.Select((snapshot, order) => new OrderDeclareItemsOutDto
|
|
|
- {
|
|
|
+ {
|
|
|
AreaCode = order.AreaCode,
|
|
|
AreaName = order.County,
|
|
|
EventType = 0,
|
|
@@ -401,29 +401,29 @@ public class SnapshotController : BaseController
|
|
|
CreatedTime = order.CreationTime,
|
|
|
WorkType = snapshot.JobType.Value,
|
|
|
Source = 1,
|
|
|
- WorkTimeStart = snapshot.StartWorkTime.Value,
|
|
|
- WorkTimeStop = snapshot.EndWorkTime.Value,
|
|
|
+ WorkTimeStart = snapshot.StartWorkTime,
|
|
|
+ WorkTimeStop = snapshot.EndWorkTime,
|
|
|
OnsiteSituateDescription = order.Content,
|
|
|
Name = order.FromName,
|
|
|
Phone = order.FromPhone,
|
|
|
EventId = order.No,
|
|
|
PlaceType = snapshot.Workplace,
|
|
|
Compliance = 1,
|
|
|
- //CheckTime = snapshot.CheckTime,
|
|
|
- //CheckUser = snapshot.CheckUser,
|
|
|
- //CheckDept = snapshot.CheckDept,
|
|
|
- //CheckPhone = snapshot.CheckPhone,
|
|
|
- })
|
|
|
- .ToListAsync();
|
|
|
+ CheckTime = order.RealCommunicationTime,
|
|
|
+ CheckUser = order.RealHandlerName,
|
|
|
+ CheckDept = order.FileUserOrgName,
|
|
|
+ CheckPhone = order.RealHandlerPhone,
|
|
|
+ LatLon = order.Latitude.ToString() + "," + order.Longitude.ToString(),
|
|
|
+ Title = order.Title,
|
|
|
+ CompanyType = snapshot.CompanyName,
|
|
|
+ OperationPlace = snapshot.WorkplaceName
|
|
|
+ });
|
|
|
+ var result = await query.ToListAsync();
|
|
|
|
|
|
|
|
|
return OpenResponse.Ok(new List<WebPortalDeResponse<List<OrderDeclareItemsOutDto>>>()
|
|
|
{
|
|
|
- new() { code = "1", msg = "ok", data =
|
|
|
- [
|
|
|
- new OrderDeclareItemsOutDto()
|
|
|
- ]
|
|
|
- }
|
|
|
+ new() { code = "1", msg = "ok", data = result }
|
|
|
});
|
|
|
}
|
|
|
|