This commit is contained in:
杰 朱
2022-03-22 19:55:46 +08:00
parent c8e7c403e4
commit f4b34807a9
3 changed files with 44 additions and 5 deletions

View File

@@ -104,6 +104,37 @@ select a.id AS ArrivalId,a.cCode as ArrivalCode,a.cpersoncode,a.cpersonname,A.c
}
}
public IEnumerable<object> GetList(Model.Request.OtherStoreInOut storeIn)
{
string sql = @" select a.cInvCode,a.iQuantity,a.cPosition,b.cCode From rdrecords11 a left join rdrecord11 b on a.id=b.ID
where 1=1
";
List<string> where = new List<string>();
if (!string.IsNullOrEmpty(storeIn.Code))
{
where.Add(" b.cCode = @cCode");
}
var aa = string.Join(" and ", where.ToArray());
if (!string.IsNullOrEmpty(aa))
{
sql += " and " + aa;
}
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
{
return conn.Query<object>(sql, new { cCode = storeIn.Code });
}
}
}
}

View File

@@ -28,8 +28,16 @@ namespace NX.ERP.WebAPi.Controllers.Store
return dal.UpdateVocher(storeIn);
}
[Route("api/OtherOut/GetList")]
[HttpPost]
public IEnumerable<object> GetList(Model.Request.OtherStoreInOut storeIn)
{
var dal = new NX.ERP.U8.Finance.WarehouseQuery(); ;
return dal.GetList(storeIn);
}
}

View File

@@ -6,9 +6,9 @@
<configuration>
<appSettings>
<add key="ApiDbName" value="MES_SUBMIT" />
<add key="server" value="10.0.0.12" />
<add key="AccId" value="u8-2@001" />
<add key="UserId" value="wx997" />
<add key="server" value="10.0.0.250" />
<add key="AccId" value="u8@001" />
<add key="UserId" value="wx084" />
<add key="Password" value="1" />
<add key="EaiPort" value="80" />
<add key="EaiPath" value="U8EAI/import.asp" />