修正项目结构

This commit is contained in:
admin
2021-01-15 09:26:17 +08:00
parent 62bd133757
commit a2fd7eca0b
44 changed files with 230 additions and 73 deletions

View File

@@ -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>