修改更新接口

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.Base
using (var conn = U8LoginContext.Instance.Connection)
{
var sql = @"select cPosCode as BinCode,cPosName as BinName,iPosGrade,bPosEnd,cWhCode as WarehouseCode,
iMaxCubage as VolumeLimit, iMaxweight as WeightLimit,cMemo,cBarCode from Position";
iMaxCubage as VolumeLimit, iMaxweight as WeightLimit,cMemo,cBarCode,CONVERT(BIGINT,pubufts) AS pubufts from Position";
if (!string.IsNullOrEmpty(strwhere))
{
sql += $" where {strwhere}";
@@ -24,7 +24,12 @@ namespace NX.ERP.U8.Base
}
}
public IEnumerable<Bin> GetList(long Pubufts)
{
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
}
public IEnumerable<Bin> GetListByWhCode(string Code)
{
@@ -50,7 +55,7 @@ namespace NX.ERP.U8.Base
return this.GetList(string.Join(" and ", where.ToArray()), new
{
BinCode = $"%{Param.BinCode}%",
WarehouseCode=$"%{Param.WarehouseCode}%"
WarehouseCode = $"%{Param.WarehouseCode}%"
});