1
This commit is contained in:
@@ -9,6 +9,7 @@ using MyCode.Project.Domain.Model;
|
||||
using MyCode.Project.Domain.Repositories;
|
||||
using MyCode.Project.Infrastructure.Common;
|
||||
using MyCode.Project.Infrastructure.Search;
|
||||
using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
|
||||
|
||||
namespace MyCode.Project.Repositories
|
||||
{
|
||||
@@ -17,10 +18,24 @@ namespace MyCode.Project.Repositories
|
||||
public JackOrdersRepository(MyCodeSqlSugarClient context) : base(context)
|
||||
{ }
|
||||
|
||||
|
||||
|
||||
public PageResult<SalOrderResp> GetPageList(PagedSearch search)
|
||||
{
|
||||
|
||||
SearchCondition where = new SearchCondition();
|
||||
|
||||
where.AddSqlCondition("a.FDOCUMENTSTATUS='C' ", true);
|
||||
|
||||
string sql = $@" SELECT C.FNAME AS CustomerName,a.FBILLNO,a.FDATE,a.FID FROM T_SAL_ORDER A WITH(NOLOCK)
|
||||
LEFT JOIN T_BD_CUSTOMER Cccc WITH(NOLOCK) ON Cccc.FCUSTID= A.FCUSTID
|
||||
LEFT JOIN T_BD_CUSTOMER_L C WITH(NOLOCK) ON C.FCUSTID= A.FCUSTID AND C.FLOCALEID= 2052 ";
|
||||
|
||||
|
||||
var list = this.SelectListPage<SalOrderResp>(sql, where, search.Page, search.PageSize, $@"FDATE desc ");
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user