|
@@ -59,6 +59,7 @@ using Hotline.Share.Requests;
|
|
using Hotline.Share.Tools;
|
|
using Hotline.Share.Tools;
|
|
using Hotline.Snapshot;
|
|
using Hotline.Snapshot;
|
|
using Hotline.Snapshot.IRepository;
|
|
using Hotline.Snapshot.IRepository;
|
|
|
|
+using Hotline.Special;
|
|
using Hotline.Tools;
|
|
using Hotline.Tools;
|
|
using Hotline.Users;
|
|
using Hotline.Users;
|
|
using Hotline.Validators.FlowEngine;
|
|
using Hotline.Validators.FlowEngine;
|
|
@@ -4233,7 +4234,7 @@ public class OrderController : BaseController
|
|
ActualHandleOrgName = d.ActualHandleOrgName,
|
|
ActualHandleOrgName = d.ActualHandleOrgName,
|
|
Status = d.Status,
|
|
Status = d.Status,
|
|
IsScreen = d.OrderScreens.Any(x => x.Status == EScreenStatus.End),
|
|
IsScreen = d.OrderScreens.Any(x => x.Status == EScreenStatus.End),
|
|
- IsTerminate=d.OrderTerminates.Any(p=>p.Status== ETerminateStatus.End),
|
|
|
|
|
|
+ IsTerminate = d.OrderTerminates.Any(p => p.Status == ETerminateStatus.End),
|
|
//TerminateStatus = SqlFunc.Subqueryable<OrderTerminate>().Where(s => s.OrderId == d.Id).OrderByDesc(s => s.CreationTime).Select(s => s.Status)
|
|
//TerminateStatus = SqlFunc.Subqueryable<OrderTerminate>().Where(s => s.OrderId == d.Id).OrderByDesc(s => s.CreationTime).Select(s => s.Status)
|
|
})
|
|
})
|
|
.MergeTable()
|
|
.MergeTable()
|
|
@@ -4661,16 +4662,14 @@ public class OrderController : BaseController
|
|
//工单保存特殊身份验证
|
|
//工单保存特殊身份验证
|
|
var specialIdentityVerification =
|
|
var specialIdentityVerification =
|
|
bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.SpecialIdentityVerification).SettingValue[0]);
|
|
bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.SpecialIdentityVerification).SettingValue[0]);
|
|
|
|
+ var specialNumber = await _specialNumberRepository.GetAsync(p => p.PhoneNumber == dto.FromPhone, HttpContext.RequestAborted);
|
|
if (specialIdentityVerification)
|
|
if (specialIdentityVerification)
|
|
{
|
|
{
|
|
- var specialNumber = await _specialNumberRepository.GetAsync(p => p.PhoneNumber == dto.FromPhone, HttpContext.RequestAborted);
|
|
|
|
if (specialNumber != null && specialNumber.PoliticalIdentityValue == "1")
|
|
if (specialNumber != null && specialNumber.PoliticalIdentityValue == "1")
|
|
{
|
|
{
|
|
- if (dto.OrderPushTypes == null || dto.OrderPushTypes.Count() == 0)
|
|
|
|
|
|
+ if (dto.OrderPushTypes == null || dto.OrderPushTypes.Count() == 0 || dto.OrderPushTypes.Exists(p => p.PushTypeCode == "9") == false)
|
|
throw UserFriendlyException.SameMessage("人大代表来电,请选择推送分类人大代表意见快办!");
|
|
throw UserFriendlyException.SameMessage("人大代表来电,请选择推送分类人大代表意见快办!");
|
|
|
|
|
|
- if (dto.OrderPushTypes.Exists(p => p.PushTypeCode == "9") == false)
|
|
|
|
- throw UserFriendlyException.SameMessage("人大代表来电,请选择推送分类人大代表意见快办!");
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4713,6 +4712,11 @@ public class OrderController : BaseController
|
|
var order = _mapper.Map<Orders.Order>(dto);
|
|
var order = _mapper.Map<Orders.Order>(dto);
|
|
order.SignerId = _sessionContext.UserId;
|
|
order.SignerId = _sessionContext.UserId;
|
|
order.SignerName = _sessionContext.UserName;
|
|
order.SignerName = _sessionContext.UserName;
|
|
|
|
+ if (specialNumber != null)
|
|
|
|
+ {
|
|
|
|
+ order.PoliticalIdentityValue = specialNumber.PoliticalIdentityValue;
|
|
|
|
+ order.PoliticalIdentityName = specialNumber.PoliticalIdentityName;
|
|
|
|
+ }
|
|
order.InitId();
|
|
order.InitId();
|
|
if (dto.Files.Any())
|
|
if (dto.Files.Any())
|
|
order.FileJson = await _fileRepository.AddFileAsync(dto.Files, order.Id, "", HttpContext.RequestAborted);
|
|
order.FileJson = await _fileRepository.AddFileAsync(dto.Files, order.Id, "", HttpContext.RequestAborted);
|
|
@@ -4921,15 +4925,12 @@ public class OrderController : BaseController
|
|
//工单保存特殊身份验证
|
|
//工单保存特殊身份验证
|
|
var specialIdentityVerification =
|
|
var specialIdentityVerification =
|
|
bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.SpecialIdentityVerification).SettingValue[0]);
|
|
bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.SpecialIdentityVerification).SettingValue[0]);
|
|
|
|
+ var specialNumber = await _specialNumberRepository.GetAsync(p => p.PhoneNumber == dto.FromPhone, HttpContext.RequestAborted);
|
|
if (specialIdentityVerification)
|
|
if (specialIdentityVerification)
|
|
{
|
|
{
|
|
- var specialNumber = await _specialNumberRepository.GetAsync(p => p.PhoneNumber == dto.FromPhone, HttpContext.RequestAborted);
|
|
|
|
if (specialNumber != null && specialNumber.PoliticalIdentityValue == "1")
|
|
if (specialNumber != null && specialNumber.PoliticalIdentityValue == "1")
|
|
{
|
|
{
|
|
- if (dto.OrderPushTypes == null || dto.OrderPushTypes.Count() == 0)
|
|
|
|
- throw UserFriendlyException.SameMessage("人大代表来电,请选择推送分类人大代表意见快办!");
|
|
|
|
-
|
|
|
|
- if (dto.OrderPushTypes.Exists(p => p.PushTypeCode == "9") == false)
|
|
|
|
|
|
+ if (dto.OrderPushTypes == null || dto.OrderPushTypes.Count() == 0 || dto.OrderPushTypes.Exists(p => p.PushTypeCode == "9") == false)
|
|
throw UserFriendlyException.SameMessage("人大代表来电,请选择推送分类人大代表意见快办!");
|
|
throw UserFriendlyException.SameMessage("人大代表来电,请选择推送分类人大代表意见快办!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -5006,6 +5007,12 @@ public class OrderController : BaseController
|
|
if (order.SourceChannelCode != AppDefaults.SourceChannel.DianHua)
|
|
if (order.SourceChannelCode != AppDefaults.SourceChannel.DianHua)
|
|
order.CallId = null;
|
|
order.CallId = null;
|
|
|
|
|
|
|
|
+ if (specialNumber != null)
|
|
|
|
+ {
|
|
|
|
+ order.PoliticalIdentityValue = specialNumber.PoliticalIdentityValue;
|
|
|
|
+ order.PoliticalIdentityName = specialNumber.PoliticalIdentityName;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (dto.IsEdit && !string.IsNullOrEmpty(dto.CenterOpinion) && order.CenterToOrgOpinion != dto.CenterOpinion)
|
|
if (dto.IsEdit && !string.IsNullOrEmpty(dto.CenterOpinion) && order.CenterToOrgOpinion != dto.CenterOpinion)
|
|
order.CenterToOrgOpinion = dto.CenterOpinion;
|
|
order.CenterToOrgOpinion = dto.CenterOpinion;
|
|
if (dto.IsEdit && !string.IsNullOrEmpty(dto.FileOpinion) && order.FileOpinion != dto.FileOpinion)
|
|
if (dto.IsEdit && !string.IsNullOrEmpty(dto.FileOpinion) && order.FileOpinion != dto.FileOpinion)
|
|
@@ -5839,7 +5846,8 @@ public class OrderController : BaseController
|
|
CurrentStepOptions = definition?.Steps.Select(x => new Kv(x.Code, x.Name)),
|
|
CurrentStepOptions = definition?.Steps.Select(x => new Kv(x.Code, x.Name)),
|
|
IdentityTypeOptions = EnumExts.GetDescriptions<EIdentityType>(),
|
|
IdentityTypeOptions = EnumExts.GetDescriptions<EIdentityType>(),
|
|
OrderTags = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.OrderTag),
|
|
OrderTags = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.OrderTag),
|
|
- FocusOnEvents = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.FocusOnEvent)
|
|
|
|
|
|
+ FocusOnEvents = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.FocusOnEvent),
|
|
|
|
+ PoliticalIdentity = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.PoliticalIdentity)
|
|
};
|
|
};
|
|
return rsp;
|
|
return rsp;
|
|
}
|
|
}
|