API中心

  1. 人力资源
  2. 人员变动管理
返回

离职记录增加或插入保存

接口所在U8C版本:U8 cloud5.0sp以及更高版本
详细描述:1.子表数组中每次只支持保存一行数据,传多行无效;2.整体支持批量保存;3.人员离职情况表只支持新增,不支持插入保存;4.人员离退待遇和人员流动情况进行插入保存时必须指定recordnum,传前台看到的记录行号即可。
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/hrtrn/psnbk/save

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
trantype翻译类型,按编码为code,不需要翻译为pkcode
system系统参数
uniquekey幂等唯一key

请求参数(body):

全量参数增加时简单实例插入时完整实例
参数名类型是否数组必填描述默认值示例值
psn离职记录实体
childrenvo离职记录表体VO
psndocDimissionVO人员离职情况
contentstring备注
descriptionstring离职说明
drstring删除标志
groupdef1string集团自定义1
groupdef10string集团自定义10
groupdef2string集团自定义2
groupdef3string集团自定义3
groupdef4string集团自定义4
groupdef5string集团自定义5
groupdef6string集团自定义6
groupdef7string集团自定义7
groupdef8string集团自定义8
groupdef9string集团自定义9
hroperatorstring操作用户
isreturnstring返聘标志
lastflagstring是否最近记录
leavedatestring离职日期
pk_corpstring公司
pk_corpafterstring离职后管理公司
pk_psnbasdocstring人员基本档案主键
pk_psndocstring人员管理档案主键
pk_psndoc_substring人员子集主键
pkdeptafterstring离职后部门
pkdeptbeforestring离职前部门
pkomdutybeforestring离职前职务
pkpostbeforestring离职前岗位
poststatstring是否在岗
psnclafterstring离职后人员类别
psnclaftertransstring离职后变动人员类别
psnclbeforestring离职前人员类别
reasonstring离职原因
recordnumstring记录序号(插入时必传)
salarystopdatestring薪资停发日期
towherestring离职去向
tsstring时间戳
typestring离职类型
typeaftertransstring离职后变动类型
welfarestopdatestring福利停发日期
psndocPsnchgVO人员流动情况
approveflagstring审批标志
begindatestring开始日期
chgcausestring流动原因
chgdatestring流动日期
chgflagstring进出状态
chgstatestring调动状态
chgtypestring流动类别
chgwaystring流动方向
corpdef1string公司自定义1
corpdef10string公司自定义10
corpdef2string公司自定义2
corpdef3string公司自定义3
corpdef4string公司自定义4
corpdef5string公司自定义5
corpdef6string公司自定义6
corpdef7string公司自定义7
corpdef8string公司自定义8
corpdef9string公司自定义9
drstring删除标志
enddatestring结束日期
groupdef1string集团自定义1
groupdef10string集团自定义10
groupdef2string集团自定义2
groupdef3string集团自定义3
groupdef4string集团自定义4
groupdef5string集团自定义5
groupdef6string集团自定义6
groupdef7string集团自定义7
groupdef8string集团自定义8
groupdef9string集团自定义9
hroperatorstring操作用户
lastflagstring最近记录标志
memostring备注
periodstring期间
personrolestring流动前个人身份
pk_corpstring当前单位
pk_corprelastring来往单位
pk_psnbasdocstring人员基本档案主键
pk_psndocstring人员管理档案主键
pk_psndoc_substring人员子表主键
recordnumstring记录序号(插入时必传)
relacorpstring来往单位名称
relacorpaddrstring来往单位所在地
relacorpprpstring来往单位性质
relacorptypestring来往单位所属类别
subjectionstring来往单位隶属关系
tsstring时间戳
psndocRetireVO人员离退待遇
allowancestring生活补贴
approveflagstring审批标志
begindatestring离退待遇起始日期
corpdef1string公司自定义1
corpdef10string公司自定义10
corpdef2string公司自定义2
corpdef3string公司自定义3
corpdef4string公司自定义4
corpdef5string公司自定义5
corpdef6string公司自定义6
corpdef7string公司自定义7
corpdef8string公司自定义8
corpdef9string公司自定义9
drstring删除标志
enddatestring离退待遇终止日期
groupdef1string集团自定义1
groupdef10string集团自定义10
groupdef2string集团自定义2
groupdef3string集团自定义3
groupdef4string集团自定义4
groupdef5string集团自定义5
groupdef6string集团自定义6
groupdef7string集团自定义7
groupdef8string集团自定义8
groupdef9string集团自定义9
hroperatorstring操作用户
lastflagstring最近记录标志
memostring说明
otherfeestring其它费用
pensionstring离退休金
periodstring期间
pk_corpstring离退休单位
pk_psnbasdocstring人员基本档案主键
pk_psndocstring人员管理档案主键
pk_psndoc_substring人员子表主键
recordnumstring记录序号(插入时必填)
tsstring时间戳
parentvo离职记录表头VO
amcodestring助记码
clerkcodestring业务员编号
clerkflagstring业务员标识
createtimestring创建时间
creatorstring创建人
def1string自定义项1
def10string自定义项10
def11string自定义项11
def12string自定义项12
def13string自定义项13
def14string自定义项14
def15string自定义项15
def16string自定义项16
def17string自定义项17
def18string自定义项18
def19string自定义项19
def2string自定义项2
def20string自定义项20
def3string自定义项3
def4string自定义项4
def5string自定义项5
def6string自定义项6
def7string自定义项7
def8string自定义项8
def9string自定义项9
directleaderstring直接上级
drstring删除标志
dutynamestring职务名称
groupdef1string集团预留字段1
groupdef10string集团预留字段10
groupdef11string集团预留字段11
groupdef12string集团预留字段12
groupdef13string集团预留字段13
groupdef14string集团预留字段14
groupdef15string集团预留字段15
groupdef16string集团预留字段16
groupdef17string集团预留字段17
groupdef18string集团预留字段18
groupdef19string集团预留字段19
groupdef2string集团预留字段2
groupdef20string集团预留字段20
groupdef3string集团预留字段3
groupdef4string集团预留字段4
groupdef5string集团预留字段5
groupdef6string集团预留字段6
groupdef7string集团预留字段7
groupdef8string集团预留字段8
groupdef9string集团预留字段9
hroperatorstring操作用户
indocflagstring已转入档案标识
indutydatestring到职日期
innercodestring编码级次
insourcestring进入来源
iscalovertimestring是否计算加班
isreferencedstring是否引用
isreturnstring返聘标志
jobrankstring岗位等级
jobseriesstring岗位序列
maxinnercodestring内部编码内部最大值
modifierstring修改人
modifytimestring修改时间
onpostdatestring最新到岗日期
outdutydatestring离职日期
outmethodstring减员途径
pk_clerkclassstring人员成本类别
pk_corpstring公司
pk_deptdocstring所在部门
pk_dutyrankstring职务级别
pk_om_jobstring岗位
pk_psnbasdocstring人员基本档案主键
pk_psnclstring人员类别
pk_psndocstring人员管理档案主键
pk_psntypestring人员分类
poststatstring是否在岗
psnclscopestring归属范围
psncodestring人员编码
psnnamestring姓名
psnnamepinyinstring姓名拼音
recruitresourcestring招聘来源
regularstring是否转正
regulardatastring转正日期
sealdatestring封存标记
seriesstring职务簇
showorderstring部门内序号
t_psncodestringt_psncode
tbm_propstring考勤标志
timecardidstring考勤卡号
tsstring时间戳
wastopdatestring薪酬福利停发日期

返回类型参数:

参数名类型是否数组必填描述默认值
No Data

请求参数示例:

增加时简单实例插入时完整实例

复制代码

{
    "psn":{
        "childrenvo":[
            {
                "psndocDimissionVO":{
                    "leavedate":"2023-08-02",
                    "type":"TM03",
                    "psnclafter":"3",
                    "pkdeptafter":"7777",
                    "towhere":"说走就走",
                    "reason":"85",
                    "description":"哼哼",
                    "salarystopdate":"2023-08-02",
                    "welfarestopdate":"2023-08-02",
                    "content":"备注备注"
                }
            }
        ],
        "parentvo":{
            "pk_corp":"999",
            "psncode":"HI2307110097",
            "psnname":"大强",
            "pk_deptdoc":"7777",
            "psnclscope":"0"
        }
    }
}

正确返回示例:

复制代码

{
    "status": "success",
    "data": "[{\"parentvo\":{\"clerkflag\":false,\"indocflag\":true,\"indutydate\":\"2023-08-01\",\"iscalovertime\":true,\"isreturn\":true,\"jobrank\":\"0001A11000000001O1CV\",\"onpostdate\":\"2023-08-01\",\"pk_deptdoc\":\"1001A11000000000ESES\",\"deptcode\":\"7777\",\"deptname\":\"www部门\",\"pk_dutyrank\":\"ORGDUTY00000000A0165\",\"pk_psnbasdoc\":\"0001A11000000003U93I\",\"poststat\":false,\"psnclscope\":\"0\",\"psncode\":\"HI2307110097\",\"psnname\":\"大强\",\"regular\":false,\"series\":\"0001A21000000000FQ9Z\",\"showorder\":\"999999\",\"tbm_prop\":\"2\",\"pk_psncl\":\"0001A2100000000003D2\",\"psnclasscode\":\"1\",\"psnclassname\":\"正式\",\"pk_psndoc\":\"0001A11000000003U93J\",\"dr\":\"0\",\"ts\":\"2023-07-14 15:39:57\",\"pk_corp\":\"1001\",\"unitcode\":\"999\",\"unitname\":\"百望999\"},\"childrenvo\":[{\"psndocDimissionVO\":{\"content\":\"备注备注\",\"description\":\"哼哼\",\"isreturn\":true,\"leavedate\":\"2023-08-02\",\"pk_corp\":\"1001\",\"pk_corpafter\":\"1001\",\"pkdeptafter\":\"1001A11000000000ESES\",\"deptcode\":\"7777\",\"deptname\":\"www部门\",\"pkdeptbefore\":\"1001A11000000000ESES\",\"poststat\":false,\"psnclafter\":\"0001A2100000000003D5\",\"psnclbefore\":\"0001A2100000000003D2\",\"reason\":\"0001A11000000002DLUX\",\"salarystopdate\":\"2023-08-02\",\"towhere\":\"说走就走\",\"type\":\"1001AA10000000000OSU\",\"welfarestopdate\":\"2023-08-02\"},\"psndocRetireVO\":{\"allowance\":\"78.444\",\"begindate\":\"2023-07-15\",\"enddate\":\"2023-07-15\",\"memo\":\"插入位置1\",\"pension\":\"99.76\",\"pk_corp\":\"1001\",\"recordnum\":\"1\"},\"psndocPsnchgVO\":{\"begindate\":\"2023-07-15\",\"chgflag\":\"0001AA100000000037TT\",\"chgtype\":\"0001AA100000000037U9\",\"enddate\":\"2023-07-15\",\"memo\":\"插入位置1\",\"pk_corp\":\"1001\",\"recordnum\":\"1\",\"relacorp\":\"来往单位名称\",\"relacorpaddr\":\"HRPMPLYA000000000035\"}}]}]",
    "taskNumber": "202307170008"
}

错误返回示例:

复制代码

{
    "status": "falied",
    "errorcode": "-32000",
    "errormsg": "U8C返回信息:未查到人员档案信息!请检查入参是否正确",
    "taskNumber": "202307170010"
}