|
@@ -286,16 +286,18 @@ namespace DataSharing.Host.Controllers.YiBin
|
|
};
|
|
};
|
|
GetOrderList orderList = new()
|
|
GetOrderList orderList = new()
|
|
{
|
|
{
|
|
- SourceChannelCode = GetChannelCode(accountDto.PlatformSource),
|
|
|
|
|
|
+ SourceChannelCode ="YTW",// GetChannelCode(accountDto.PlatformSource),
|
|
No = dto.AcceptCode,
|
|
No = dto.AcceptCode,
|
|
Title = dto.Title,
|
|
Title = dto.Title,
|
|
Mobile = dto.Mobile,
|
|
Mobile = dto.Mobile,
|
|
AcceptTypeCode = acceptTypeCode,
|
|
AcceptTypeCode = acceptTypeCode,
|
|
- StartTime = string.IsNullOrEmpty(dto.StartDate) == false ? null : Convert.ToDateTime(dto.StartDate),
|
|
|
|
- EndTime = string.IsNullOrEmpty(dto.EndDate) == false ? null : Convert.ToDateTime(dto.EndDate).AddDays(1)
|
|
|
|
|
|
+ StartTime = string.IsNullOrEmpty(dto.StartDate) == true ? null : Convert.ToDateTime(dto.StartDate),
|
|
|
|
+ EndTime = string.IsNullOrEmpty(dto.EndDate) == true ? null : Convert.ToDateTime(dto.EndDate).AddDays(1),
|
|
|
|
+ PageIndex=dto.CurrentPage,
|
|
|
|
+ PageSize=dto.PageSize
|
|
};
|
|
};
|
|
|
|
|
|
- var result = await _fwClient.RequestNoTokenAsync<HotlineClientDataResponse<PagedDto<OrderDto>>>("api/v1/DataSharing/get_order_list_own",
|
|
|
|
|
|
+ var result = await _fwClient.RequestNoTokenAsync<HotlineClientDataSharingResponse<PagedDto<OrderDto>>>("api/v1/DataSharing/get_order_list_own",
|
|
"Post", System.Text.Json.JsonSerializer.Serialize(orderList));
|
|
"Post", System.Text.Json.JsonSerializer.Serialize(orderList));
|
|
int nPageCount = 0;
|
|
int nPageCount = 0;
|
|
List<GetOrderMediaDataListDto> listData = [];
|
|
List<GetOrderMediaDataListDto> listData = [];
|
|
@@ -304,13 +306,14 @@ namespace DataSharing.Host.Controllers.YiBin
|
|
if (result.result.Items != null && result.result.Items.Count > 0)
|
|
if (result.result.Items != null && result.result.Items.Count > 0)
|
|
{
|
|
{
|
|
//计算总页数
|
|
//计算总页数
|
|
- nPageCount = Convert.ToInt32(Math.Ceiling(Convert.ToDouble(result.result.Total) / dto.PageSize.Value));
|
|
|
|
-
|
|
|
|
|
|
+ nPageCount = Convert.ToInt32(Math.Ceiling(Convert.ToDouble(result.result.Total) / dto.PageSize));
|
|
|
|
+ int rowID = 0;
|
|
foreach (var item in result.result.Items)
|
|
foreach (var item in result.result.Items)
|
|
{
|
|
{
|
|
|
|
+ rowID++;
|
|
listData.Add(new GetOrderMediaDataListDto()
|
|
listData.Add(new GetOrderMediaDataListDto()
|
|
{
|
|
{
|
|
- RowID = ((dto.CurrentPage - 1) * dto.PageSize) + 1 + "",
|
|
|
|
|
|
+ RowID = ((dto.CurrentPage - 1) * dto.PageSize) + rowID + "",
|
|
FlowID = item.Id,
|
|
FlowID = item.Id,
|
|
Code = item.No,
|
|
Code = item.No,
|
|
Title = item.Title,
|
|
Title = item.Title,
|
|
@@ -368,48 +371,40 @@ namespace DataSharing.Host.Controllers.YiBin
|
|
{
|
|
{
|
|
No = dto.AcceptCode,
|
|
No = dto.AcceptCode,
|
|
Password = dto.AcceptPwd,
|
|
Password = dto.AcceptPwd,
|
|
- SourceChannelCode = GetChannelCode(accountDto.PlatformSource)
|
|
|
|
|
|
+ // SourceChannelCode = GetChannelCode(accountDto.PlatformSource)
|
|
};
|
|
};
|
|
- //var result = await _fwClient.RequestNoTokenAsync<HotlineClientDataResponse<OrderDto>>("api/v1/DataSharing/get_order_detail_by_no_pwd",
|
|
|
|
- // "Post", System.Text.Json.JsonSerializer.Serialize(getOrder));
|
|
|
|
- //if (result != null && result.code == 0)
|
|
|
|
- //{
|
|
|
|
- // if (result.result != null)
|
|
|
|
- // {
|
|
|
|
- // MediaOrderDetailDataDto detailDataDto = new()
|
|
|
|
- // {
|
|
|
|
- // FlowID
|
|
|
|
- // };
|
|
|
|
- // }
|
|
|
|
- //}
|
|
|
|
|
|
+ var result = await _fwClient.RequestNoTokenAsync<HotlineClientDataSharingResponse<OrderDto>>("api/v1/DataSharing/get_order_detail_by_no_pwd",
|
|
|
|
+ "Post", System.Text.Json.JsonSerializer.Serialize(getOrder));
|
|
|
|
+ List<MediaOrderDetailDataDto> items = new();
|
|
|
|
+ if (result != null && result.code == 0)
|
|
|
|
+ {
|
|
|
|
+ if (result.result != null)
|
|
|
|
+ {
|
|
|
|
+ var item = result.result;
|
|
|
|
+ items.Add(new()
|
|
|
|
+ {
|
|
|
|
+ FlowID = item.Id,
|
|
|
|
+ FlowCode = item.No,
|
|
|
|
+ FlowTitle = item.Title,
|
|
|
|
+ FlowFromName = item.SourceChannel,
|
|
|
|
+ FlowPurTypeName = item.AcceptType,
|
|
|
|
+ FlowConTypeName = item.HotspotName,
|
|
|
|
+ FlowAddDate = item.CreationTime.ToString("yyyy-MM-dd HH:mm:ss"),
|
|
|
|
+ FlowLKName = item.FromName,
|
|
|
|
+ FlowBMName = item.ActualHandleOrgName,
|
|
|
|
+ FlowRSFlagName = item.Status >= EOrderStatus.Filed ? "办理完成" : "办理中",
|
|
|
|
+ FlowContent = item.Content,
|
|
|
|
+ FlowResult = item.ActualOpinion,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
- //查询数据
|
|
|
|
- var items = await _dataOrderRepository
|
|
|
|
- .Queryable()
|
|
|
|
- .Where(p => p.OrderNo == dto.AcceptCode)
|
|
|
|
- .Where(p => p.Password == dto.AcceptPwd)
|
|
|
|
- .Where(p => p.Source == accountDto.PlatformSource)
|
|
|
|
- .Select(it => new
|
|
|
|
- {
|
|
|
|
- FlowID = it.Id,
|
|
|
|
- FlowCode = it.OrderNo,
|
|
|
|
- FlowTitle = it.Title,
|
|
|
|
- FlowFromName = it.CaseSource,
|
|
|
|
- FlowPurTypeName = it.CaseType,
|
|
|
|
- FlowConTypeName = it.HotspotName,
|
|
|
|
- FlowAddDate = it.CaseDate,
|
|
|
|
- FlowLKName = it.FromName,
|
|
|
|
- FlowBMName = it.ActualHandleOrgName,
|
|
|
|
- FlowRSFlagName = it.HandleState,
|
|
|
|
- FlowContent = it.Content,
|
|
|
|
- FlowResult = it.ActualOpinion,
|
|
|
|
- })
|
|
|
|
- .ToListAsync();
|
|
|
|
|
|
|
|
if (items == null || items.Count == 0)
|
|
if (items == null || items.Count == 0)
|
|
- return OpenResponse.Ok(ConvergenceMediaDeResponse<List<ReturnData>>.Failed(ReturnData.ReturnDataInfo("信件受理中!"), "0", "失败"));
|
|
|
|
|
|
+ return OpenResponse.Ok(ConvergenceMediaDeResponse<List<ReturnData>>.Failed(ReturnData.ReturnDataInfo("编号、密码错误!"), "0", "失败"));
|
|
else
|
|
else
|
|
- return OpenResponse.Ok(ConvergenceMediaDeResponse<IReadOnlyList<MediaOrderDetailDataDto>>.Success(_mapper.Map<IReadOnlyList<MediaOrderDetailDataDto>>(items), "成功"));
|
|
|
|
|
|
+ return OpenResponse.Ok(ConvergenceMediaDeResponse<IReadOnlyList<MediaOrderDetailDataDto>>.Success(items, "成功"));
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|