修正项目结构
This commit is contained in:
@@ -14,6 +14,11 @@ namespace NX.ERP.U8.Sale
|
||||
from DispatchList as a
|
||||
left join DispatchLists as b on a.DLID = b.DLID";
|
||||
|
||||
if (!string.IsNullOrEmpty(strWhere))
|
||||
{
|
||||
strSql += $" where {strWhere} ";
|
||||
}
|
||||
|
||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||
{
|
||||
var lookup = new Dictionary<int, Model.Sale.DispatchList>();
|
||||
@@ -43,7 +48,7 @@ namespace NX.ERP.U8.Sale
|
||||
/// <returns></returns>
|
||||
public Model.Sale.DispatchList GetModel(int id)
|
||||
{
|
||||
return this.GetList(" a.cDLCode=@id", new { id }).FirstOrDefault();
|
||||
return this.GetList(" a.DLID=@id", new { id }).FirstOrDefault();
|
||||
}
|
||||
|
||||
|
||||
@@ -53,9 +58,9 @@ namespace NX.ERP.U8.Sale
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
public Model.Sale.DispatchList GetModel(string Code)
|
||||
public Model.Sale.DispatchList GetModel(string Code)
|
||||
{
|
||||
return this.GetList(" a.DLID=@Code", new { Code }).FirstOrDefault();
|
||||
return this.GetList(" a.cDLCode=@Code", new { Code }).FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user