添加最后修改日期字段
This commit is contained in:
@@ -21,7 +21,7 @@ namespace NX.ERP.U8.Mom
|
||||
using (var conn = U8LoginContext.Instance.Connection)
|
||||
{
|
||||
string strSQL = @"select
|
||||
a.MoId as ProductOrderId,a.moCode as ProductOrderNo,a.CreateDate as ProductDate,a.CreateUser as PreparedBy,
|
||||
a.MoId as ProductOrderId,a.moCode as ProductOrderNo,ISNULL( ModifyDate,createDate) as ModifyDate,a.CreateDate as ProductDate,a.CreateUser as PreparedBy,
|
||||
b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoTypeId,d.DueDate,ISNULL( b.MDeptCode,'53') as MDeptCode,a.MoCode as ProductOrderNo,
|
||||
a.CreateDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,b.SortSeq,b.SoCode,
|
||||
c.AllocateId as id ,c.AllocateId as AllocateId,c.MoDId as ProductOrderDtlId,c.InvCode as MaterialCode,b.MoId as ProductOrderId, c.IssQty as IssQty,c.Qty,
|
||||
@@ -95,11 +95,19 @@ namespace NX.ERP.U8.Mom
|
||||
{
|
||||
where.Add(" a.MoId >= @ProductOrderendID ");
|
||||
}
|
||||
|
||||
if (Params.ModifyDate!=null)
|
||||
{
|
||||
where.Add(" ISNULL( a.ModifyDate,createDate) >= @ModifyDate ");
|
||||
}
|
||||
|
||||
|
||||
return this.GetList(string.Join(" and ", where.ToArray()), new
|
||||
{
|
||||
ProductCode = $"%{Params.ProductCode}%",
|
||||
ProductOrderNo = $"{Params.ProductOrderNo}",
|
||||
ProductOrderendID = $"{Params.ProductOrderendID}"
|
||||
ProductOrderendID = Params.ProductOrderendID,
|
||||
ModifyDate=Params.ModifyDate
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user