fix 周期任务时间修正

This commit is contained in:
cheche
2024-01-09 09:07:47 +08:00
parent 598444fb96
commit 4bc02bd170
4 changed files with 43 additions and 33 deletions

View File

@@ -11,6 +11,9 @@ using Dlhis.ScheduledTask.Configurations;
using Kurisu.SqlSugar.Services;
using Dlhis.Entity.Basic.Entity;
using Dlhis.ScheduledTask.Wsproxy.Dlhis.JinkoHr.WsProxy;
using System.Net;
using System;
using Dlhis.Entity.Basic.Enums;
namespace Dlhis.ScheduledTask.Job
{
@@ -159,32 +162,32 @@ namespace Dlhis.ScheduledTask.Job
}
else
{
var info = new GainfoEntity()
var info = new GainfoEntity
{
SapNo = item.ano,
No = item.guestno,
GType = item.@class,
Name = item.gname,
Code = item.ename,
CountryNo = item.country,
IdClass = item.idcls,
Native = item.native,
Gender = item.sex,
Birthday = (DateTime)item.birthday,
Address = item.address,
//Occupation = item.occupation,
DepartmentNo = item.appellation,
Nation = item.nation,
Phone = item.phone,
Position = item.web,
//Log_id = item.log_id,
//Log_shift = item.log_shift,
//Log_date = (DateTime)item.log_date,
//Log_ip = item.log_ip,
Employed = item.isowner,
Remark = item.remark,
Degree = item.email,
Werks = item.WERKS,
SapNo = item.ano,
No = item.guestno,
GType = item.@class,
Name = item.gname,
Code = item.ename,
CountryNo = item.country,
IdClass = item.idcls,
Native = item.native,
Gender = item.sex =="女性"? GenderEnumType.Female: GenderEnumType.Male,
Birthday = (DateTime)item.birthday,
Address = item.address,
//Occuption = item.occuption,
DepartmentNo = item.appellation,
Nation =item.nation,
Phone = item.phone,
Position = item.web,
//Log_id = item.log_id,
//Log_shift = item.log_shift,
//tLog_date = item.log_date,
//Log_ip = item.log_ip,
Employed = item.isowner,
Remark = item.remark,
Degree = item.email,
Werks = item.WERKS
};
await _dbContext.InsertAsync(info);
}
@@ -440,4 +443,5 @@ namespace Dlhis.ScheduledTask.Job
}
}
}
}
}