|
@@ -53,7 +53,7 @@ public class OrderSnapshotApplication : ImportApplicationBase<OrderFullEntity, O
|
|
|
private readonly List<SystemDicData> snapshotOrderLabels;
|
|
|
private readonly List<SystemDicData> VisitSatisfaction;
|
|
|
private readonly List<SystemDicData> DissatisfiedReason;
|
|
|
- private IList<ThirdAccount> ThirdAccounts;
|
|
|
+ private IList<ThirdAccount> ThirdAccounts;
|
|
|
private readonly ISelectRepository<SelectOrderNo> OrderRepository;
|
|
|
private readonly IList<SelectOrderNo> OrderNos;
|
|
|
private readonly CreateInstanceInDto _inDto;
|
|
@@ -183,6 +183,8 @@ public class OrderSnapshotApplication : ImportApplicationBase<OrderFullEntity, O
|
|
|
order.ProcessType = source.FSH_AcceptBMID.Trim() == config.CenterId ? 10 : 20;
|
|
|
if (config.Name == "自贡市")
|
|
|
{
|
|
|
+ order.Province = "四川省";
|
|
|
+ order.City = "自贡市";
|
|
|
order.IsPublicity = false;
|
|
|
}
|
|
|
else
|
|
@@ -231,8 +233,15 @@ public class OrderSnapshotApplication : ImportApplicationBase<OrderFullEntity, O
|
|
|
order.ProvinceNo = source.FSH_ProCode;
|
|
|
order.IsUrgent = source.FSH_Urgent.Trim() == "1";
|
|
|
order.OldOrderId = source.FSH_FlowID;
|
|
|
- order.CreatorId = await GetUserIdByOpenIdAsync(null, source.WFAT_WXOpenid, order.OldId, token);
|
|
|
+ order.CreatorId = await GetUserIdByOpenIdAsync(null, source.WFAT_WXOpenid, order.OldId, token);
|
|
|
+
|
|
|
+ order.FileOpinion = source.FTRB_RRemark;
|
|
|
+ order.CurrentStepName = source.FSH_ItemName;
|
|
|
+
|
|
|
order.InitId();
|
|
|
+
|
|
|
+ order.County = source.FSH_AreaName; // 自流井区
|
|
|
+ //order.Town = ""; // 丹桂街道
|
|
|
return order;
|
|
|
}
|
|
|
|
|
@@ -737,7 +746,7 @@ public class OrderSnapshotApplication : ImportApplicationBase<OrderFullEntity, O
|
|
|
|
|
|
var points = new SnapshotPointsRecord
|
|
|
{
|
|
|
- UserId = await GetUserIdByOpenIdAsync(log, item.WFAT_WXOpenid,item.Id, token),
|
|
|
+ UserId = await GetUserIdByOpenIdAsync(log, item.WFAT_WXOpenid, item.Id, token),
|
|
|
Source = EPointsSource.Report,
|
|
|
Points = 1,
|
|
|
Direction = EPointsDirection.In,
|
|
@@ -760,7 +769,7 @@ public class OrderSnapshotApplication : ImportApplicationBase<OrderFullEntity, O
|
|
|
return Users.FirstOrDefault(m => m.OldUserId == oldId.ObjToInt())?.Name;
|
|
|
}
|
|
|
|
|
|
- public async Task<string> GetUserIdByOpenIdAsync(Action<string>log, string openId, string fsh_code, CancellationToken token)
|
|
|
+ public async Task<string> GetUserIdByOpenIdAsync(Action<string> log, string openId, string fsh_code, CancellationToken token)
|
|
|
{
|
|
|
if (openId.IsNullOrEmpty()) return null;
|
|
|
var user = ThirdAccounts.FirstOrDefault(m => m.OpenId == openId);
|