|
@@ -5,26 +5,16 @@ using DataSharing.Share.Dtos.YiBin.ConvergenceMedia;
|
|
|
using DataSharing.YiBin.ConvergenceMedia;
|
|
|
using Hotline.Share.Dtos.DataSharingSearch;
|
|
|
using Hotline.Share.Dtos.File;
|
|
|
-using Hotline.Share.Dtos.FlowEngine.Workflow;
|
|
|
using Hotline.Share.Dtos.Order;
|
|
|
-using Hotline.Share.Dtos;
|
|
|
-using Hotline.Share.Enums.Order;
|
|
|
using MapsterMapper;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
-using Newtonsoft.Json.Linq;
|
|
|
using XF.Domain.Filters;
|
|
|
using XF.Domain.Repository;
|
|
|
using DataSharing.Share.Dtos;
|
|
|
-using DataSharing.Share.Dtos.ZiGong.DockingPlatform;
|
|
|
using System.Net;
|
|
|
using System.Text;
|
|
|
-using Newtonsoft.Json;
|
|
|
using DataSharing.Share.Dtos.LuZhou;
|
|
|
-using Dm.filter;
|
|
|
-using Hotline.Share.Dtos.Snapshot;
|
|
|
-using DataSharing.Share.Dtos.CityStateDataExchange;
|
|
|
-using static Lucene.Net.Util.Fst.Util;
|
|
|
|
|
|
namespace DataSharing.Host.Controllers.LuZhou
|
|
|
{
|
|
@@ -106,6 +96,10 @@ namespace DataSharing.Host.Controllers.LuZhou
|
|
|
|
|
|
#region 绑定数据
|
|
|
|
|
|
+ var platformSource = accountDto.PlatformSource;
|
|
|
+ if (platformSource == "JCeT")
|
|
|
+ platformSource = "WineCity";
|
|
|
+
|
|
|
AddOrderDto data = new()
|
|
|
{
|
|
|
Title = winCity.Title,
|
|
@@ -114,7 +108,7 @@ namespace DataSharing.Host.Controllers.LuZhou
|
|
|
FullAddress = winCity.Address,
|
|
|
Content = winCity.Content,
|
|
|
IsSecret = winCity.SFlag == "0" ? false : true,
|
|
|
- Source = (Hotline.Share.Enums.Order.ESource)System.Enum.Parse(typeof(Hotline.Share.Enums.Order.ESource), accountDto.PlatformSource),
|
|
|
+ Source = (Hotline.Share.Enums.Order.ESource)System.Enum.Parse(typeof(Hotline.Share.Enums.Order.ESource), platformSource),
|
|
|
FromGender = winCity.LinkSex switch
|
|
|
{
|
|
|
"1" => Hotline.Share.Enums.Order.EGender.Male,
|
|
@@ -129,8 +123,8 @@ namespace DataSharing.Host.Controllers.LuZhou
|
|
|
|
|
|
switch (accountDto.PlatformSource)
|
|
|
{
|
|
|
- case "WineCity":
|
|
|
- data.SourceChannel = "酒城一通";
|
|
|
+ case "JCeT":
|
|
|
+ data.SourceChannel = "酒城e通";
|
|
|
data.SourceChannelCode = accountDto.PlatformSource;
|
|
|
break;
|
|
|
default:
|
|
@@ -254,71 +248,65 @@ namespace DataSharing.Host.Controllers.LuZhou
|
|
|
|
|
|
#region 查询工单
|
|
|
|
|
|
- if (winCity.AcceptCode.Length == 12)
|
|
|
- {
|
|
|
- #region 查询老系统
|
|
|
+ #region 查询老系统
|
|
|
+
|
|
|
+ //Dictionary<string, object> dic = new Dictionary<string, object>
|
|
|
+ //{
|
|
|
+ // { "AcceptSign", dto.AcceptSign },
|
|
|
+ // { "AcceptContent", dto.AcceptContent }
|
|
|
+ //};
|
|
|
+ //var strUrl = _sharingConfigurationManager.GetLuZhouConfig().LuZhouWineCity.SendDataAddress + "/lz12345/WineCity.asmx/OrderDetail";
|
|
|
+ //var strResultData = e_SendHttpPostBySync(strUrl, dic);
|
|
|
+ //if (!string.IsNullOrEmpty(strResultData))
|
|
|
+ //{
|
|
|
+ // WinCityDetailCodeDto wdcd = System.Text.Json.JsonSerializer.Deserialize<WinCityDetailCodeDto>(strResultData);
|
|
|
+ // if (wdcd.code == "1")
|
|
|
+ // {
|
|
|
+ // WinCityDetailInfoDto wcdi = new()
|
|
|
+ // {
|
|
|
+ // Code = wdcd.msg.data[0].Code,
|
|
|
+ // AddDate = Convert.ToDateTime(wdcd.msg.data[0].AddDate).ToString("yyyy-MM-dd HH:mm:ss"),
|
|
|
+ // Content = wdcd.msg.data[0].Content,
|
|
|
+ // Result = wdcd.msg.data[0].Result
|
|
|
+ // };
|
|
|
+ // WinCityDetailDataDto wddd = new() { data = wcdi };
|
|
|
+ // return OpenResponse.Ok(WriteOrderResponseWineCityDto.Success("1", wddd));
|
|
|
+
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ //return OpenResponse.Ok(WriteOrderResponseWineCityDto.Failed("0", "查询失败"));
|
|
|
|
|
|
- Dictionary<string, object> dic = new Dictionary<string, object>
|
|
|
- {
|
|
|
- { "AcceptSign", dto.AcceptSign },
|
|
|
- { "AcceptContent", dto.AcceptContent }
|
|
|
- };
|
|
|
- var strUrl = _sharingConfigurationManager.GetLuZhouConfig().LuZhouWineCity.SendDataAddress + "/_CityHotline/_Interface/WineCity/Api.asmx/OrderDetail";
|
|
|
- var strResultData = e_SendHttpPostBySync(strUrl, dic);
|
|
|
- if (!string.IsNullOrEmpty(strResultData))
|
|
|
- {
|
|
|
- JObject job = (JObject)JsonConvert.DeserializeObject(strResultData);
|
|
|
- if (job != null && "1" == job["code"].ToString())
|
|
|
- {
|
|
|
- JObject jobData = (JObject)job["msg"]["data"][0];
|
|
|
- WinCityDetailInfoDto wcdi = new()
|
|
|
- {
|
|
|
- Code = jobData["Code"].ToString(),
|
|
|
- AddDate = Convert.ToDateTime(jobData["AddDate"]).ToString("yyyy-MM-dd HH:mm:ss"),
|
|
|
- Content = jobData["Content"].ToString(),
|
|
|
- Result = jobData["Result"].ToString()
|
|
|
- };
|
|
|
- WinCityDetailDataDto wddd = new() { data = wcdi };
|
|
|
- return OpenResponse.Ok(WriteOrderResponseWineCityDto.Success("1", wddd));
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- return OpenResponse.Ok(WriteOrderResponseWineCityDto.Failed("0", "查询失败"));
|
|
|
+ #endregion
|
|
|
|
|
|
- #endregion
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- #region 查询新系统
|
|
|
+ #region 查询新系统
|
|
|
|
|
|
- GetOrderNoPwdDto getOrder = new()
|
|
|
- {
|
|
|
- No = winCity.AcceptCode,
|
|
|
- Password = winCity.AcceptPwd,
|
|
|
- };
|
|
|
- var result = await _fwClient.RequestNoTokenAsync<HotlineClientDataSharingResponse<Hotline.Share.Dtos.Order.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)
|
|
|
+ GetOrderNoPwdDto getOrder = new()
|
|
|
+ {
|
|
|
+ No = winCity.AcceptCode,
|
|
|
+ Password = winCity.AcceptPwd,
|
|
|
+ };
|
|
|
+ var result = await _fwClient.RequestNoTokenAsync<HotlineClientDataSharingResponse<Hotline.Share.Dtos.Order.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)
|
|
|
{
|
|
|
- if (result.result != null)
|
|
|
+ var item = result.result;
|
|
|
+ WinCityDetailInfoDto wcdi = new()
|
|
|
{
|
|
|
- var item = result.result;
|
|
|
- WinCityDetailInfoDto wcdi = new()
|
|
|
- {
|
|
|
- Code = item.No,
|
|
|
- AddDate = item.CreationTime.ToString("yyyy-MM-dd HH:mm:ss"),
|
|
|
- Content = item.Content,
|
|
|
- Result = item.ActualOpinion
|
|
|
- };
|
|
|
- WinCityDetailDataDto wddd = new() { data = wcdi };
|
|
|
- return OpenResponse.Ok(WriteOrderResponseWineCityDto.Success("1", wddd));
|
|
|
- }
|
|
|
+ Code = item.No,
|
|
|
+ AddDate = item.CreationTime.ToString("yyyy-MM-dd HH:mm:ss"),
|
|
|
+ Content = item.Content,
|
|
|
+ Result = item.ActualOpinion
|
|
|
+ };
|
|
|
+ WinCityDetailDataDto wddd = new() { data = wcdi };
|
|
|
+ return OpenResponse.Ok(WriteOrderResponseWineCityDto.Success("1", wddd));
|
|
|
}
|
|
|
- return OpenResponse.Ok(WriteOrderResponseWineCityDto.Failed("0", "查询失败"));
|
|
|
-
|
|
|
- #endregion
|
|
|
}
|
|
|
+ return OpenResponse.Ok(WriteOrderResponseWineCityDto.Failed("0", "查询失败"));
|
|
|
+
|
|
|
+ #endregion
|
|
|
|
|
|
#endregion
|
|
|
}
|