新增自定义接口,获取销售订单收款金额

This commit is contained in:
2025-07-31 09:20:10 +08:00
parent fba3a60b18
commit b47838589d
7 changed files with 194 additions and 5 deletions

33
Services/OrgService.cs Normal file
View File

@@ -0,0 +1,33 @@
using Kingdee.BOS;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.BOS.ServiceHelper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GZ_LTHPilot_ORDER.Services
{
public class OrgService
{
public Context ctx;
public OrgService(Context ctx)
{
this.ctx = ctx;
}
public DynamicObjectCollection GetOrgList()
{
var sql = @"/*dialect*/SELECT
t0.FORGID,
t0l.FNAME,
*
FROM
T_ORG_ORGANIZATIONS t0
LEFT JOIN T_ORG_ORGANIZATIONS_L t0L ON t0.FORGID = t0L.FORGID
AND FLOCALEID = 2052
";
return DBServiceHelper.ExecuteDynamicObject(this.ctx, sql);
}
}
}