修改代码

This commit is contained in:
gongxh
2021-04-29 14:37:23 +08:00
parent cfec1273d5
commit 24ecf8fd16
59 changed files with 10516 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ namespace NX.ERP.U8.Pmc
/// <param name="strWhere"></param>
/// <param name="param"></param>
/// <returns></returns>
public IEnumerable<NX.ERP.Model.PmcInventoryallRes> Post1(NX.ERP.Model.Request.Inventoryall info)
public IEnumerable<NX.ERP.Model.PmcInventoryallRes> GetPmcInventoryallRes(NX.ERP.Model.Request.Inventoryall info)
{
string sql = $@"
SELECT c.cInvCode invcode1,
@@ -109,14 +109,15 @@ namespace NX.ERP.U8.Pmc
using (var conn = new System.Data.SqlClient.SqlConnection("Data Source =10.0.0.12;Initial Catalog =UFDATA_001_2019;User Id = sa;Password =1qaz@WSX;"))
using (var conn = U8.U8LoginContext.Instance.Connection)
{
return conn.Query<NX.ERP.Model.PmcInventoryallRes>(sql, new { cinvcode = info.cInvCode, info.cInvStd });
return conn.Query<NX.ERP.Model.PmcInventoryallRes>(sql, new { cinvcode = info.cInvCode, info.cInvStd });
}
}
public IEnumerable<object> Post2( List<string> info1)
public IEnumerable<object> Post2(List<string> info1)
{
string sql = $@"
SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitName, md.Qty, md.QualifiedInQty, ma.InvCode invcode1,