|
@@ -166,6 +166,7 @@ public class OrderController : BaseController
|
|
|
private readonly IRepository<SystemOrganize> _systemOrganizeRepository;
|
|
|
private readonly IRepository<OrderComplement> _orderComplementRepository;
|
|
|
private readonly ICircularRecordDomainService _circularRecordDomainService;
|
|
|
+ private readonly IRepository<Hotline.Special.SpecialNumber> _specialNumberRepository;
|
|
|
|
|
|
public OrderController(
|
|
|
IOrderDomainService orderDomainService,
|
|
@@ -241,7 +242,8 @@ public class OrderController : BaseController
|
|
|
IRepository<SystemDicData> sysDicDataRepository,
|
|
|
IRepository<SystemOrganize> systemOrganizeRepository,
|
|
|
IRepository<OrderComplement> orderComplementRepository,
|
|
|
- ICircularRecordDomainService circularRecordDomainService)
|
|
|
+ ICircularRecordDomainService circularRecordDomainService,
|
|
|
+ IRepository<Hotline.Special.SpecialNumber> specialNumberRepository)
|
|
|
{
|
|
|
_orderDomainService = orderDomainService;
|
|
|
_orderRepository = orderRepository;
|
|
@@ -317,6 +319,7 @@ public class OrderController : BaseController
|
|
|
_systemOrganizeRepository = systemOrganizeRepository;
|
|
|
_orderComplementRepository = orderComplementRepository;
|
|
|
_circularRecordDomainService = circularRecordDomainService;
|
|
|
+ _specialNumberRepository = specialNumberRepository;
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
@@ -3072,7 +3075,7 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
newPrevStep.FlowAssignType = EFlowAssignType.Org;
|
|
|
}
|
|
|
- else if(prevStepDefine.HandlerType is EHandlerType.Role)
|
|
|
+ else if (prevStepDefine.HandlerType is EHandlerType.Role)
|
|
|
{
|
|
|
newPrevStep.Assign(
|
|
|
new StepAssignInfo
|
|
@@ -4271,6 +4274,21 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
dto.InitAddress();
|
|
|
|
|
|
+ //工单保存特殊身份验证
|
|
|
+ var specialIdentityVerification = bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.SpecialIdentityVerification).SettingValue[0]);
|
|
|
+ if (specialIdentityVerification)
|
|
|
+ {
|
|
|
+ var specialNumber = await _specialNumberRepository.GetAsync(p => p.PhoneNumber == dto.FromPhone, HttpContext.RequestAborted);
|
|
|
+ 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)
|
|
|
+ throw UserFriendlyException.SameMessage("人大代表来电,请选择推送分类人大代表意见快办!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//泸州任务 311 投诉件需限制受理内容的字数等需求
|
|
|
if (_appOptions.Value.IsLuZhou && dto.AcceptTypeCode == "35")
|
|
|
{
|
|
@@ -4322,9 +4340,11 @@ public class OrderController : BaseController
|
|
|
var orderPushTypes = _mapper.Map<List<OrderPushType>>(dto.OrderPushTypes);
|
|
|
await _orderPushTypeRepository.AddRangeAsync(orderPushTypes);
|
|
|
var pushTypes = dto.OrderPushTypes.Select(x => x.PushType);
|
|
|
+ var pushTypeCode = dto.OrderPushTypes.Select(x => x.PushTypeCode);
|
|
|
+ order.PushTypeCode = string.Join(",", pushTypeCode);
|
|
|
order.PushType = string.Join(",", pushTypes);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (dto.Tags != null && dto.Tags.Any())
|
|
|
{
|
|
|
var orderTags = new List<SystemDicData>();
|
|
@@ -4504,6 +4524,21 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
dto.InitAddress();
|
|
|
|
|
|
+ //工单保存特殊身份验证
|
|
|
+ var specialIdentityVerification = bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.SpecialIdentityVerification).SettingValue[0]);
|
|
|
+ if (specialIdentityVerification)
|
|
|
+ {
|
|
|
+ var specialNumber = await _specialNumberRepository.GetAsync(p => p.PhoneNumber == dto.FromPhone, HttpContext.RequestAborted);
|
|
|
+ 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)
|
|
|
+ throw UserFriendlyException.SameMessage("人大代表来电,请选择推送分类人大代表意见快办!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//泸州任务 311 投诉件需限制受理内容的字数等需求
|
|
|
if (_appOptions.Value.IsLuZhou && dto.AcceptTypeCode == "35")
|
|
|
{
|
|
@@ -4580,6 +4615,7 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
await _orderPushTypeRepository.RemoveAsync(x => x.OrderId == order.Id);
|
|
|
order.PushType = string.Empty;
|
|
|
+ order.PushTypeCode = string.Empty;
|
|
|
}
|
|
|
|
|
|
// 工单推送分类
|
|
@@ -4589,6 +4625,8 @@ public class OrderController : BaseController
|
|
|
var orderPushTypes = _mapper.Map<List<OrderPushType>>(dto.OrderPushTypes);
|
|
|
await _orderPushTypeRepository.AddRangeAsync(orderPushTypes);
|
|
|
var pushTypes = dto.OrderPushTypes.Select(x => x.PushType);
|
|
|
+ var pushTypeCode = dto.OrderPushTypes.Select(x => x.PushTypeCode);
|
|
|
+ order.PushTypeCode = string.Join(",", pushTypeCode);
|
|
|
order.PushType = string.Join(",", pushTypes);
|
|
|
}
|
|
|
|
|
@@ -6621,7 +6659,7 @@ public class OrderController : BaseController
|
|
|
//})
|
|
|
// .Where(o => o.Id == order.Id).ExecuteCommandAsync(HttpContext.RequestAborted);
|
|
|
|
|
|
- if ((expiredTime?.ExpiredTime > order.ExpiredTime ) || _appOptions.Value.IsLuZhou)
|
|
|
+ if ((expiredTime?.ExpiredTime > order.ExpiredTime) || _appOptions.Value.IsLuZhou)
|
|
|
{
|
|
|
order.ExpiredTime = expiredTime.ExpiredTime;
|
|
|
order.NearlyExpiredTime = expiredTime.NearlyExpiredTime;
|