This commit is contained in:
gongxh
2021-10-28 11:14:04 +08:00
parent 0d15cd1150
commit 4af423cdcf
8 changed files with 90 additions and 16 deletions

View File

@@ -23,7 +23,8 @@ namespace NX.ERP.U8
cVenPhone as ContractPhone,
ISNULL(dModifyDate,dVenCreateDatetime) as ModifyDate,
bProxyForeign as ProxyForeign,
CONVERT(BIGINT,pubufts) as pubufts,
CONVERT(BIGINT,pubufts) as pubufts,
cVenPPerson AS VenPPerson,
cVenPerson AS Contract from Vendor ";
if (!string.IsNullOrEmpty(strWhere))
{
@@ -40,11 +41,16 @@ namespace NX.ERP.U8
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
}
public Supplier GetModel(string SupplierCode)
{
return this.GetList("cVenCode like @SupplierCode", new { SupplierCode }).FirstOrDefault();
}
public IEnumerable<Supplier> GetList(NX.ERP.Model.Request.Supplier Params)
{
IList<string> where = new List<string>();
@@ -65,7 +71,7 @@ namespace NX.ERP.U8
where.Add(" ISNULL(dModifyDate,dVenCreateDatetime) >= @ModifyDate ");
}
if (Params.ProxyForeign !=null)
if (Params.ProxyForeign != null)
{
where.Add(" bProxyForeign=@ProxyForeign ");
@@ -79,7 +85,7 @@ namespace NX.ERP.U8
SupplierName = $"%{Params.SupplierName}%",
Params.ModifyDate,
Params.ProxyForeign
});
});
}