123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <style type="text/css">
- <!--
- @import url(md.css);
- -->
- </style>
-
-
- </head>
- <body>
- <h1>3指定城市的社保数据</h1>
- <blockquote>
- <p>加载城市的社保数据(五险一金等) 由于管理后台配置数据时社保和公积金是分开配置的,有可能会出现返回的公积金是空的。</p>
- </blockquote>
- <ul>
- <li>2018-12-06 增加是否需要社保流水的字段 <code>sb_wage</code></li>
- <li>2018-11-20 增加 两个销量字段 <code>sb_vol, fund_vol</code></li>
- <li>2016-10-31 增加 预收费用字段 <code>pre_charge</code></li>
- <li>2016-09-20 增加补缴的接口</li>
- <li>2016-08-19 增加两个字段 <code>shebao_desc 、fund_desc</code></li>
- <li>2016-05-16 增加新接口--一个城市可以有多个配置方案</li>
- <li>2016-04-21 增加补缴服务费和社保、公积金的补缴月份数。补缴不支持打包了</li>
- <li>2016-04-01 增加补缴说明 </li>
- <li>2016-03-22 增加公积金比例</li>
- <li>2016-03-09 增加能否单独购买公积金字段(fund_buy)</li>
- </ul>
- <h2>请求</h2>
- <blockquote>
- <p>URI</p>
- </blockquote>
- <pre><code>/sbl/shebao/added/setting/v2 GET、POST 2018-11-20 起用 补缴时调用
- /sbl/shebao/setting/v2 GET、POST 2018-11-20 起用
- </code></pre>
- <blockquote>
- <p>参数</p>
- </blockquote>
- <pre><code> Integer city_code; 城市代码(id)
- Integer type; 取两值:1:社保、2:公积金 参考[公共数据]的pay_for
- </code></pre>
- <h2>响应</h2>
- <blockquote>
- <p>状态码</p>
- </blockquote>
- <pre><code>600 城市代码值为空
- </code></pre>
- <blockquote>
- <p>V2响应字段描述</p>
- </blockquote>
- <ul>
- <li><p>data字段说明</p>
- <pre><code>Map
- sb_vol int // 社保销量数
- fund_vol int // 公积金销量数
- wxyj List // 五险一金配置数据
- </code></pre></li>
- <li><p>wxyj字段说明 </p>
- <pre><code>List
- int id; // 主表ID 即其它接口中的cid
- int city_code; // 城市代码
- String shebao_type; // 类型名称
- double shebao_charge; // 社保服务费
- double shebao_card_charge; // 社保办卡服务费
- double fund_charge; // 公积金服务费
- double package_charge; // 社保、公积金打包服务费
- int month; // 可购买起始月份 201509、201511
- int nums; // 一单需要购买的月份数 默认:1 有可能大于默认值。
- boolean pack; // 是否能打包购买
- int inc_date; // 增员截止日(结合month提供月份截止提示)
- boolean fund_buy; // 公积金能否单独购买 true:能
- String shebao_note; // 社保补缴说明
- String fund_note; // 公积金补缴说明
- double added_charge; // 补缴的服务费,补缴不支持打包了。
- short addeds_num; // 社保补缴月份数, 0为不可补缴
- short addedf_num; // 公积金补缴月份数, 0为不可补缴
- boolean hk_addr; // 是否需要户藉地址。
- boolean sb_wage; // 是否需要社保流水。
- int firstM; // 增员首次月份数
- String shebao_desc; // 社保购买描述
- String fund_desc; // 公积金购买描述
- List<ShebaoCityDataItem> shebaos; // 各户籍的社保数据
- Integer hukou_type; // 户籍性质
- List<ShebaoNamePrice> data // 险种数据
- Integer i; // 显示索引
- String n; // 险种名称
- double p; // 险种价格
- List<FundCityDataItem> funds; // 公积金数据
- Integer hukou_type; // 户籍性质
- double max; // 最大额度
- double min; // 最低额度
- double e; // 企业百分比例
- double p; // 个人百分比例
- </code></pre></li>
- </ul>
- <blockquote>
- <p>范例</p>
- </blockquote>
- <pre><code>{
- "msg": "",
- "data": {
- "sb_vol": 30,
- "wxyj": [{
- "id": 1,
- "city_code": 1001,
- "shebao_type": "标准",
- "shebao_charge": 0.01,
- "shebao_card_charge": 66.0,
- "fund_charge": 69.0,
- "package_charge": 99.0,
- "month": 201811,
- "nums": 2,
- "pack": true,
- "inc_date": 20,
- "fund_buy": true,
- "shebao_note": "1.可补缴最近1个月。下补缴单前请先下一个正常月份的单,然后再点击补缴社保。补缴月份跟正常缴费月份必须连续。\r\n2.空",
- "fund_note": "~可补缴最近6个月(补金额不补年限)。下补缴单前请先下一个正常月份的单,然后再点击公积金补缴。补缴月份跟正常缴费月份必须连续。\r\n~空",
- "added_charge": 299.0,
- "addeds_num": 1,
- "addedf_num": 6,
- "hk_addr": true,
- "sb_wage": false,
- "firstM": 2,
- "shebao_desc": "1. 第一个提示\r\n\r\n2. 第二个提示\r\n3. 第三个提示\r\n4. 第四个提示",
- "fund_desc": "1. 广州地区公积金中心不出公积金卡和对账簿,请在公积金中心前台设置密码后网上查询即可。(多行)\r\n2. 第二条提示(单行)",
- "shebaos": [{
- "hukou_type": 1,
- "data": [{
- "i": 20,
- "n": "预收费用",
- "p": 0.1
- }]
- },
- {
- "hukou_type": 2,
- "data": [{
- "i": 1,
- "n": "养老部分",
- "p": 697.4
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 400.95
- },
- {
- "i": 3,
- "n": "失业部分",
- "p": 15.92
- },
- {
- "i": 4,
- "n": "生育部分",
- "p": 37.87
- },
- {
- "i": 5,
- "n": "工伤部分",
- "p": 3.79
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 19.31
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 82.1
- }]
- },
- {
- "hukou_type": 3,
- "data": [{
- "i": 1,
- "n": "养老部分",
- "p": 697.4
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 400.95
- },
- {
- "i": 3,
- "n": "失业部分",
- "p": 15.92
- },
- {
- "i": 4,
- "n": "生育部分",
- "p": 37.87
- },
- {
- "i": 5,
- "n": "工伤部分",
- "p": 3.79
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 19.31
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 82.1
- }]
- },
- {
- "hukou_type": 4,
- "data": [{
- "i": 1,
- "n": "养老部分",
- "p": 697.4
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 400.95
- },
- {
- "i": 3,
- "n": "失业部分",
- "p": 15.92
- },
- {
- "i": 4,
- "n": "生育部分",
- "p": 37.87
- },
- {
- "i": 5,
- "n": "工伤部分",
- "p": 3.79
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 19.31
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 82.1
- }]
- }],
- "funds": [{
- "hukou_type": 1,
- "max": 3000.0,
- "min": 190.0,
- "e": 5.0,
- "p": 5.0
- },
- {
- "hukou_type": 2,
- "max": 3000.0,
- "min": 190.0,
- "e": 5.0,
- "p": 5.0
- },
- {
- "hukou_type": 3,
- "max": 3000.0,
- "min": 190.0,
- "e": 5.0,
- "p": 5.0
- },
- {
- "hukou_type": 4,
- "max": 3000.0,
- "min": 190.0,
- "e": 5.0,
- "p": 5.0
- }]
- }],
- "fund_vol": 35
- },
- "code": 200
- }
- </code></pre>
- <hr>
- <h1>2. v1 旧请求接口(20181120起停用)</h1>
- <blockquote>
- <p>URI</p>
- </blockquote>
- <pre><code>/sbl/shebao/added/setting/v1 GET、POST 2016-09-20 补缴时调用
- /sbl/shebao/setting/v1 GET、POST 2016-05-16 起用
- </code></pre>
- <blockquote>
- <p>参数</p>
- </blockquote>
- <pre><code> Integer city_code; 城市代码(id)
- Integer type; 取两值:1:社保、2:公积金 参考[公共数据]的pay_for
- </code></pre>
- <h2>响应</h2>
- <blockquote>
- <p>状态码</p>
- </blockquote>
- <pre><code>600 城市代码值为空
- </code></pre>
- <blockquote>
- <p>响应字段描述</p>
- </blockquote>
- <pre><code>List
- int id; // 主表ID 即其它接口中的cid
- int city_code; // 城市代码
- String shebao_type; // 类型名称
- double shebao_charge; // 社保服务费
- double shebao_card_charge; // 社保办卡服务费
- double fund_charge; // 公积金服务费
- double package_charge; // 社保、公积金打包服务费
- int month; // 可购买起始月份 201509、201511
- int nums; // 一单需要购买的月份数 默认:1 有可能大于默认值。
- boolean pack; // 是否能打包购买
- int inc_date; // 增员截止日(结合month提供月份截止提示)
- boolean fund_buy; // 公积金能否单独购买 true:能
- String shebao_note; // 社保补缴说明
- String fund_note; // 公积金补缴说明
- double added_charge; // 补缴的服务费,补缴不支持打包了。
- short addeds_num; // 社保补缴月份数, 0为不可补缴
- short addedf_num; // 公积金补缴月份数, 0为不可补缴
- boolean hk_addr; // 是否需要户藉地址。
- int firstM; // 增员首次月份数
- String shebao_desc; // 社保购买描述
- String fund_desc; // 公积金购买描述
- List<ShebaoCityDataItem> shebaos; // 各户籍的社保数据
- Integer hukou_type; // 户籍性质
- List<ShebaoNamePrice> data // 险种数据
- Integer i; // 显示索引
- String n; // 险种名称
- double p; // 险种价格
- List<FundCityDataItem> funds; // 公积金数据
- Integer hukou_type; // 户籍性质
- double max; // 最大额度
- double min; // 最低额度
- double e; // 企业百分比例
- double p; // 个人百分比例
- </code></pre>
- <blockquote>
- <p>范例</p>
- </blockquote>
- <pre><code>{
- "data": [{
- "id": 1,
- "city_code": 1001,
- "shebao_type": "标准",
- "shebao_charge": 69.0,
- "shebao_card_charge": 66.0,
- "fund_charge": 69.0,
- "package_charge": 99.0,
- "month": 201611,
- "nums": 1,
- "pack": true,
- "inc_date": 13,
- "fund_buy": true,
- "shebao_note": "可补缴最近1个月。下补缴单前请先下一个正常月份的单,然后再点击补缴社保。补缴月份跟正常缴费月份必须连续。",
- "fund_note": "可补缴最近6个月(补金额不补年限)。下补缴单前请先下一个正常月份的单,然后再点击补缴社保。补缴月份跟正常缴费月份必须连续。",
- "added_charge": 99.0,
- "addeds_num": 1,
- "addedf_num": 1,
- "hk_addr": true,
- "firstM": 2,
- "shebao_desc": "这里是广州测试社保购买信息",
- "fund_desc": "这里是广州测试公积金购买信息2这里是广州测试公积金购买信息3这里是广州测试公积金购买信息4这里是广州测试公积金购买信息",
- "shebaos": [{
- "hukou_type": 1,
- "data": [{
- "i": 1,
- "n": "养老保险",
- "p": 639.32
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 365.22
- },
- {
- "i": 3,
- "n": "失业保险",
- "p": 15.92
- },
- {
- "i": 4,
- "n": "生育保险",
- "p": 34.49
- },
- {
- "i": 5,
- "n": "工伤保险",
- "p": 3.79
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 17.59
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 45.37
- },
- {
- "i": 20,
- "n": "预收费用",
- "p": 10.0
- }]
- },
- {
- "hukou_type": 2,
- "data": [{
- "i": 1,
- "n": "养老保险",
- "p": 639.32
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 365.22
- },
- {
- "i": 3,
- "n": "失业保险",
- "p": 15.92
- },
- {
- "i": 4,
- "n": "生育保险",
- "p": 34.49
- },
- {
- "i": 5,
- "n": "工伤保险",
- "p": 3.79
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 17.59
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 45.37
- },
- {
- "i": 20,
- "n": "预收费用",
- "p": 10.0
- }]
- },
- {
- "hukou_type": 3,
- "data": [{
- "i": 1,
- "n": "养老保险",
- "p": 639.32
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 365.22
- },
- {
- "i": 3,
- "n": "失业保险",
- "p": 15.92
- },
- {
- "i": 4,
- "n": "生育保险",
- "p": 34.49
- },
- {
- "i": 5,
- "n": "工伤保险",
- "p": 3.79
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 17.59
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 45.37
- },
- {
- "i": 20,
- "n": "预收费用",
- "p": 10.0
- }]
- },
- {
- "hukou_type": 4,
- "data": [{
- "i": 1,
- "n": "养老保险",
- "p": 639.32
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 365.22
- },
- {
- "i": 3,
- "n": "失业保险",
- "p": 15.92
- },
- {
- "i": 4,
- "n": "生育保险",
- "p": 34.49
- },
- {
- "i": 5,
- "n": "工伤保险",
- "p": 3.79
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 17.59
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 45.37
- },
- {
- "i": 20,
- "n": "预收费用",
- "p": 10.0
- }]
- }],
- "funds": [{
- "hukou_type": 1,
- "max": 3382.0,
- "min": 190.0,
- "e": 5.0,
- "p": 5.0
- },
- {
- "hukou_type": 2,
- "max": 3382.0,
- "min": 190.0,
- "e": 5.0,
- "p": 5.0
- },
- {
- "hukou_type": 3,
- "max": 3382.0,
- "min": 190.0,
- "e": 5.0,
- "p": 5.0
- },
- {
- "hukou_type": 4,
- "max": 3382.0,
- "min": 190.0,
- "e": 5.0,
- "p": 5.0
- }]
- }],
- "msg": "",
- "code": 200
- }
- </code></pre>
- <hr>
- <h1>3. v1 旧请求</h1>
- <blockquote>
- <p>URI</p>
- </blockquote>
- <pre><code>/sbl/shebao/city/v1 2015-11-20 起停用 X
- /sbl/shebao/city/v2 2016-05-16 起停用 X
- GET、POST
- </code></pre>
- <blockquote>
- <p>参数</p>
- </blockquote>
- <pre><code>v1:
- Integer city_code; 城市代码(id)
- v2:
- Integer city_code; 城市代码(id)
- Integer type; 取两值:1:社保、2:公积金 参考[公共数据]的pay_for
- </code></pre>
- <h2>响应</h2>
- <blockquote>
- <p>状态码</p>
- </blockquote>
- <pre><code>600 城市代码值为空
- </code></pre>
- <blockquote>
- <p>响应字段</p>
- </blockquote>
- <pre><code>int id; // 主表ID 即其它接口中的cid
- int city_code; // 城市代码
- String shebao_type; // 类型名称
- double shebao_charge; // 社保服务费
- double shebao_card_charge; // 社保办卡服务费
- double fund_charge; // 公积金服务费
- double package_charge; // 社保、公积金打包服务费
- int month; // 可购买起始月份 201509、201511
- int nums; // 一单需要购买的月份数 默认:1 有可能大于默认值。
- boolean pack; // 是否能打包购买
- int inc_date; // 增员截止日(结合month提供月份截止提示)
- boolean fund_buy; // 公积金能否单独购买 true:能
- String shebao_note; // 社保补缴说明
- String fund_note; // 公积金补缴说明
- double added_charge; // 补缴的服务费,补缴不支持打包了。
- short addeds_num; // 社保补缴月份数, 0为不可补缴
- short addedf_num; // 公积金补缴月份数, 0为不可补缴
- List<ShebaoCityDataItem> shebaos; // 各户籍的社保数据
- Integer hukou_type; // 户籍性质
- List<ShebaoNamePrice> data // 险种数据
- Integer i; // 显示索引
- String n; // 险种名称
- double p; // 险种价格
- List<FundCityDataItem> funds; // 公积金数据
- Integer hukou_type; // 户籍性质
- double max; // 最大额度
- double min; // 最低额度
- double e; // 企业百分比例
- double p; // 个人百分比例
- </code></pre>
- <blockquote>
- <p>范例</p>
- </blockquote>
- <pre><code>{
- "data": {
- "id": 1,
- "city_code": 1001,
- "shebao_type": "标准",
- "shebao_charge": 59.0,
- "shebao_card_charge": 0.0,
- "fund_charge": 59.0,
- "package_charge": 99.0,
- "month": 201605,
- "nums": 1,
- "pack": true,
- "inc_date": 18,
- "fund_buy": false,
- "shebao_note": "可补缴最近3个月。补缴前请确保您已成功购买至少一个月非补缴社保。",
- "fund_note": "可以补缴6个月。",
- "added_charge": 99.0,
- "addeds_num": 1,
- "addedf_num": 2,
- "shebaos": [{
- "hukou_type": 1,
- "data": [{
- "i": 1,
- "n": "养老保险",
- "p": 529.76
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 371.2
- },
- {
- "i": 3,
- "n": "失业保险",
- "p": 32.22
- },
- {
- "i": 4,
- "n": "生育保险",
- "p": 31.55
- },
- {
- "i": 5,
- "n": "工伤保险",
- "p": 7.58
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 16.09
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 45.37
- }]
- },
- {
- "hukou_type": 2,
- "data": [{
- "i": 1,
- "n": "养老保险",
- "p": 529.76
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 371.2
- },
- {
- "i": 3,
- "n": "失业保险",
- "p": 32.22
- },
- {
- "i": 4,
- "n": "生育保险",
- "p": 31.55
- },
- {
- "i": 5,
- "n": "工伤保险",
- "p": 7.58
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 16.09
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 45.37
- }]
- },
- {
- "hukou_type": 3,
- "data": [{
- "i": 1,
- "n": "养老保险",
- "p": 529.76
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 371.2
- },
- {
- "i": 3,
- "n": "失业保险",
- "p": 32.22
- },
- {
- "i": 4,
- "n": "生育保险",
- "p": 31.55
- },
- {
- "i": 5,
- "n": "工伤保险",
- "p": 7.58
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 16.09
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 45.37
- }]
- },
- {
- "hukou_type": 4,
- "data": [{
- "i": 1,
- "n": "养老保险",
- "p": 529.76
- },
- {
- "i": 2,
- "n": "基本医疗",
- "p": 371.2
- },
- {
- "i": 3,
- "n": "失业保险",
- "p": 32.22
- },
- {
- "i": 4,
- "n": "生育保险",
- "p": 31.55
- },
- {
- "i": 5,
- "n": "工伤保险",
- "p": 7.58
- },
- {
- "i": 11,
- "n": "重大疾病",
- "p": 16.09
- },
- {
- "i": 15,
- "n": "残保金",
- "p": 45.37
- }]
- }],
- "funds": [{
- "hukou_type": 1,
- "max": 4646.4,
- "min": 304.0,
- "e": 8.0,
- "p": 8.0
- },
- {
- "hukou_type": 2,
- "max": 4646.4,
- "min": 304.0,
- "e": 8.0,
- "p": 8.0
- },
- {
- "hukou_type": 3,
- "max": 4646.4,
- "min": 304.0,
- "e": 8.0,
- "p": 8.0
- },
- {
- "hukou_type": 4,
- "max": 4646.4,
- "min": 304.0,
- "e": 8.0,
- "p": 8.0
- }]
- },
- "msg": "",
- "code": 200
- }
- </code></pre>
- <hr>
- <script src="md.js"></script>
- </body>
- </html>
|