修改BC任务台

master
jianghaiqing 7 months ago
parent eeac22b2c0
commit b0da316c4d

@ -356,5 +356,40 @@ namespace Myshipping.Application
/// 客户样单截止日期 /// 客户样单截止日期
/// </summary> /// </summary>
public Nullable<DateTime> CUSTOM_SI_CUT_DATE { get; set; } public Nullable<DateTime> CUSTOM_SI_CUT_DATE { get; set; }
/// <summary>
/// 是否自动转发邮件 1-是 0-否
/// </summary>
public bool IS_SET_AUTO_EMAIL { get; set; }
/// <summary>
/// 是否已发送邮件 1-已发送 0-未发送
/// </summary>
public bool IS_SEND_EMAIL { get; set; }
/// <summary>
/// 比对差异数量
/// </summary>
public Nullable<int> DIFF_NUM { get; set; }
/// <summary>
/// 邮件接收人
/// </summary>
public string AUTO_SEND_USER { get; set; }
/// <summary>
/// 处理状态 TEMP-待处理SUCC-处理成功FAILURE-失败
/// </summary>
public string PROCESS_STATUS { get; set; }
/// <summary>
/// 处理结果
/// </summary>
public string PROCESS_RESULT { get; set; }
/// <summary>
/// 处理时间
/// </summary>
public Nullable<DateTime> PROCESS_DATE { get; set; }
} }
} }

@ -828,6 +828,10 @@ namespace Myshipping.Application
taskEntity.UpdatedTime = DateTime.Now; taskEntity.UpdatedTime = DateTime.Now;
taskEntity.UpdatedUserId = UserManager.UserId; taskEntity.UpdatedUserId = UserManager.UserId;
taskEntity.UpdatedUserName = UserManager.Name; taskEntity.UpdatedUserName = UserManager.Name;
taskEntity.IS_COMPLETE = 1;
taskEntity.COMPLETE_DATE = DateTime.Now;
taskEntity.COMPLETE_DEAL = "MANUAL";
taskEntity.COMPLETE_DEAL = "手工";
await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new
{ {
@ -836,7 +840,11 @@ namespace Myshipping.Application
it.UpdatedUserId, it.UpdatedUserId,
it.UpdatedUserName, it.UpdatedUserName,
it.RealUserId, it.RealUserId,
it.RealUserName it.RealUserName,
it.IS_COMPLETE,
it.COMPLETE_DATE,
it.COMPLETE_DEAL,
it.COMPLETE_DEAL_NAME
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
} }
@ -845,12 +853,20 @@ namespace Myshipping.Application
taskEntity.UpdatedTime = DateTime.Now; taskEntity.UpdatedTime = DateTime.Now;
taskEntity.UpdatedUserId = UserManager.UserId; taskEntity.UpdatedUserId = UserManager.UserId;
taskEntity.UpdatedUserName = UserManager.Name; taskEntity.UpdatedUserName = UserManager.Name;
taskEntity.IS_COMPLETE = 1;
taskEntity.COMPLETE_DATE = DateTime.Now;
taskEntity.COMPLETE_DEAL = "MANUAL";
taskEntity.COMPLETE_DEAL = "手工";
await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new
{ {
it.UpdatedTime, it.UpdatedTime,
it.UpdatedUserId, it.UpdatedUserId,
it.UpdatedUserName it.UpdatedUserName,
it.IS_COMPLETE,
it.COMPLETE_DATE,
it.COMPLETE_DEAL,
it.COMPLETE_DEAL_NAME
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
} }
@ -955,6 +971,10 @@ namespace Myshipping.Application
taskEntity.UpdatedTime = DateTime.Now; taskEntity.UpdatedTime = DateTime.Now;
taskEntity.UpdatedUserId = UserManager.UserId; taskEntity.UpdatedUserId = UserManager.UserId;
taskEntity.UpdatedUserName = UserManager.Name; taskEntity.UpdatedUserName = UserManager.Name;
taskEntity.IS_COMPLETE = 1;
taskEntity.COMPLETE_DATE = DateTime.Now;
taskEntity.COMPLETE_DEAL = "MANUAL";
taskEntity.COMPLETE_DEAL = "手工";
await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new
{ {
@ -963,7 +983,11 @@ namespace Myshipping.Application
it.UpdatedUserId, it.UpdatedUserId,
it.UpdatedUserName, it.UpdatedUserName,
it.RealUserId, it.RealUserId,
it.RealUserName it.RealUserName,
it.IS_COMPLETE,
it.COMPLETE_DATE,
it.COMPLETE_DEAL,
it.COMPLETE_DEAL_NAME
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
} }
@ -972,12 +996,20 @@ namespace Myshipping.Application
taskEntity.UpdatedTime = DateTime.Now; taskEntity.UpdatedTime = DateTime.Now;
taskEntity.UpdatedUserId = UserManager.UserId; taskEntity.UpdatedUserId = UserManager.UserId;
taskEntity.UpdatedUserName = UserManager.Name; taskEntity.UpdatedUserName = UserManager.Name;
taskEntity.IS_COMPLETE = 1;
taskEntity.COMPLETE_DATE = DateTime.Now;
taskEntity.COMPLETE_DEAL = "MANUAL";
taskEntity.COMPLETE_DEAL = "手工";
await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new
{ {
it.UpdatedTime, it.UpdatedTime,
it.UpdatedUserId, it.UpdatedUserId,
it.UpdatedUserName it.UpdatedUserName,
it.IS_COMPLETE,
it.COMPLETE_DATE,
it.COMPLETE_DEAL,
it.COMPLETE_DEAL_NAME
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
} }
@ -1104,6 +1136,10 @@ namespace Myshipping.Application
taskEntity.UpdatedTime = DateTime.Now; taskEntity.UpdatedTime = DateTime.Now;
taskEntity.UpdatedUserId = UserManager.UserId; taskEntity.UpdatedUserId = UserManager.UserId;
taskEntity.UpdatedUserName = UserManager.Name; taskEntity.UpdatedUserName = UserManager.Name;
taskEntity.IS_COMPLETE = 1;
taskEntity.COMPLETE_DATE = DateTime.Now;
taskEntity.COMPLETE_DEAL = "MANUAL";
taskEntity.COMPLETE_DEAL = "手工";
await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new
{ {
@ -1112,7 +1148,11 @@ namespace Myshipping.Application
it.UpdatedUserId, it.UpdatedUserId,
it.UpdatedUserName, it.UpdatedUserName,
it.RealUserId, it.RealUserId,
it.RealUserName it.RealUserName,
it.IS_COMPLETE,
it.COMPLETE_DATE,
it.COMPLETE_DEAL,
it.COMPLETE_DEAL_NAME
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
} }
@ -1121,12 +1161,20 @@ namespace Myshipping.Application
taskEntity.UpdatedTime = DateTime.Now; taskEntity.UpdatedTime = DateTime.Now;
taskEntity.UpdatedUserId = UserManager.UserId; taskEntity.UpdatedUserId = UserManager.UserId;
taskEntity.UpdatedUserName = UserManager.Name; taskEntity.UpdatedUserName = UserManager.Name;
taskEntity.IS_COMPLETE = 1;
taskEntity.COMPLETE_DATE = DateTime.Now;
taskEntity.COMPLETE_DEAL = "MANUAL";
taskEntity.COMPLETE_DEAL = "手工";
await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new await _taskBaseRepository.AsUpdateable(taskEntity).UpdateColumns(it => new
{ {
it.UpdatedTime, it.UpdatedTime,
it.UpdatedUserId, it.UpdatedUserId,
it.UpdatedUserName it.UpdatedUserName,
it.IS_COMPLETE,
it.COMPLETE_DATE,
it.COMPLETE_DEAL,
it.COMPLETE_DEAL_NAME
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
} }
@ -1788,6 +1836,9 @@ namespace Myshipping.Application
_logger.LogInformation($"推送邮件完成,结果:{JSON.Serialize(emailRlt)}"); _logger.LogInformation($"推送邮件完成,结果:{JSON.Serialize(emailRlt)}");
//var taskBcInfo = _taskBCInfoRepository.AsQueryable().Filter(null, true)
//.First(a => a.PK_ID == taskBCInfo.PK_ID);
if (emailRlt.succ) if (emailRlt.succ)
{ {
result.succ = true; result.succ = true;

Loading…
Cancel
Save