test 网格推送sap
This commit is contained in:
@@ -81,4 +81,9 @@ public interface IJinkoJipApi
|
||||
/// <returns></returns>
|
||||
[Post("/JIP/HCM/HCM_I_PHOTO")]
|
||||
Task<SapFaceSyncResponse> SyncFaceToSapAsync(SyncFaceRequest request);
|
||||
|
||||
|
||||
[RequestLog]
|
||||
[Post("/JIP/HCM/HCM_I_SHIFTREP")]
|
||||
Task<SyncWorkShiftResponse> SyncWorkShiftAsync(SyncWorkShiftRequest request);
|
||||
}
|
||||
42
Src/Dlhis.Jip.Api/Requests/SyncWorkShiftRequest.cs
Normal file
42
Src/Dlhis.Jip.Api/Requests/SyncWorkShiftRequest.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Requests;
|
||||
|
||||
public class SyncWorkShiftRequest
|
||||
{
|
||||
[JsonProperty("IT_2003")]
|
||||
public List<SyncWorkShiftDayItem> Items { get; set; }
|
||||
}
|
||||
|
||||
public class SyncWorkShiftDayItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工编码
|
||||
/// </summary>
|
||||
[JsonProperty("IV_GONGH")]
|
||||
public string UserCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期 yyyyMMdd
|
||||
/// </summary>
|
||||
[JsonProperty("IV_BEGDA")]
|
||||
public string Begin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期 yyyyMMdd
|
||||
/// </summary>
|
||||
[JsonProperty("IV_ENDDA")]
|
||||
public string End { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排班计划 JK03白板 JK04夜班
|
||||
/// </summary>
|
||||
[JsonProperty("IV_TPROG")]
|
||||
public string Plan { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作 INS / MOD /DEL
|
||||
/// </summary>
|
||||
[JsonProperty("IV_OP")]
|
||||
public string Operate { get; set; }
|
||||
}
|
||||
42
Src/Dlhis.Jip.Api/Responses/SyncWorkShiftResponse.cs
Normal file
42
Src/Dlhis.Jip.Api/Responses/SyncWorkShiftResponse.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class SyncWorkShiftResponse
|
||||
{
|
||||
[JsonProperty("OT_2003")]
|
||||
public List<SyncWorkShiftItem> Items { get; set; }
|
||||
}
|
||||
|
||||
public class SyncWorkShiftItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工编码
|
||||
/// </summary>
|
||||
[JsonProperty("OV_GONGH")]
|
||||
public string UserCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期 yyyyMMdd
|
||||
/// </summary>
|
||||
[JsonProperty("OV_BEGDA")]
|
||||
public string Begin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期 yyyyMMdd
|
||||
/// </summary>
|
||||
[JsonProperty("OV_ENDDA")]
|
||||
public string End { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排班计划 JK03白板 JK04夜班
|
||||
/// </summary>
|
||||
[JsonProperty("OV_TPROG")]
|
||||
public string Plan { get; set; }
|
||||
|
||||
[JsonProperty("OV_MSGTY")]
|
||||
public string Result { get; set; }
|
||||
|
||||
[JsonProperty("OV_MSGTXT")]
|
||||
public string Message { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user