using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Zxd.Entity.Zxd
{
///
/// 预警接受者
///
[Table("t_early_warning_user")]
public class EarlyWarningUser
{
[Key]
public int Id { get; set; }
public string? Code { get; set; }
///
/// 企微id
///
[Column("wxwork_id")]
public string? WxWorkId { get; set; }
public int Deptid { get; set; }
[Column("crop_id")]
public string? CropId { get; set; }
[Column("app_id")]
public string? AppId { get; set; }
[Column("create_user")]
public string? CreateUser { get; set; }
[Column("create_time")]
public DateTime? CreateTime { get; set; }
[Column("update_user")]
public string? UpdateUser { get; set; }
[Column("update_time")]
public DateTime? UpdateTime { get; set; }
[Column("participant_ids")]
public string? Participant { get; set; }
[NotMapped]
public List ParticipantIds
{
get
{
return string.IsNullOrEmpty(Participant) ? new List() : Participant.Split(',').Select(x => int.Parse(x)).ToList();
}
}
}
}