This commit is contained in:
2025-08-23 17:09:49 +08:00
parent de4a33e00e
commit b53fbc09a1
9 changed files with 138 additions and 9 deletions

View File

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