refactor 优化代码
This commit is contained in:
15
Src/Dlhis.Jip.Api/Dto/SapOrganization.cs
Normal file
15
Src/Dlhis.Jip.Api/Dto/SapOrganization.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Dto;
|
||||
|
||||
/// <summary>
|
||||
/// sap机构信息
|
||||
/// </summary>
|
||||
public class SapOrganization
|
||||
{
|
||||
/// <summary>
|
||||
/// 机构项
|
||||
/// </summary>
|
||||
[JsonProperty("item")]
|
||||
public List<SapOrganizationItem> Items { get; set; }
|
||||
}
|
||||
66
Src/Dlhis.Jip.Api/Dto/SapOrganizationItem.cs
Normal file
66
Src/Dlhis.Jip.Api/Dto/SapOrganizationItem.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
namespace Dlhis.Jip.Api.Dto;
|
||||
|
||||
public class SapOrganizationItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
public string BEGDA { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期
|
||||
/// </summary>
|
||||
public string ENDDA { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 语言
|
||||
/// </summary>
|
||||
public string LANGU { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部门id
|
||||
/// </summary>
|
||||
public string OBJID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部门名称
|
||||
/// </summary>
|
||||
public string STEXT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上级部门
|
||||
/// </summary>
|
||||
public string SOBID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公司
|
||||
/// </summary>
|
||||
public string ORGID01 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 事业部
|
||||
/// </summary>
|
||||
public string ORGID02 { get; set; }
|
||||
}
|
||||
|
||||
|
||||
//public partial class SapOrganizationItem : IEquatable<SapOrganizationItem>
|
||||
//{
|
||||
// public bool Equals(SapOrganizationItem other)
|
||||
// {
|
||||
// if (other is null)
|
||||
// return false;
|
||||
|
||||
// return this.BEGDA == other.BEGDA
|
||||
// && this.ENDDA == other.ENDDA
|
||||
// && this.LANGU == other.LANGU
|
||||
// && this.OBJID == other.OBJID
|
||||
// && this.STEXT == other.STEXT
|
||||
// && this.SOBID == other.SOBID
|
||||
// && this.ORGID01 == other.ORGID01
|
||||
// && this.ORGID02 == other.ORGID02;
|
||||
// }
|
||||
|
||||
// public override bool Equals(object obj) => Equals(obj as SapOrganizationItem);
|
||||
// public override int GetHashCode() => (BEGDA, ENDDA, LANGU, OBJID, STEXT, SOBID, ORGID01, ORGID02).GetHashCode();
|
||||
//}
|
||||
9
Src/Dlhis.Jip.Api/Dto/SapPerson.cs
Normal file
9
Src/Dlhis.Jip.Api/Dto/SapPerson.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Dto;
|
||||
|
||||
public class SapPerson<T>
|
||||
{
|
||||
[JsonProperty("item")]
|
||||
public List<T> Items { get; set; }
|
||||
}
|
||||
19
Src/Dlhis.Jip.Api/Dto/SapPersonDepartmentStatus.cs
Normal file
19
Src/Dlhis.Jip.Api/Dto/SapPersonDepartmentStatus.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// namespace Dlhis.ScheduledTask.Common.Dto
|
||||
// {
|
||||
// public class SapPersonDepartmentStatus
|
||||
// {
|
||||
// public string ZWORKCODE { get; set; }
|
||||
//
|
||||
// public DateTime BEGDA { get; set; }
|
||||
//
|
||||
// public DateTime ENDDA { get; set; }
|
||||
//
|
||||
// public string WERKS { get; set; }
|
||||
//
|
||||
// /// <summary>
|
||||
// /// 部门号
|
||||
// /// </summary>
|
||||
// public string ORGEH { get; set; }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
211
Src/Dlhis.Jip.Api/Dto/SapPersonItem.cs
Normal file
211
Src/Dlhis.Jip.Api/Dto/SapPersonItem.cs
Normal file
@@ -0,0 +1,211 @@
|
||||
namespace Dlhis.Jip.Api.Dto;
|
||||
|
||||
public class SapPersonItem
|
||||
{
|
||||
public string KOSTL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 离职日期
|
||||
/// </summary>
|
||||
public DateTime? ZLZRQ { get; set; }
|
||||
|
||||
public string ZZ_SFZH { get; set; }
|
||||
|
||||
public string STELL { get; set; }
|
||||
|
||||
public string STELL_NM { get; set; }
|
||||
|
||||
public string ZZ_KLX { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PERNR { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZWORKCODE { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MASSN { get; set; }
|
||||
/// <summary>
|
||||
/// 数据变更
|
||||
/// </summary>
|
||||
public string MNTXT { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MASSG { get; set; }
|
||||
/// <summary>
|
||||
/// 数据变更
|
||||
/// </summary>
|
||||
public string MGTXT { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZSTATUS { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string STAT2 { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string BEGDA { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ENDDA { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WERKS { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PERSG { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PERSK { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string BTRTL { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ANSVH { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MOABW { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ORGEH { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PLANS { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_ZYSF { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_AQJB { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_ZD { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_SJGH { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_BGZT { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Z_ZJ { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_XSQY { get; set; }
|
||||
/// <summary>
|
||||
/// 上海
|
||||
/// </summary>
|
||||
public string ZZ_LOC { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_COUN { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_CITY { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string NACHN { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string VORNA { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string NAME { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string GESCH { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime GBDAT { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string NATIO { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_QFRQ { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZMOBILE { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZEMAIL { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZADZH { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime ZRZRQ { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DAT01 { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZCJRQ { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZZRQ { get; set; }
|
||||
/// <summary>
|
||||
/// 本科
|
||||
/// </summary>
|
||||
public string ZXUELI { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZ_ZPQD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 国家
|
||||
/// </summary>
|
||||
public string ZZ_COUNNM { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 基地
|
||||
/// </summary>
|
||||
public string ZZ_GZDJDNM { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 厂区
|
||||
/// </summary>
|
||||
public string ZZ_GZDCQNM { get; set; }
|
||||
}
|
||||
16
Src/Dlhis.Jip.Api/Dto/SapPersonJobStatus.cs
Normal file
16
Src/Dlhis.Jip.Api/Dto/SapPersonJobStatus.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
// namespace Dlhis.ScheduledTask.Common.Dto
|
||||
// {
|
||||
// public class SapPersonJobStatus
|
||||
// {
|
||||
// public string ZWORKCODE { get; set; }
|
||||
//
|
||||
// public DateTime BEGDA { get; set; }
|
||||
//
|
||||
// public DateTime ENDDA { get; set; }
|
||||
//
|
||||
// /// <summary>
|
||||
// /// 0离职
|
||||
// /// </summary>
|
||||
// public string STAT2 { get; set; }
|
||||
// }
|
||||
// }
|
||||
10
Src/Dlhis.Jip.Api/Dto/SapPosition.cs
Normal file
10
Src/Dlhis.Jip.Api/Dto/SapPosition.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Jip.Api.Dto;
|
||||
|
||||
public class SapPosition
|
||||
{
|
||||
|
||||
[JsonProperty("item")]
|
||||
public List<SapPositionItem> Items { get; set; }
|
||||
}
|
||||
40
Src/Dlhis.Jip.Api/Dto/SapPositionItem.cs
Normal file
40
Src/Dlhis.Jip.Api/Dto/SapPositionItem.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
namespace Dlhis.Jip.Api.Dto
|
||||
{
|
||||
public class SapPositionItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
public string BEGDA { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期
|
||||
/// </summary>
|
||||
public string ENDDA { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 语言代码
|
||||
/// </summary>
|
||||
public string LANGU { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 岗位编码
|
||||
/// </summary>
|
||||
public string ZJOBID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 岗位名称
|
||||
/// </summary>
|
||||
public string ZJOBNAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ZZWID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属部门ID
|
||||
/// </summary>
|
||||
public string ZDEPID { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user