修改更新接口

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

@@ -7,7 +7,7 @@ namespace NX.ERP.U8.Purchase
{
public class ArrivalDAL
{
public IEnumerable<Model.Purchase.Arrival> GetList(List<string> strWhere , object param = null)
public IEnumerable<Model.Purchase.Arrival> GetList(string where , object param = null)
{
using (var conn = U8LoginContext.Instance.Connection)
{
@@ -39,11 +39,11 @@ namespace NX.ERP.U8.Purchase
";
var aa = string.Join(" and ", strWhere.ToArray());
if (!string.IsNullOrEmpty(aa))
if (!string.IsNullOrEmpty(where))
{
strSQL += " and " + aa;
strSQL += " and " + where;
}
var lookup = new Dictionary<int, Model.Purchase.Arrival>();
@@ -66,6 +66,24 @@ namespace NX.ERP.U8.Purchase
}
}
public IEnumerable<Model.Purchase.Arrival> GetList(IEnumerable<string> where, object param = null)
{
return this.GetList(string.Join(" and ", where.ToArray()), param);
}
public IEnumerable<Model.Purchase.Arrival> GetList(long Pubufts)
{
return this.GetList("CONVERT(BIGINT,a.Ufts) > @Pubufts", new { Pubufts });
}
public Model.Purchase.Arrival GetModel(int id)
{
List<string> where = new List<string>();