3指定城市的社保数据.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>3指定城市的社保数据</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <style type="text/css">
  7. /* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
  8. /* Author: Nicolas Hery - http://nicolashery.com */
  9. /* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
  10. /* Source: https://github.com/nicolahery/markdownpad-github */
  11. /* RESET
  12. =============================================================================*/
  13. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  14. margin: 0;
  15. padding: 0;
  16. border: 0;
  17. }
  18. /* BODY
  19. =============================================================================*/
  20. body {
  21. font-family: Helvetica, arial, freesans, clean, sans-serif;
  22. font-size: 14px;
  23. line-height: 1.6;
  24. color: #333;
  25. background-color: #fff;
  26. padding: 20px;
  27. max-width: 960px;
  28. margin: 0 auto;
  29. }
  30. body>*:first-child {
  31. margin-top: 0 !important;
  32. }
  33. body>*:last-child {
  34. margin-bottom: 0 !important;
  35. }
  36. /* BLOCKS
  37. =============================================================================*/
  38. p, blockquote, ul, ol, dl, table, pre {
  39. margin: 15px 0;
  40. }
  41. /* HEADERS
  42. =============================================================================*/
  43. h1, h2, h3, h4, h5, h6 {
  44. margin: 20px 0 10px;
  45. padding: 0;
  46. font-weight: bold;
  47. -webkit-font-smoothing: antialiased;
  48. }
  49. h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code {
  50. font-size: inherit;
  51. }
  52. h1 {
  53. font-size: 28px;
  54. color: #000;
  55. }
  56. h2 {
  57. font-size: 24px;
  58. border-bottom: 1px solid #ccc;
  59. color: #000;
  60. }
  61. h3 {
  62. font-size: 18px;
  63. }
  64. h4 {
  65. font-size: 16px;
  66. }
  67. h5 {
  68. font-size: 14px;
  69. }
  70. h6 {
  71. color: #777;
  72. font-size: 14px;
  73. }
  74. body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
  75. margin-top: 0;
  76. padding-top: 0;
  77. }
  78. a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
  79. margin-top: 0;
  80. padding-top: 0;
  81. }
  82. h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
  83. margin-top: 10px;
  84. }
  85. /* LINKS
  86. =============================================================================*/
  87. a {
  88. color: #4183C4;
  89. text-decoration: none;
  90. }
  91. a:hover {
  92. text-decoration: underline;
  93. }
  94. /* LISTS
  95. =============================================================================*/
  96. ul, ol {
  97. padding-left: 30px;
  98. }
  99. ul li > :first-child,
  100. ol li > :first-child,
  101. ul li ul:first-of-type,
  102. ol li ol:first-of-type,
  103. ul li ol:first-of-type,
  104. ol li ul:first-of-type {
  105. margin-top: 0px;
  106. }
  107. ul ul, ul ol, ol ol, ol ul {
  108. margin-bottom: 0;
  109. }
  110. dl {
  111. padding: 0;
  112. }
  113. dl dt {
  114. font-size: 14px;
  115. font-weight: bold;
  116. font-style: italic;
  117. padding: 0;
  118. margin: 15px 0 5px;
  119. }
  120. dl dt:first-child {
  121. padding: 0;
  122. }
  123. dl dt>:first-child {
  124. margin-top: 0px;
  125. }
  126. dl dt>:last-child {
  127. margin-bottom: 0px;
  128. }
  129. dl dd {
  130. margin: 0 0 15px;
  131. padding: 0 15px;
  132. }
  133. dl dd>:first-child {
  134. margin-top: 0px;
  135. }
  136. dl dd>:last-child {
  137. margin-bottom: 0px;
  138. }
  139. /* CODE
  140. =============================================================================*/
  141. pre, code, tt {
  142. font-size: 12px;
  143. font-family: Consolas, "Liberation Mono", Courier, monospace;
  144. }
  145. code, tt {
  146. margin: 0 0px;
  147. padding: 0px 0px;
  148. white-space: nowrap;
  149. border: 1px solid #eaeaea;
  150. background-color: #f8f8f8;
  151. border-radius: 3px;
  152. }
  153. pre>code {
  154. margin: 0;
  155. padding: 0;
  156. white-space: pre;
  157. border: none;
  158. background: transparent;
  159. }
  160. pre {
  161. background-color: #f8f8f8;
  162. border: 1px solid #ccc;
  163. font-size: 13px;
  164. line-height: 19px;
  165. overflow: auto;
  166. padding: 6px 10px;
  167. border-radius: 3px;
  168. }
  169. pre code, pre tt {
  170. background-color: transparent;
  171. border: none;
  172. }
  173. kbd {
  174. -moz-border-bottom-colors: none;
  175. -moz-border-left-colors: none;
  176. -moz-border-right-colors: none;
  177. -moz-border-top-colors: none;
  178. background-color: #DDDDDD;
  179. background-image: linear-gradient(#F1F1F1, #DDDDDD);
  180. background-repeat: repeat-x;
  181. border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD;
  182. border-image: none;
  183. border-radius: 2px 2px 2px 2px;
  184. border-style: solid;
  185. border-width: 1px;
  186. font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  187. line-height: 10px;
  188. padding: 1px 4px;
  189. }
  190. /* QUOTES
  191. =============================================================================*/
  192. blockquote {
  193. border-left: 4px solid #DDD;
  194. padding: 0 15px;
  195. color: #777;
  196. }
  197. blockquote>:first-child {
  198. margin-top: 0px;
  199. }
  200. blockquote>:last-child {
  201. margin-bottom: 0px;
  202. }
  203. /* HORIZONTAL RULES
  204. =============================================================================*/
  205. hr {
  206. clear: both;
  207. margin: 15px 0;
  208. height: 0px;
  209. overflow: hidden;
  210. border: none;
  211. background: transparent;
  212. border-bottom: 4px solid #ddd;
  213. padding: 0;
  214. }
  215. /* TABLES
  216. =============================================================================*/
  217. table th {
  218. font-weight: bold;
  219. }
  220. table th, table td {
  221. border: 1px solid #ccc;
  222. padding: 6px 13px;
  223. }
  224. table tr {
  225. border-top: 1px solid #ccc;
  226. background-color: #fff;
  227. }
  228. table tr:nth-child(2n) {
  229. background-color: #f8f8f8;
  230. }
  231. /* IMAGES
  232. =============================================================================*/
  233. img {
  234. max-width: 100%
  235. }
  236. </style>
  237. </head>
  238. <body>
  239. <h1>3指定城市的社保数据</h1>
  240. <blockquote>
  241. <p>加载城市的社保数据(五险一金等) 由于管理后台配置数据时社保和公积金是分开配置的,有可能会出现返回的公积金是空的。</p>
  242. </blockquote>
  243. <ul>
  244. <li>2018-12-06 增加是否需要社保流水的字段 <code>sb_wage</code></li>
  245. <li>2018-11-20 增加 两个销量字段 <code>sb_vol, fund_vol</code></li>
  246. <li>2016-10-31 增加 预收费用字段 <code>pre_charge</code></li>
  247. <li>2016-09-20 增加补缴的接口</li>
  248. <li>2016-08-19 增加两个字段 <code>shebao_desc 、fund_desc</code></li>
  249. <li>2016-05-16 增加新接口--一个城市可以有多个配置方案</li>
  250. <li>2016-04-21 增加补缴服务费和社保、公积金的补缴月份数。补缴不支持打包了</li>
  251. <li>2016-04-01 增加补缴说明 </li>
  252. <li>2016-03-22 增加公积金比例</li>
  253. <li>2016-03-09 增加能否单独购买公积金字段(fund_buy)</li>
  254. </ul>
  255. <h2>请求</h2>
  256. <blockquote>
  257. <p>URI</p>
  258. </blockquote>
  259. <pre><code>/sbl/shebao/added/setting/v2 GET、POST 2018-11-20 起用 补缴时调用
  260. /sbl/shebao/setting/v2 GET、POST 2018-11-20 起用
  261. </code></pre>
  262. <blockquote>
  263. <p>参数</p>
  264. </blockquote>
  265. <pre><code> Integer city_code; 城市代码(id)
  266. Integer type; 取两值:1:社保、2:公积金 参考[公共数据]的pay_for
  267. </code></pre>
  268. <h2>响应</h2>
  269. <blockquote>
  270. <p>状态码</p>
  271. </blockquote>
  272. <pre><code>600 城市代码值为空
  273. </code></pre>
  274. <blockquote>
  275. <p>V2响应字段描述</p>
  276. </blockquote>
  277. <ul>
  278. <li>
  279. <p>data字段说明</p>
  280. <pre><code>Map
  281. sb_vol int // 社保销量数
  282. fund_vol int // 公积金销量数
  283. wxyj List // 五险一金配置数据
  284. </code></pre>
  285. </li>
  286. <li>
  287. <p>wxyj字段说明 </p>
  288. <pre><code>List
  289. int id; // 主表ID 即其它接口中的cid
  290. int city_code; // 城市代码
  291. String shebao_type; // 类型名称
  292. double shebao_charge; // 社保服务费
  293. double shebao_card_charge; // 社保办卡服务费
  294. double fund_charge; // 公积金服务费
  295. double package_charge; // 社保、公积金打包服务费
  296. int month; // 可购买起始月份 201509、201511
  297. int nums; // 一单需要购买的月份数 默认:1 有可能大于默认值。
  298. boolean pack; // 是否能打包购买
  299. int inc_date; // 增员截止日(结合month提供月份截止提示)
  300. boolean fund_buy; // 公积金能否单独购买 true:能
  301. String shebao_note; // 社保补缴说明
  302. String fund_note; // 公积金补缴说明
  303. double added_charge; // 补缴的服务费,补缴不支持打包了。
  304. short addeds_num; // 社保补缴月份数, 0为不可补缴
  305. short addedf_num; // 公积金补缴月份数, 0为不可补缴
  306. boolean hk_addr; // 是否需要户藉地址。
  307. boolean sb_wage; // 是否需要社保流水。
  308. int firstM; // 增员首次月份数
  309. String shebao_desc; // 社保购买描述
  310. String fund_desc; // 公积金购买描述
  311. List&lt;ShebaoCityDataItem&gt; shebaos; // 各户籍的社保数据
  312. Integer hukou_type; // 户籍性质
  313. List&lt;ShebaoNamePrice&gt; data // 险种数据
  314. Integer i; // 显示索引
  315. String n; // 险种名称
  316. double p; // 险种价格
  317. List&lt;FundCityDataItem&gt; funds; // 公积金数据
  318. Integer hukou_type; // 户籍性质
  319. double max; // 最大额度
  320. double min; // 最低额度
  321. double e; // 企业百分比例
  322. double p; // 个人百分比例
  323. </code></pre>
  324. </li>
  325. </ul>
  326. <blockquote>
  327. <p>范例</p>
  328. </blockquote>
  329. <pre><code>{
  330. &quot;msg&quot;: &quot;&quot;,
  331. &quot;data&quot;: {
  332. &quot;sb_vol&quot;: 30,
  333. &quot;wxyj&quot;: [{
  334. &quot;id&quot;: 1,
  335. &quot;city_code&quot;: 1001,
  336. &quot;shebao_type&quot;: &quot;标准&quot;,
  337. &quot;shebao_charge&quot;: 0.01,
  338. &quot;shebao_card_charge&quot;: 66.0,
  339. &quot;fund_charge&quot;: 69.0,
  340. &quot;package_charge&quot;: 99.0,
  341. &quot;month&quot;: 201811,
  342. &quot;nums&quot;: 2,
  343. &quot;pack&quot;: true,
  344. &quot;inc_date&quot;: 20,
  345. &quot;fund_buy&quot;: true,
  346. &quot;shebao_note&quot;: &quot;1.可补缴最近1个月。下补缴单前请先下一个正常月份的单,然后再点击补缴社保。补缴月份跟正常缴费月份必须连续。\r\n2.空&quot;,
  347. &quot;fund_note&quot;: &quot;~可补缴最近6个月(补金额不补年限)。下补缴单前请先下一个正常月份的单,然后再点击公积金补缴。补缴月份跟正常缴费月份必须连续。\r\n~空&quot;,
  348. &quot;added_charge&quot;: 299.0,
  349. &quot;addeds_num&quot;: 1,
  350. &quot;addedf_num&quot;: 6,
  351. &quot;hk_addr&quot;: true,
  352. &quot;sb_wage&quot;: false,
  353. &quot;firstM&quot;: 2,
  354. &quot;shebao_desc&quot;: &quot;1. 第一个提示\r\n\r\n2. 第二个提示\r\n3. 第三个提示\r\n4. 第四个提示&quot;,
  355. &quot;fund_desc&quot;: &quot;1. 广州地区公积金中心不出公积金卡和对账簿,请在公积金中心前台设置密码后网上查询即可。(多行)\r\n2. 第二条提示(单行)&quot;,
  356. &quot;shebaos&quot;: [{
  357. &quot;hukou_type&quot;: 1,
  358. &quot;data&quot;: [{
  359. &quot;i&quot;: 20,
  360. &quot;n&quot;: &quot;预收费用&quot;,
  361. &quot;p&quot;: 0.1
  362. }]
  363. },
  364. {
  365. &quot;hukou_type&quot;: 2,
  366. &quot;data&quot;: [{
  367. &quot;i&quot;: 1,
  368. &quot;n&quot;: &quot;养老部分&quot;,
  369. &quot;p&quot;: 697.4
  370. },
  371. {
  372. &quot;i&quot;: 2,
  373. &quot;n&quot;: &quot;基本医疗&quot;,
  374. &quot;p&quot;: 400.95
  375. },
  376. {
  377. &quot;i&quot;: 3,
  378. &quot;n&quot;: &quot;失业部分&quot;,
  379. &quot;p&quot;: 15.92
  380. },
  381. {
  382. &quot;i&quot;: 4,
  383. &quot;n&quot;: &quot;生育部分&quot;,
  384. &quot;p&quot;: 37.87
  385. },
  386. {
  387. &quot;i&quot;: 5,
  388. &quot;n&quot;: &quot;工伤部分&quot;,
  389. &quot;p&quot;: 3.79
  390. },
  391. {
  392. &quot;i&quot;: 11,
  393. &quot;n&quot;: &quot;重大疾病&quot;,
  394. &quot;p&quot;: 19.31
  395. },
  396. {
  397. &quot;i&quot;: 15,
  398. &quot;n&quot;: &quot;残保金&quot;,
  399. &quot;p&quot;: 82.1
  400. }]
  401. },
  402. {
  403. &quot;hukou_type&quot;: 3,
  404. &quot;data&quot;: [{
  405. &quot;i&quot;: 1,
  406. &quot;n&quot;: &quot;养老部分&quot;,
  407. &quot;p&quot;: 697.4
  408. },
  409. {
  410. &quot;i&quot;: 2,
  411. &quot;n&quot;: &quot;基本医疗&quot;,
  412. &quot;p&quot;: 400.95
  413. },
  414. {
  415. &quot;i&quot;: 3,
  416. &quot;n&quot;: &quot;失业部分&quot;,
  417. &quot;p&quot;: 15.92
  418. },
  419. {
  420. &quot;i&quot;: 4,
  421. &quot;n&quot;: &quot;生育部分&quot;,
  422. &quot;p&quot;: 37.87
  423. },
  424. {
  425. &quot;i&quot;: 5,
  426. &quot;n&quot;: &quot;工伤部分&quot;,
  427. &quot;p&quot;: 3.79
  428. },
  429. {
  430. &quot;i&quot;: 11,
  431. &quot;n&quot;: &quot;重大疾病&quot;,
  432. &quot;p&quot;: 19.31
  433. },
  434. {
  435. &quot;i&quot;: 15,
  436. &quot;n&quot;: &quot;残保金&quot;,
  437. &quot;p&quot;: 82.1
  438. }]
  439. },
  440. {
  441. &quot;hukou_type&quot;: 4,
  442. &quot;data&quot;: [{
  443. &quot;i&quot;: 1,
  444. &quot;n&quot;: &quot;养老部分&quot;,
  445. &quot;p&quot;: 697.4
  446. },
  447. {
  448. &quot;i&quot;: 2,
  449. &quot;n&quot;: &quot;基本医疗&quot;,
  450. &quot;p&quot;: 400.95
  451. },
  452. {
  453. &quot;i&quot;: 3,
  454. &quot;n&quot;: &quot;失业部分&quot;,
  455. &quot;p&quot;: 15.92
  456. },
  457. {
  458. &quot;i&quot;: 4,
  459. &quot;n&quot;: &quot;生育部分&quot;,
  460. &quot;p&quot;: 37.87
  461. },
  462. {
  463. &quot;i&quot;: 5,
  464. &quot;n&quot;: &quot;工伤部分&quot;,
  465. &quot;p&quot;: 3.79
  466. },
  467. {
  468. &quot;i&quot;: 11,
  469. &quot;n&quot;: &quot;重大疾病&quot;,
  470. &quot;p&quot;: 19.31
  471. },
  472. {
  473. &quot;i&quot;: 15,
  474. &quot;n&quot;: &quot;残保金&quot;,
  475. &quot;p&quot;: 82.1
  476. }]
  477. }],
  478. &quot;funds&quot;: [{
  479. &quot;hukou_type&quot;: 1,
  480. &quot;max&quot;: 3000.0,
  481. &quot;min&quot;: 190.0,
  482. &quot;e&quot;: 5.0,
  483. &quot;p&quot;: 5.0
  484. },
  485. {
  486. &quot;hukou_type&quot;: 2,
  487. &quot;max&quot;: 3000.0,
  488. &quot;min&quot;: 190.0,
  489. &quot;e&quot;: 5.0,
  490. &quot;p&quot;: 5.0
  491. },
  492. {
  493. &quot;hukou_type&quot;: 3,
  494. &quot;max&quot;: 3000.0,
  495. &quot;min&quot;: 190.0,
  496. &quot;e&quot;: 5.0,
  497. &quot;p&quot;: 5.0
  498. },
  499. {
  500. &quot;hukou_type&quot;: 4,
  501. &quot;max&quot;: 3000.0,
  502. &quot;min&quot;: 190.0,
  503. &quot;e&quot;: 5.0,
  504. &quot;p&quot;: 5.0
  505. }]
  506. }],
  507. &quot;fund_vol&quot;: 35
  508. },
  509. &quot;code&quot;: 200
  510. }
  511. </code></pre>
  512. </body>
  513. </html>
  514. <!-- This document was created with MarkdownPad, the Markdown editor for Windows (http://markdownpad.com) -->