107 lines
2.6 KiB
C#
107 lines
2.6 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel.DataAnnotations.Schema;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Hg.Core.Domain.Dto.OutComplaint
|
||
{
|
||
public class CreateOutComplaintDto
|
||
{
|
||
/// <summary>
|
||
/// 资源id
|
||
/// </summary>
|
||
public string? Resid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 客户姓名
|
||
/// </summary>
|
||
public string? Cname { get; set; }
|
||
|
||
/// <summary>
|
||
/// 客服id
|
||
/// </summary>
|
||
//public int? Eid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 事业部
|
||
/// </summary>
|
||
public int? Deptid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 外诉渠道
|
||
/// </summary>
|
||
public OutComplaintChannel? OutComplaintChannel { get; set; }
|
||
|
||
/// <summary>
|
||
/// 投诉原因
|
||
/// </summary>
|
||
public string? Reasons { get; set; }
|
||
|
||
public int? Reason
|
||
{
|
||
get
|
||
{
|
||
return Reasons == null ? 0 : Reasons.Split(",").Select(x => int.Parse(x)).Sum();
|
||
}
|
||
}
|
||
|
||
public string? ReasonList
|
||
{
|
||
get
|
||
{
|
||
var reasons = new List<string>();
|
||
foreach (var reason in Enum.GetValues<InComplaintReason>())
|
||
{
|
||
if (Reason.HasValue && ((int)reason & Reason.Value) > 0)
|
||
{
|
||
reasons.Add(reason.GetDescription());
|
||
}
|
||
}
|
||
return Reason == null ? "" : string.Join(",", reasons);
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 客户外诉日期
|
||
/// </summary>
|
||
public DateTime? OutComplaintDate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 投诉内容
|
||
/// </summary>
|
||
public string? Content { get; set; }
|
||
|
||
/// <summary>
|
||
/// 处理跟进
|
||
/// </summary>
|
||
public string? Follow { get; set; }
|
||
|
||
/// <summary>
|
||
/// 合规备注
|
||
/// </summary>
|
||
public string? Remark { get; set; }
|
||
|
||
/// <summary>
|
||
/// 操作人
|
||
/// </summary>
|
||
public string? Operator { get; set; }
|
||
|
||
/// <summary>
|
||
/// 操作人eid
|
||
/// </summary>
|
||
public int? OperatorEid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 事业部Code
|
||
/// </summary>
|
||
//public string? CompanyCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 风险情况
|
||
/// </summary>
|
||
public string? RiskSituation { get; set; }
|
||
}
|
||
}
|