feat 生日券功能,自动上传消费数据,提醒访客到期
This commit is contained in:
@@ -41,6 +41,37 @@ public class SapOrganizationItem
|
||||
/// 事业部
|
||||
/// </summary>
|
||||
public string ORGID02 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 一级部分
|
||||
/// </summary>
|
||||
public string ORGID03 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 二级部门
|
||||
/// </summary>
|
||||
public string ORGID04 { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 三级部门
|
||||
/// </summary>
|
||||
public string ORGID05 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 四级部门
|
||||
/// </summary>
|
||||
public string ORGID06 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 五级部门
|
||||
/// </summary>
|
||||
public string ORGID07 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 六级部门
|
||||
/// </summary>
|
||||
public string ORGID08 { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -86,4 +86,14 @@ public interface IJinkoJipApi
|
||||
[RequestLog]
|
||||
[Post("/JIP/HCM/HCM_I_SHIFTREP")]
|
||||
Task<SyncWorkShiftResponse> SyncWorkShiftAsync(SyncWorkShiftRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 费用上传
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[RequestLog]
|
||||
[Post("/JIP/HCM/HCM_0015_INSERT")]
|
||||
Task<UploadCostResponse> UploadCostAsync(UploadCostRequest request);
|
||||
}
|
||||
39
Src/Dlhis.Jip.Api/Requests/UploadCostRequest.cs
Normal file
39
Src/Dlhis.Jip.Api/Requests/UploadCostRequest.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Requests;
|
||||
|
||||
public class UploadCostRequest
|
||||
{
|
||||
[JsonProperty("T_DATA")]
|
||||
public List<UploadCostItemRequest> Data { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class UploadCostItemRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 工号 可选,为空则删除日期下的所有记录
|
||||
/// </summary>
|
||||
[JsonProperty("ZWORKCODE")]
|
||||
public string WorkCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子信息类型 9020 水费扣减(上饶),9021 冷水扣减(上饶),9022 热水扣减(上饶), 2086餐卡消费金额 , 2088生日券发放金额、2089生日券消费金额
|
||||
/// </summary>
|
||||
[JsonProperty("SUBTY")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
[JsonProperty("BEGDA")]
|
||||
public string BeginDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工资项金额
|
||||
/// </summary>
|
||||
[JsonProperty("BETRG")]
|
||||
public decimal Charge { get; set; }
|
||||
}
|
||||
47
Src/Dlhis.Jip.Api/Responses/UploadCostResponse.cs
Normal file
47
Src/Dlhis.Jip.Api/Responses/UploadCostResponse.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Responses;
|
||||
|
||||
public class UploadCostResponse
|
||||
{
|
||||
[JsonProperty("T_DATA")]
|
||||
public List<UploadCostItemResponse> Data { get; set; }
|
||||
}
|
||||
|
||||
public class UploadCostItemResponse
|
||||
{
|
||||
[JsonProperty("ZWORKCODE")]
|
||||
public string WorkCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子信息类型 9020 水费扣减(上饶),9021 冷水扣减(上饶),9022 热水扣减(上饶)
|
||||
/// </summary>
|
||||
[JsonProperty("SUBTY")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
[JsonProperty("BEGDA")]
|
||||
public string BeginDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工资项金额
|
||||
/// </summary>
|
||||
[JsonProperty("BETRG")]
|
||||
public decimal Price { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// S 成功
|
||||
/// </summary>
|
||||
[JsonProperty("MSGTY")]
|
||||
public string Success { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 响应消息
|
||||
/// </summary>
|
||||
[JsonProperty("MSGTX")]
|
||||
public string Message { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user