修改更新接口
This commit is contained in:
@@ -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}%"
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user