修改AP
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user