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