crm.core/code/Crm.Core.Entity/MsgTool/MsgToolTask.cs

169 lines
4.6 KiB
C#
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Crm.Core.Entity.MsgTool
{
/// <summary>
/// 群发任务表
/// </summary>
[Table("MSGTOOL_TASK")]
public class MsgToolTask
{
public MsgToolTask()
{
MsgToolTaskCmds = new List<MsgToolTaskCmd>();
}
[Key]
public decimal PKID { get; set; }
/// <summary>
/// 计划ID如果是自建任务此字段为空
/// </summary>
public decimal PLANID { get; set; }
/// <summary>
/// 任务名称
/// </summary>
[StringLength(200)]
public string? PLANNAME { get; set; }
/// <summary>
/// 大数据人群包ID
/// </summary>
public decimal GROUPID { get; set; }
/// <summary>
/// 大数据人群包名称
/// </summary>
[StringLength(200)]
public string? GROUPNAME { get; set; }
/// <summary>
/// 大数据人群包条件描述
/// </summary>
[StringLength(500)]
public string? GROUPMEMO { get; set; }
/// <summary>
/// 企业微信号
/// </summary>
[StringLength(200)]
public string? CORPIDS { get; set; }
/// <summary>
/// 企业微信号
/// </summary>
[NotMapped]
public List<string> CorpidList
{
get
{
return string.IsNullOrEmpty(CORPIDS) ? new List<string>() : CORPIDS.Split(",").ToList();
}
}
/// <summary>
/// 发送内容
/// </summary>
[StringLength(4000)]
public string? JSONDATA { get; set; }
/// <summary>
/// 发送类型
/// now:立即发布
/// tim:定时发布
/// daily:天循环
/// week:周循环
/// month:月循环
/// </summary>
[StringLength(20)]
public string? SENDTYPE { get; set; }
/// <summary>
/// 计划执行时间
/// </summary>
public DateTime? PLANEXETIME { get; set; } //计划执行时间
/// <summary>
/// 计划执行周期
/// </summary>
[StringLength(200)]
public string? PLANEXECYCLE { get; set; } //计划执行周期
/// <summary>
/// 计划执行时间,小时分钟秒(例8:01:59)
/// </summary>
[StringLength(20)]
public string? PLANEXEHOUR { get; set; } //计划执行时间,小时分钟秒(例8:01:59)
/// <summary>
/// 循环次数
/// </summary>
public decimal? CYCLENUMBER { get; set; } //循环次数
/// <summary>
/// 截至时间
/// </summary>
public DateTime? DUEDATE { get; set; } //截至时间
/// <summary>
/// 计划状态:
/// 180草稿
/// 未分发 = 200
/// 分发中 = 210
/// 已分发 = 220 
/// 已完成 = 250
/// 已取消 = 70
/// 失败 = 40
/// 已过期 = 80
/// </summary>
public MsgToolTaskStatus STATUS { get; set; } //任务状态180草稿     220已分发  70已取消  80已过期
/// <summary>
/// 创建时间
/// </summary>
public DateTime CTIME { get; set; }
/// <summary>
/// 任务发布人存eid
/// </summary>
public decimal? CREATOR { get; set; } //任务发布人存eid
/// <summary>
/// 任务执行人存eid
/// </summary>
public decimal? RECEIVERID { get; set; } //任务执行人存eid
/// <summary>
/// 是否被通知
/// 1:已通知
/// 0:未通知(分发后马上就进行通知)
/// </summary>
public decimal? ISNOTICE { get; set; } //是否被通知 1:已通知 0:未通知(分发后马上就进行通知)
public string? REMARK { get; set; }
/// <summary>
/// pc执行情况
/// </summary>
public MsgToolTaskExeStatus EXESTATUS { get; set; }
/// <summary>
/// 错误信息
/// </summary>
public string? ERROR { get; set; }
/// <summary>
/// 分发时间
/// </summary>
public DateTime? SENDTIME { get; set; }
public int? TASKTYPE { get; set; } = 1;
public virtual ICollection<MsgToolTaskCmd> MsgToolTaskCmds { get; set; }
public virtual MsgToolPlan? MsgToolPlan { get; set; }
}
}