Commit 1b529288 by zhoujinhui

采购建议查询接口新增是否逾期

parent 6043b7ee
......@@ -2131,6 +2131,14 @@ where 1=1 ";
sql += " and t1.`status` =@is_delete ";
parameters.Add("is_delete", m.is_delete);
}
if (m.is_overdue ==1)
{
sql += " AND (to_days(now()) - to_days(t1.create_time))>1 AND t1.`status` = 0 AND t1.ispush!= 1 ";
}
else if(m.is_overdue == 0)
{
sql += " AND ((to_days(now()) - to_days(t1.create_time))<1 OR t1.`status` != 0 OR t1.ispush=1) ";
}
if (!string.IsNullOrWhiteSpace(m.purchase_user))
{
......
......@@ -587,6 +587,12 @@ namespace AutoTurnOver.Models
[Description("是否过期")]
public int is_delete { get; set; } = 0;
/// <summary>
/// 是否逾期
/// </summary>
[Description("是否逾期")]
public int is_overdue { get; set; } = -1;
[Description("sku")]
public string sku { get; set; }
[Description("仓库编码")]
......
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