Browse Source

【修改】授课考勤异常修改;

黑龙江艺术高中职
dyy 3 weeks ago
parent
commit
594ef4d75e
2 changed files with 1 additions and 7 deletions
  1. +0
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config
  2. +1
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionService.cs

+ 0
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config View File

@@ -180,8 +180,5 @@
<add key="ChannelId" value="49"/> <add key="ChannelId" value="49"/>
<add key="ApiKey" value="fafc361a-40c1-4060-8eee-ea796640c39c"/> <add key="ApiKey" value="fafc361a-40c1-4060-8eee-ea796640c39c"/>
<add key="Ports" value="192.168.50.127:8007"/> <add key="Ports" value="192.168.50.127:8007"/>

<add key="clockTime1" value="2024-10-10"/>
<add key="clockTime2" value="2024-10-15"/>
</appSettings> </appSettings>

+ 1
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionService.cs View File

@@ -2308,9 +2308,6 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// <returns></returns> /// <returns></returns>
public void DoHandleError() public void DoHandleError()
{ {
var clockTime1 = Config.GetValue("clockTime1");
var clockTime2 = Config.GetValue("clockTime2");

try try
{ {
var list = this.BaseRepository("CollegeMIS").FindList<HandleErrorModel>($@"select * from var list = this.BaseRepository("CollegeMIS").FindList<HandleErrorModel>($@"select * from
@@ -2321,7 +2318,7 @@ sum(case when t.ADType=1 then 1 else 0 end) as total1,sum(case when t.ADType=2 t
from Teach_Attendance t from Teach_Attendance t
left join ArrangeLessonTerm a on t.ALTId=a.ALTId left join ArrangeLessonTerm a on t.ALTId=a.ALTId
where a.AcademicYearNo='24-25' and a.Semester='1' and CONVERT(date,a.InsertDate)='2024-10-05' where a.AcademicYearNo='24-25' and a.Semester='1' and CONVERT(date,a.InsertDate)='2024-10-05'
and CONVERT(date,t.ADTime)>='{clockTime1}' and CONVERT(date,t.ADTime)<='{clockTime2}'
and CONVERT(date,t.ADTime)>='2024-09-01' and CONVERT(date,t.ADTime)<='2024-10-22'
group by CONVERT(date,t.ClockTime),t.EmpNo,t.EmpName group by CONVERT(date,t.ClockTime),t.EmpNo,t.EmpName
)as bb )as bb
where bb.total1!=bb.total2 or bb.total!=bb.arrangetotal where bb.total1!=bb.total2 or bb.total!=bb.arrangetotal


Loading…
Cancel
Save