API中心

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

调配记录增加或插入保存

接口所在U8C版本:U8 cloud5.0sp以及更高版本
详细描述:总体支持表单批量保存,子表每次只支持传一行;三个子表需要保存哪个就传哪个,不保存不要传;recordnum代表要在第几行的位置插入,类似于前台选中第几行
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/hrtrn/psndr/save

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
system系统参数
uniquekey幂等唯一key

请求参数(body):

全量参数新增保存最简示例插入保存最简示例
参数名类型是否数组必填描述默认值示例值
psn调配记录批量保存VO
childrenvo调配记录子表聚合VO
psnPartTimeBorrowVO人员兼职借用情况
approveflagstring审批标志
begindatestring任职开始日期
bendflagstring结束标志
choldreasonstring任职原因
corpdef1string公司自定义1
corpdef10string公司自定义10
corpdef2string公司自定义2
corpdef3string公司自定义3
corpdef4string公司自定义4
corpdef5string公司自定义5
corpdef6string公司自定义6
corpdef7string公司自定义7
corpdef8string公司自定义8
corpdef9string公司自定义9
deposereasonstring免职原因
deposetypestring免职类型
enddatestring任职结束日期(插入时必填)
groupdef1string集团自定义1
groupdef10string集团自定义10
groupdef2string集团自定义2
groupdef3string集团自定义3
groupdef4string集团自定义4
groupdef5string集团自定义5
groupdef6string集团自定义6
groupdef7string集团自定义7
groupdef8string集团自定义8
groupdef9string集团自定义9
hroperatorstring操作用户
isForceSyncWorkboolean同步工作履历时是否允许任职开始日期早于上一条工作履历的开始日期N
isNeedSyncWorkstring是否需要同步工作履历(插入时可不填)Y/N
iscalovertimestring是否计算加班时间
isreturnstring返聘标志Y/N
jobtypestring任职类型(保存兼职借用情况时必填)0为任职记录 大于0都为兼职记录 1为兼职 2为借调 3为交流
lastflagstring最近记录标志
memostring备注
periodstring期间
pk_corpstring公司(保存兼职借用情况时必填)
pk_deptdocstring部门
pk_detytypestring职务簇
pk_dutyrankstring职务级别
pk_jobrankstring岗位等级
pk_jobserialstring岗位序列
pk_om_dutystring职务
pk_postdocstring岗位
pk_psnbasdocstring人员基本档案主键
pk_psnclstring人员类别
pk_psndocstring人员主键
pk_psndoc_substring人员子表主键
poststatstring是否在岗Y/N
posttypestring任职方式
preparenotestring调配说明
preparereasonstring调配原因
preparetypestring调配类型
recordnumstring记录序号(不传代表新增,传了代表插入)
tbm_propstring考勤方式
timecardidstring考勤卡号
psndocDeptchgVO人员任职情况
approveflagstring审批标志
begindatestring任职开始日期
bendflagstring结束标志
choldreasonstring任职原因
corpdef1string公司自定义1
corpdef10string公司自定义10
corpdef2string公司自定义2
corpdef3string公司自定义3
corpdef4string公司自定义4
corpdef5string公司自定义5
corpdef6string公司自定义6
corpdef7string公司自定义7
corpdef8string公司自定义8
corpdef9string公司自定义9
deposereasonstring免职原因
deposetypestring免职类型
enddatestring任职结束日期(插入时必填)
groupdef1string集团自定义1
groupdef10string集团自定义10
groupdef2string集团自定义2
groupdef3string集团自定义3
groupdef4string集团自定义4
groupdef5string集团自定义5
groupdef6string集团自定义6
groupdef7string集团自定义7
groupdef8string集团自定义8
groupdef9string集团自定义9
hroperatorstring操作用户
isForceSyncWorkboolean同步工作履历时是否允许任职开始日期早于上一条工作履历的开始日期N
isNeedSyncWorkstring是否需要同步工作履历(插入时可不填)Y/N
iscalovertimestring是否计算加班时间
isreturnstring返聘标志Y/N
jobtypestring任职类型(保存兼职借用情况时必填)0为任职记录 大于0都为兼职记录 1为兼职 2为借调 3为交流
lastflagstring最近记录标志
memostring备注
periodstring期间
pk_corpstring公司(保存兼职借用情况时必填)
pk_deptdocstring部门
pk_detytypestring职务簇
pk_dutyrankstring职务级别
pk_jobrankstring岗位等级
pk_jobserialstring岗位序列
pk_om_dutystring职务
pk_postdocstring岗位
pk_psnbasdocstring人员基本档案主键
pk_psnclstring人员类别
pk_psndocstring人员主键
pk_psndoc_substring人员子表主键
poststatstring是否在岗Y/N
posttypestring任职方式
preparenotestring调配说明
preparereasonstring调配原因
preparetypestring调配类型
recordnumstring记录序号(不传代表新增,传了代表插入)
tbm_propstring考勤方式
timecardidstring考勤卡号
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时间戳
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":[{"psndocDeptchgVO":{"begindate":"2023-10-01","pk_psncl":"1","pk_deptdoc":"777","hroperator":"apiwjh","isNeedSyncWork":"Y"},"psnPartTimeBorrowVO":{"begindate":"2023-10-20","pk_corp":"2501","pk_psncl":"1","pk_deptdoc":"2501-_-1001","jobtype":"1","isNeedSyncWork":"Y"},"psndocPsnchgVO":{"begindate":"2023-10-20","chgflag":"101","chgtype":"330"}}],"parentvo":{"pk_corp":"2401","psncode":"HI2308140104","pk_deptdoc":"777","psnclscope":"0"}}}

正确返回示例:

复制代码

{
    "status": "success",
    "data": "[{\"parentvo\":{\"clerkflag\":false,\"dutyname\":\"\",\"indocflag\":true,\"indutydate\":\"2023-08-14\",\"iscalovertime\":true,\"isreturn\":false,\"jobrank\":\"\",\"jobseries\":\"\",\"onpostdate\":\"2023-08-18\",\"pk_deptdoc\":\"1005F4100000000011TA\",\"deptcode\":\"777\",\"deptname\":\"w部门\",\"pk_dutyrank\":\"\",\"pk_om_job\":\"\",\"pk_psnbasdoc\":\"0001F410000000040YNU\",\"poststat\":true,\"psnclscope\":\"0\",\"psncode\":\"HI2308140104\",\"psnname\":\"奥特曼\",\"regular\":true,\"regulardata\":\"2023-09-15\",\"series\":\"\",\"showorder\":\"999999\",\"tbm_prop\":\"2\",\"pk_psncl\":\"0001A2100000000003D2\",\"psnclasscode\":\"1\",\"psnclassname\":\"正式\",\"pk_psndoc\":\"0001F410000000040YNV\",\"dr\":\"0\",\"ts\":\"2023-10-31 11:08:16\",\"pk_corp\":\"1005\",\"unitcode\":\"2401\",\"unitname\":\"wjh石油天然气集团有限公司\"},\"childrenvo\":[{\"psndocDeptchgVO\":{\"begindate\":\"2023-10-01\",\"bendflag\":false,\"hroperator\":\"0001A11000000002QQ4J\",\"hroperator_code\":\"apiwjh\",\"hroperator_name\":\"wjh\",\"isreturn\":false,\"jobtype\":\"0\",\"lastflag\":true,\"pk_corp\":\"1005\",\"corp_code\":\"2401\",\"corp_name\":\"wjh石油天然气集团有限公司\",\"pk_deptdoc\":\"1005F4100000000011TA\",\"dept_code\":\"777\",\"dept_name\":\"w部门\",\"pk_psncl\":\"0001A2100000000003D2\",\"psncl_code\":\"1\",\"psncl_name\":\"正式\",\"poststat\":true,\"recordnum\":\"0\",\"isNeedSyncWork\":true,\"isForceSyncWork\":false},\"psnPartTimeBorrowVO\":{\"begindate\":\"2023-10-20\",\"bendflag\":false,\"isreturn\":false,\"jobtype\":\"1\",\"lastflag\":true,\"pk_corp\":\"1006\",\"pk_deptdoc\":\"1006A2100000000001N6\",\"pk_psncl\":\"0001A2100000000003D2\",\"recordnum\":\"0\",\"isNeedSyncWork\":true,\"isForceSyncWork\":false},\"psndocPsnchgVO\":{\"begindate\":\"2023-10-20\",\"chgflag\":\"0001AA100000000037TS\",\"chgtype\":\"0001AA100000000037U2\",\"pk_corp\":\"1005\",\"recordnum\":\"0\"}}]}]",
    "taskNumber": "202310310057"
}

错误返回示例:

复制代码

{
    "status": "falied",
    "errorcode": "-32000",
    "errormsg": "U8C返回信息:插入记录时,终止日期不能为空!",
    "taskNumber": "202310310060"
}