# Conflicts:
#	Pilot.Report.Exploitation/Pilot.Report.Exploitation.csproj.user
This commit is contained in:
李狗蛋 2025-03-20 15:31:06 +08:00
commit 67090d52dc
2 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1,25 @@
using Kingdee.BOS.Contracts;
using Kingdee.BOS.Core;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pilot.Report.Exploitation.Receivables
{
[Description("定时刷新应收款报表的数据")]
[HotUpdate]
public class ReceivablesAutoExecute : IScheduleService
{
public void Run(Kingdee.BOS.Context ctx, Schedule schedule)
{
DBServiceHelper.Execute(ctx, "/*dialect*/ EXEC PR_YingShouMingXi_yuyubo");
}
}
}

View File

@ -309,10 +309,15 @@ else
,SUM(F_025),
null
,F_027=(SELECT SUM(F_027) FROM [ReceivablesDetailsTable] hh where {wheresql})
,null,null,null,null,null,null,null,null,SUM(F_036),null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,null,0
,null,null,null,null,null,null,null,null
,F_036=(
SELECT SUM(F_036)
FROM ( SELECT DISTINCT [ID],hh.ID,F_036
FROM [ReceivablesDetailsTable] hh where {wheresql} ) a )
,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,null,0
From
(select distinct [ID],[ID],[F_010],F_017,F_018,F_019,F_020,F_021,F_022 ,0 as F_024 ,F_025,
0 as F_027,F_036 from
0 as F_027,0 F_036 , null, null, null, null, null from
[ReceivablesDetailsTable]
where {wheresql}
) a )) W Order by W.F_001");