传智教育-人资V8.0
  1. 社保
传智教育-人资V8.0
  • 首页
    • 首页-展示接口
      GET
    • 首页-消息通知
      GET
  • 人资项目/组织架构-部门
    • 修改-部门详情
      PUT
    • 删除-部门
      DELETE
    • 新增-部门
      POST
    • 获取-部门列表
      GET
    • 获取-部门详情
      GET
    • 获取-部门负责人列表
      GET
  • 人资项目/员工管理
    • 分配-员工-角色
      PUT
    • 批量-下载导入员工模板
      GET
    • 批量-导出员工excel
      GET
    • 批量-导入员工(上传excel)
      POST
    • 新增-员工
      POST
    • 获取-员工列表
      GET
    • 修改-员工-基本信息
      PUT
    • 删除-员工
      DELETE
    • 获取-员工-基本信息
      GET
  • 人资项目/登录
    • 登录
  • 人资项目/角色管理
    • 获取-已启用的角色列表
    • 修改-角色
    • 分配权限-角色
    • 删除-角色
    • 新增-角色
    • 获取-分页查询角色列表
    • 获取-角色详情
  • 人资项目/权限点管理
    • 修改-权限点详情
    • 删除-权限点
    • 新增-权限点
    • 获取-权限点列表
    • 获取-权限点详情
  • 人资项目/用户相关
    • 修改用户密码
    • 获取-用户基本资料
  • 社保
    • 查询企业用户社保列表
      POST
    • 查询企业社保配置信息
      GET
    • 根据用户id查询用户的社保数据
      GET
    • 根据城市id查询参保城市的参保项目
      GET
    • 保存或更新用户社保数据
      PUT
    • 查询当月报表
      GET
    • 制作新报表
      PUT
    • 社保数据归档
      POST
    • 查询社保历史归档列表
      GET
    • 批量-导出社保月份报表
      GET
    • 根据用户id和考勤年月查询用户考勤归档明细
      GET
    • 查询城市列表
      GET
  • 审批
    • 查询审批申请列表
    • 查询审批单的详情数据
    • 查询审批单审批明细
  • 考勤设置管理
    • 保存考勤设置
    • 根据部门id查询考勤设置
    • 根据部门保存考勤加班规则
    • 根据部门查询考勤加班规则
    • 根据部门查询请假规则设置
    • 保存或者更新请假规则
    • 根据部门查询考勤扣款规则
    • 保存考勤扣款规则
  • 考勤管理
    • 归档历史列表
    • 新建考勤报表
    • 月度考勤记录归档
    • 查询考勤数据列表
    • 编辑用户的考勤记录
    • 获取月考勤报表数据
    • 归档历史列表--详情
    • 导入考勤信息
    • 查询用户的考勤状态
    • 批量-导出考勤月份报表
    • 根据用户id和月份查询已归档的考勤明细
  • 薪资配置
    • 获取企业是否设置当月工资
    • 获取企业计薪及津贴设置
    • 保存企业计薪及津贴设置
    • 保存企业工资设置
    • 构造新月份工资报表
  • 薪资管理
    • 查询用户薪资
    • 调薪
    • 员工定薪
    • 根据年月查询企业用户薪资列表
    • 批量-导出工资月份报表
    • 工资数据归档
  • 实战接口
    • 扫码登录
      • pc端-获取加密串-用来生成二维码
      • pc端-获取加密串的状态
    • 更新头像
      • 更新用户头像接口
    • 群发通知
      • 群发通知
      • 获取用户的消息
      • 更新某个消息的状态为已读
      • 删除消息
    • 考勤地图
      • 获取公司经纬度坐标列表
      • 更新公司经纬度列表
  1. 社保

保存或更新用户社保数据

开发中
PUT
/social_securitys/{id}

请求参数

Path 参数
id
string 
必需
示例值:
1063705482939731968
Header 参数
Authorization
string 
可选
默认值:
Bearer {{token}}
Body 参数application/json
userId
string 
企业id
必需
enterprisesPaySocialSecurityThisMonth
integer 
本月是否缴纳社保 0为不缴纳 1为缴纳
必需
format: int32
enterprisesPayTheProvidentFundThisMonth
integer 
本月是否缴纳公积金 0为不缴纳 1为缴纳
必需
format: int32
participatingInTheCityId
string 
参保城市id
必需
socialSecurityType
integer 
参保类型 1为首次开户 2为非首次开户
必需
householdRegistrationType
integer 
户籍类型 1为本市城镇 2为本市农村 3为外埠城镇 4为外埠农村
必需
format: int32
socialSecurityBase
integer 
社保基数
必需
industrialInjuryRatio
number 
工伤比例
必需
socialSecurityNotes
string 
社保备注
必需
providentFundCityId
string 
公积金城市id
必需
providentFundBase
integer 
公积金基数
必需
enterpriseProportion
number 
公积金企业比例
必需
personalProportion
number 
公积金个人比例
必需
enterpriseProvidentFundPayment
string 
公积金企业缴纳数额
必需
personalProvidentFundPayment
string 
公积金个人缴纳数额
必需
providentFundNotes
string 
公积金备注
必需
lastModifyTime
string 
最后修改时间
必需
format: date-time
socialSecuritySwitchUpdateTime
string 
社保是否缴纳变更时间
必需
providentFundSwitchUpdateTime
string 
公积金缴纳变更时间
必需
householdRegistration
null 
户籍
必需
participatingInTheCity
string 
参保城市
必需
providentFundCity
string 
公积金城市
必需
示例
{
  "userId": "1063705482939731968",
  "enterprisesPaySocialSecurityThisMonth": 0,
  "enterprisesPayTheProvidentFundThisMonth": 0,
  "participatingInTheCityId": "1084825908823904256",
  "socialSecurityType": 1,
  "householdRegistrationType": 1,
  "socialSecurityBase": 10000,
  "industrialInjuryRatio": 0.3,
  "socialSecurityNotes": "6432",
  "providentFundCityId": "1084825908823904256",
  "providentFundBase": 10000,
  "enterpriseProportion": 0.12,
  "personalProportion": 0.12,
  "enterpriseProvidentFundPayment": "12.00",
  "personalProvidentFundPayment": "12.00",
  "providentFundNotes": "123",
  "lastModifyTime": "2019-07-12T17:49:40.000+0000",
  "socialSecuritySwitchUpdateTime": "2019-07-12T09:01:13.000+0000",
  "providentFundSwitchUpdateTime": "2019-07-12T09:01:18.000+0000",
  "householdRegistration": null,
  "participatingInTheCity": "北京",
  "providentFundCity": "北京"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://heimahr.itheima.net/api/social_securitys/1063705482939731968' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userId": "1063705482939731968",
    "enterprisesPaySocialSecurityThisMonth": 0,
    "enterprisesPayTheProvidentFundThisMonth": 0,
    "participatingInTheCityId": "1084825908823904256",
    "socialSecurityType": 1,
    "householdRegistrationType": 1,
    "socialSecurityBase": 10000,
    "industrialInjuryRatio": 0.3,
    "socialSecurityNotes": "6432",
    "providentFundCityId": "1084825908823904256",
    "providentFundBase": 10000,
    "enterpriseProportion": 0.12,
    "personalProportion": 0.12,
    "enterpriseProvidentFundPayment": "12.00",
    "personalProvidentFundPayment": "12.00",
    "providentFundNotes": "123",
    "lastModifyTime": "2019-07-12T17:49:40.000+0000",
    "socialSecuritySwitchUpdateTime": "2019-07-12T09:01:13.000+0000",
    "providentFundSwitchUpdateTime": "2019-07-12T09:01:18.000+0000",
    "householdRegistration": null,
    "participatingInTheCity": "北京",
    "providentFundCity": "北京"
}'

返回响应

🟢200成功
application/json
Body
success
boolean 
必需
code
integer 
必需
format: int32
message
string 
必需
data
null 
必需
示例
{
  "success": true,
  "code": 10000,
  "message": "操作成功!",
  "data": null
}
上一页
根据城市id查询参保城市的参保项目
下一页
查询当月报表
Built with