|
@@ -121,7 +121,7 @@ public abstract class ExpireTimeLimitBase
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <param name="code"></param>
|
|
/// <param name="code"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
- public virtual TimeConfig GetOrderTimeLimitConfig(string? code = null)
|
|
|
|
|
|
+ public TimeConfig GetOrderTimeLimitConfigBase(string? code = null)
|
|
{
|
|
{
|
|
if (string.IsNullOrEmpty(code))
|
|
if (string.IsNullOrEmpty(code))
|
|
{
|
|
{
|
|
@@ -135,6 +135,17 @@ public abstract class ExpireTimeLimitBase
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 获取办理时限配置
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="code"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ public virtual TimeConfig GetOrderTimeLimitConfig(string? code = null)
|
|
|
|
+ {
|
|
|
|
+ return GetOrderTimeLimitConfigBase(code);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 计算期满时间
|
|
/// 计算期满时间
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -149,11 +160,11 @@ public abstract class ExpireTimeLimitBase
|
|
throw new UserFriendlyException("中心派至部门的工单期满时间需受理类型参数");
|
|
throw new UserFriendlyException("中心派至部门的工单期满时间需受理类型参数");
|
|
var timeConfig = flowDirection switch
|
|
var timeConfig = flowDirection switch
|
|
{
|
|
{
|
|
- EFlowDirection.CenterToOrg => GetOrderTimeLimitConfig(order.AcceptTypeCode),
|
|
|
|
- EFlowDirection.OrgToCenter => GetOrderTimeLimitConfig(),
|
|
|
|
- EFlowDirection.FiledToCenter => GetOrderTimeLimitConfig(),
|
|
|
|
- EFlowDirection.CenterToCenter => GetOrderTimeLimitConfig(order.AcceptTypeCode),
|
|
|
|
- EFlowDirection.FiledToOrg => GetOrderTimeLimitConfig(order.AcceptTypeCode),
|
|
|
|
|
|
+ EFlowDirection.CenterToOrg => GetOrderTimeLimitConfigBase(order.AcceptTypeCode),
|
|
|
|
+ EFlowDirection.OrgToCenter => GetOrderTimeLimitConfigBase(),
|
|
|
|
+ EFlowDirection.FiledToCenter => GetOrderTimeLimitConfigBase(),
|
|
|
|
+ EFlowDirection.CenterToCenter => GetOrderTimeLimitConfigBase(order.AcceptTypeCode),
|
|
|
|
+ EFlowDirection.FiledToOrg => GetOrderTimeLimitConfigBase(order.AcceptTypeCode),
|
|
_ => throw new ArgumentOutOfRangeException(nameof(flowDirection), flowDirection, null)
|
|
_ => throw new ArgumentOutOfRangeException(nameof(flowDirection), flowDirection, null)
|
|
};
|
|
};
|
|
|
|
|