修改更新接口

This commit is contained in:
gongxh
2021-06-04 11:22:42 +08:00
parent 1f55b28602
commit 0644817c17
26 changed files with 174 additions and 64 deletions

View File

@@ -15,7 +15,7 @@ namespace NX.ERP.U8
using (var conn = U8LoginContext.Instance.Connection)
{
var sql = "select cWhCode as WarehouseCode,cWhName as WarehouseName from Warehouse";
var sql = "select cWhCode as WarehouseCode,cWhName as WarehouseName,CONVERT(BIGINT,pubufts) AS pubufts from Warehouse";
if (!string.IsNullOrEmpty(strWhere))
{
sql += $" where {strWhere}";
@@ -23,6 +23,16 @@ namespace NX.ERP.U8
return conn.Query<Warehouse>(sql, Param);
}
}
public IEnumerable<Warehouse> GetList(long Pubufts)
{
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
}
public IEnumerable<Warehouse> GetList(NX.ERP.Model.Request.Warehouse Params)
{