118 lines
2.8 KiB
C#
118 lines
2.8 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.InComplaint
|
||
{
|
||
public class CreateInComplaintDto
|
||
{
|
||
/// <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 string? InComplaintChannels { get; set; }
|
||
|
||
/// <summary>
|
||
/// 外诉渠道
|
||
/// </summary>
|
||
public int? InComplaintChannel
|
||
{
|
||
get
|
||
{
|
||
return InComplaintChannels == null ? 0 : InComplaintChannels.Split(",").Select(x => int.Parse(x)).Sum();
|
||
}
|
||
}
|
||
|
||
/// <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? InComplaintDate { 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; }
|
||
}
|
||
}
|