Commit 9cd57f8c by 泽锋 李

采购建议新增推送时间

parent 9a6b92a9
......@@ -110,6 +110,11 @@ namespace AutoTurnOver.Models
public int ispush { get; set; }
/// <summary>
/// 推送时间
/// </summary>
public DateTime? push_date { get; set; }
/// <summary>
/// 采购单类型
/// </summary>
public int type { get; set; }
......
......@@ -367,7 +367,7 @@ namespace AutoTurnOver.Services
connectionHelper._connection.Execute(sql, parameters);
// 把相关的采购明细都标记成已推送
var sql2 = " update dc_auto_purchase_advise_detailed set ispush=1,plan_nos=@plan_nos,push_user_name=@push_user_name where id in @ids ";
var sql2 = " update dc_auto_purchase_advise_detailed set ispush=1,push_date=now(),plan_nos=@plan_nos,push_user_name=@push_user_name where id in @ids ";
DynamicParameters parameters2 = new DynamicParameters();
parameters2.Add("ids", item.Select(s => s.id).ToArray());
parameters2.Add("plan_nos", result.planNo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment