calc_task.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8">
  5. <style type="text/css">
  6. <!--
  7. @import url(md.css);
  8. @import url(../md.css);
  9. -->
  10. </style>
  11. </head>
  12. <body>
  13. <h1>1 发起计算社保数据</h1>
  14. <ol>
  15. <li>本接口只是以城市为单位进行计算.</li>
  16. <li>结合参数配置, 城市方案, 员工方案进行计算.</li>
  17. <li>当企业开通了代缴时, 忽略城市方案的配置,只结合基本的参数配置和员工方案进行计算.</li>
  18. <li>基数类型: <strong>实际工资</strong> 暂时不支持.</li>
  19. </ol>
  20. <h3>1.1 计算请求</h3>
  21. <p>可以多个城市一次性提交计算.</p>
  22. <h5>URI</h5>
  23. <pre><code>/he/shebao_plan/setting/task POST
  24. </code></pre>
  25. <h5>参数</h5>
  26. <pre><code>String citys; 城市代码, 多个以&quot;,&quot;逗号间隔.
  27. String opt_month; 核算月份 2018-05 或 201805
  28. String ws_id; websocket的会话ID.
  29. </code></pre>
  30. <h3>1.2 计算响应</h3>
  31. <ol>
  32. <li>返回计算任务生成数据的主ID(以城市做为粒度)列表.</li>
  33. <li>计算过程中, 有详细的明细消息由<a href="common.html#ws">WebSocket服务</a>输出.</li>
  34. </ol>
  35. <h5>状态码</h5>
  36. <pre><code>200 计算数据成功完成.
  37. 500 有检查异常或计算过程中出错.
  38. 600 参数不合要求.
  39. </code></pre>
  40. <h5>响应示例</h5>
  41. <pre><code>{
  42. &quot;data&quot;: [60,
  43. 61],
  44. &quot;msg&quot;: &quot;&quot;,
  45. &quot;code&quot;: 200
  46. }
  47. </code></pre>
  48. <hr>
  49. <h1>2 计算生成的在保增员数据</h1>
  50. <ul>
  51. <li>这是计算完成后,需要展示计算数据的结果.</li>
  52. <li>发送计算完成返回的主ID来请求数据.</li>
  53. </ul>
  54. <h3>2.1 请求数据</h3>
  55. <h5>URI</h5>
  56. <pre><code>/he/shebao/list/task/data POST 加载在保和增员数据时请求
  57. </code></pre>
  58. <h5>参数</h5>
  59. <table><thead>
  60. <tr>
  61. <th align="left">字段</th>
  62. <th align="left">类型</th>
  63. <th align="left">Length</th>
  64. <th align="left">必须有值</th>
  65. <th align="left">必传</th>
  66. <th align="left">描述</th>
  67. </tr>
  68. </thead><tbody>
  69. <tr>
  70. <td align="left"><a href="common.html#page">curr</a></td>
  71. <td align="left">int</td>
  72. <td align="left">值1 ~ 1000</td>
  73. <td align="left"></td>
  74. <td align="left"></td>
  75. <td align="left">当前页码</td>
  76. </tr>
  77. <tr>
  78. <td align="left">ids</td>
  79. <td align="left">string</td>
  80. <td align="left"></td>
  81. <td align="left">Y</td>
  82. <td align="left">Y</td>
  83. <td align="left">多个主数据ID以逗号间隔</td>
  84. </tr>
  85. <tr>
  86. <td align="left">inc_normal_dec</td>
  87. <td align="left">int</td>
  88. <td align="left">值1,5,8</td>
  89. <td align="left"></td>
  90. <td align="left"></td>
  91. <td align="left">增减员类型()</td>
  92. </tr>
  93. </tbody></table>
  94. <ul>
  95. <li>inc_normal_dec 的值</li>
  96. </ul>
  97. <pre><code>INC(1, &quot;增员&quot;),
  98. NORMAL(5, &quot;在保&quot;),
  99. DEC(8, &quot;减员&quot;)
  100. </code></pre>
  101. <div id="taskdatalistresp"></div>
  102. <h3>2.2 响应</h3>
  103. <p>数据最外层结构是Map.</p>
  104. <h5>data 字段</h5>
  105. <table><thead>
  106. <tr>
  107. <th align="left">字段</th>
  108. <th align="left">类型</th>
  109. <th align="left">字段名称</th>
  110. </tr>
  111. </thead><tbody>
  112. <tr>
  113. <td align="left">datas</td>
  114. <td align="left">WXYJManagerVO</td>
  115. <td align="left">在保或增员数据</td>
  116. </tr>
  117. <tr>
  118. <td align="left"><a href="common.html#page">page</a></td>
  119. <td align="left">Object</td>
  120. <td align="left">分页数据</td>
  121. </tr>
  122. </tbody></table>
  123. <h5>data.WXYJManagerVO字段</h5>
  124. <pre><code>Map&lt;String, Object&gt; headList; // 社保缴纳项的英文, 中文表头
  125. List&lt;?&gt; dataList; // 数据列表
  126. int inc_count; // 增员数
  127. int normal_count; // 在保数
  128. int dec_count; // 减员数
  129. </code></pre>
  130. <h5>WXYJManagerVO.dataList字段</h5>
  131. <table><thead>
  132. <tr>
  133. <th align="left">字段</th>
  134. <th align="left">类型</th>
  135. <th align="left">字段名称</th>
  136. </tr>
  137. </thead><tbody>
  138. <tr>
  139. <td align="left"><a href="t/wxyj.html#TWxyjEmployee"> wxyj</a></td>
  140. <td align="left">TWxyjEmployee</td>
  141. <td align="left">员工的社保/公积金主要数据</td>
  142. </tr>
  143. <tr>
  144. <td align="left"><a href="t/wxyj.html#TCompanyUser">comUser</a></td>
  145. <td align="left">TCompanyUser</td>
  146. <td align="left">员工的信息</td>
  147. </tr>
  148. <tr>
  149. <td align="left">city_name;</td>
  150. <td align="left">string</td>
  151. <td align="left">城市名称</td>
  152. </tr>
  153. <tr>
  154. <td align="left"><a href="t/wxyj.html#TWxyjEmployeeData">shebao</a></td>
  155. <td align="left">TWxyjEmployeeData</td>
  156. <td align="left">员工的社保数据</td>
  157. </tr>
  158. <tr>
  159. <td align="left">shebao_ent</td>
  160. <td align="left">Map</td>
  161. <td align="left">员工的社保企业缴纳明细数据</td>
  162. </tr>
  163. <tr>
  164. <td align="left">shebao_p</td>
  165. <td align="left">MAP</td>
  166. <td align="left">员工的社保个人缴纳明细数据</td>
  167. </tr>
  168. <tr>
  169. <td align="left"><a href="t/wxyj.html#TWxyjEmployeeData">fund</a></td>
  170. <td align="left">TWxyjEmployeeData</td>
  171. <td align="left">员工的公积金数据</td>
  172. </tr>
  173. </tbody></table>
  174. <h5>在保或增员的响应数据示例</h5>
  175. <p>两个主数据一起请求的数据示例, 广州和深圳.</p>
  176. <pre><code>{
  177. &quot;code&quot;: 200,
  178. &quot;msg&quot;: &quot;&quot;,
  179. &quot;data&quot;: {
  180. &quot;datas&quot;: {
  181. &quot;headList&quot;: {
  182. &quot;medical&quot;: &quot;基本医疗&quot;,
  183. &quot;major&quot;: &quot;重大疾病&quot;,
  184. &quot;lose_job&quot;: &quot;失业部分&quot;,
  185. &quot;pension&quot;: &quot;养老部分&quot;,
  186. &quot;birth&quot;: &quot;生育部分&quot;,
  187. &quot;disabled&quot;: &quot;残保金&quot;,
  188. &quot;injury&quot;: &quot;工伤部分&quot;
  189. },
  190. &quot;dataList&quot;: [{
  191. &quot;wxyj&quot;: {
  192. &quot;id&quot;: 53,
  193. &quot;summary_id&quot;: 8,
  194. &quot;ent_id&quot;: 1,
  195. &quot;city_code&quot;: 1001,
  196. &quot;opt_month&quot;: 201803,
  197. &quot;com_userid&quot;: 1,
  198. &quot;param_name&quot;: &quot;标准&quot;,
  199. &quot;total_fee&quot;: 2550.0,
  200. &quot;ent_total&quot;: 750.0,
  201. &quot;p_total&quot;: 1800.0,
  202. &quot;shebao_month&quot;: 201803,
  203. &quot;shebao_normal&quot;: 1,
  204. &quot;fund_month&quot;: 201803,
  205. &quot;fund_normal&quot;: 1,
  206. &quot;shebao_status&quot;: 31,
  207. &quot;fund_status&quot;: 31,
  208. &quot;gen_time&quot;: 1525968000000,
  209. &quot;update_time&quot;: 1526007314000,
  210. &quot;shebao_note&quot;: &quot;&quot;,
  211. &quot;fund_note&quot;: &quot;&quot;
  212. },
  213. &quot;comUser&quot;: {
  214. &quot;user_id&quot;: 1,
  215. &quot;company_id&quot;: 1,
  216. &quot;user_name&quot;: &quot;赖先生&quot;,
  217. &quot;id_card&quot;: &quot;123456789012345678&quot;,
  218. &quot;nation&quot;: &quot;汉&quot;,
  219. &quot;phone&quot;: &quot;12345678901&quot;,
  220. &quot;gender&quot;: 1,
  221. &quot;bank_card&quot;: &quot;&quot;,
  222. &quot;bank_name&quot;: &quot;&quot;,
  223. &quot;status&quot;: 1,
  224. &quot;gen_time&quot;: 1526007314000
  225. },
  226. &quot;city_name&quot;: &quot;广州&quot;,
  227. &quot;shebao&quot;: {
  228. &quot;summary_id&quot;: 8,
  229. &quot;eid&quot;: 53,
  230. &quot;wxyj&quot;: 1,
  231. &quot;radix_type&quot;: 2,
  232. &quot;radix&quot;: 1895.0,
  233. &quot;total_fee&quot;: 1257.33,
  234. &quot;ent_amount&quot;: 910.84,
  235. &quot;p_amount&quot;: 346.49,
  236. &quot;charge&quot;: 69.0,
  237. &quot;card_charge&quot;: 0.0,
  238. &quot;ent_data&quot;: &quot;{\&quot;pension\&quot;:443.8,\&quot;medical\&quot;:311.85,\&quot;birth\&quot;:37.8675,\&quot;lose_job\&quot;:12.128,\&quot;injury\&quot;:3.79,\&quot;major\&quot;:19.305,\&quot;disabled\&quot;:82.1}&quot;,
  239. &quot;p_data&quot;: &quot;{\&quot;pension\&quot;:253.6,\&quot;medical\&quot;:89.1,\&quot;birth\&quot;:0.0,\&quot;lose_job\&quot;:3.79,\&quot;injury\&quot;:0.0,\&quot;major\&quot;:0.0,\&quot;disabled\&quot;:0.0}&quot;,
  240. &quot;pre_cost&quot;: 0.0,
  241. &quot;gen_time&quot;: 1525968000000,
  242. &quot;gen_note&quot;: &quot;采用配置的各项最低基数;未找到操作月(201802)的社保有效数据,作增员。&quot;
  243. },
  244. &quot;shebao_ent&quot;: {
  245. &quot;medical&quot;: 311.85,
  246. &quot;major&quot;: 19.305,
  247. &quot;lose_job&quot;: 12.128,
  248. &quot;pension&quot;: 443.8,
  249. &quot;birth&quot;: 37.8675,
  250. &quot;disabled&quot;: 82.1,
  251. &quot;injury&quot;: 3.79
  252. },
  253. &quot;shebao_p&quot;: {
  254. &quot;medical&quot;: 89.1,
  255. &quot;major&quot;: 0.0,
  256. &quot;lose_job&quot;: 3.79,
  257. &quot;pension&quot;: 253.6,
  258. &quot;birth&quot;: 0.0,
  259. &quot;disabled&quot;: 0.0,
  260. &quot;injury&quot;: 0.0
  261. },
  262. &quot;fund&quot;: {
  263. &quot;summary_id&quot;: 8,
  264. &quot;eid&quot;: 53,
  265. &quot;wxyj&quot;: 2,
  266. &quot;radix_type&quot;: 1,
  267. &quot;radix&quot;: 15000.0,
  268. &quot;total_fee&quot;: 2550.0,
  269. &quot;ent_amount&quot;: 750.0,
  270. &quot;p_amount&quot;: 1800.0,
  271. &quot;charge&quot;: 69.0,
  272. &quot;card_charge&quot;: 0.0,
  273. &quot;ent_data&quot;: &quot;5.0&quot;,
  274. &quot;p_data&quot;: &quot;12.0&quot;,
  275. &quot;pre_cost&quot;: 0.0,
  276. &quot;gen_time&quot;: 1525968000000,
  277. &quot;gen_note&quot;: &quot;未找到操作月(201802)的公积金有效数据,作增员。&quot;
  278. }
  279. },
  280. {
  281. &quot;wxyj&quot;: {
  282. &quot;id&quot;: 54,
  283. &quot;summary_id&quot;: 8,
  284. &quot;ent_id&quot;: 1,
  285. &quot;city_code&quot;: 1001,
  286. &quot;opt_month&quot;: 201803,
  287. &quot;com_userid&quot;: 11,
  288. &quot;param_name&quot;: &quot;&quot;,
  289. &quot;total_fee&quot;: 2550.0,
  290. &quot;ent_total&quot;: 750.0,
  291. &quot;p_total&quot;: 1800.0,
  292. &quot;shebao_month&quot;: 0,
  293. &quot;shebao_normal&quot;: 0,
  294. &quot;fund_month&quot;: 201803,
  295. &quot;fund_normal&quot;: 1,
  296. &quot;shebao_status&quot;: 0,
  297. &quot;fund_status&quot;: 31,
  298. &quot;gen_time&quot;: 1525968000000,
  299. &quot;update_time&quot;: 1526007314000,
  300. &quot;shebao_note&quot;: &quot;&quot;,
  301. &quot;fund_note&quot;: &quot;&quot;
  302. },
  303. &quot;comUser&quot;: {
  304. &quot;user_id&quot;: 11,
  305. &quot;company_id&quot;: 1,
  306. &quot;user_name&quot;: &quot;赖先&quot;,
  307. &quot;id_card&quot;: &quot;123456789012345670&quot;,
  308. &quot;nation&quot;: &quot;汉&quot;,
  309. &quot;phone&quot;: &quot;12345678901&quot;,
  310. &quot;gender&quot;: 1,
  311. &quot;bank_card&quot;: &quot;&quot;,
  312. &quot;bank_name&quot;: &quot;&quot;,
  313. &quot;status&quot;: 1,
  314. &quot;gen_time&quot;: 1526007314000
  315. },
  316. &quot;city_name&quot;: &quot;广州&quot;,
  317. &quot;shebao&quot;: {
  318. &quot;summary_id&quot;: 8,
  319. &quot;eid&quot;: 53,
  320. &quot;wxyj&quot;: 1,
  321. &quot;radix_type&quot;: 2,
  322. &quot;radix&quot;: 1895.0,
  323. &quot;total_fee&quot;: 1257.33,
  324. &quot;ent_amount&quot;: 910.84,
  325. &quot;p_amount&quot;: 346.49,
  326. &quot;charge&quot;: 69.0,
  327. &quot;card_charge&quot;: 0.0,
  328. &quot;ent_data&quot;: &quot;{\&quot;pension\&quot;:443.8,\&quot;medical\&quot;:311.85,\&quot;birth\&quot;:37.8675,\&quot;lose_job\&quot;:12.128,\&quot;injury\&quot;:3.79,\&quot;major\&quot;:19.305,\&quot;disabled\&quot;:82.1}&quot;,
  329. &quot;p_data&quot;: &quot;{\&quot;pension\&quot;:253.6,\&quot;medical\&quot;:89.1,\&quot;birth\&quot;:0.0,\&quot;lose_job\&quot;:3.79,\&quot;injury\&quot;:0.0,\&quot;major\&quot;:0.0,\&quot;disabled\&quot;:0.0}&quot;,
  330. &quot;pre_cost&quot;: 0.0,
  331. &quot;gen_time&quot;: 1525968000000,
  332. &quot;gen_note&quot;: &quot;采用配置的各项最低基数;未找到操作月(201802)的社保有效数据,作增员。&quot;
  333. },
  334. &quot;shebao_ent&quot;: {
  335. &quot;medical&quot;: 311.85,
  336. &quot;major&quot;: 19.305,
  337. &quot;lose_job&quot;: 12.128,
  338. &quot;pension&quot;: 443.8,
  339. &quot;birth&quot;: 37.8675,
  340. &quot;disabled&quot;: 82.1,
  341. &quot;injury&quot;: 3.79
  342. },
  343. &quot;shebao_p&quot;: {
  344. &quot;medical&quot;: 89.1,
  345. &quot;major&quot;: 0.0,
  346. &quot;lose_job&quot;: 3.79,
  347. &quot;pension&quot;: 253.6,
  348. &quot;birth&quot;: 0.0,
  349. &quot;disabled&quot;: 0.0,
  350. &quot;injury&quot;: 0.0
  351. },
  352. &quot;fund&quot;: {
  353. &quot;summary_id&quot;: 8,
  354. &quot;eid&quot;: 54,
  355. &quot;wxyj&quot;: 2,
  356. &quot;radix_type&quot;: 1,
  357. &quot;radix&quot;: 15000.0,
  358. &quot;total_fee&quot;: 2550.0,
  359. &quot;ent_amount&quot;: 750.0,
  360. &quot;p_amount&quot;: 1800.0,
  361. &quot;charge&quot;: 69.0,
  362. &quot;card_charge&quot;: 0.0,
  363. &quot;ent_data&quot;: &quot;5.0&quot;,
  364. &quot;p_data&quot;: &quot;12.0&quot;,
  365. &quot;pre_cost&quot;: 0.0,
  366. &quot;gen_time&quot;: 1525968000000,
  367. &quot;gen_note&quot;: &quot;未找到操作月(201802)的公积金有效数据,作增员。&quot;
  368. }
  369. },
  370. {
  371. &quot;wxyj&quot;: {
  372. &quot;id&quot;: 57,
  373. &quot;summary_id&quot;: 11,
  374. &quot;ent_id&quot;: 1,
  375. &quot;city_code&quot;: 1014,
  376. &quot;opt_month&quot;: 201805,
  377. &quot;com_userid&quot;: 2,
  378. &quot;param_name&quot;: &quot;&quot;,
  379. &quot;total_fee&quot;: 3000.0,
  380. &quot;ent_total&quot;: 1200.0,
  381. &quot;p_total&quot;: 1800.0,
  382. &quot;shebao_month&quot;: 0,
  383. &quot;shebao_normal&quot;: 0,
  384. &quot;fund_month&quot;: 201805,
  385. &quot;fund_normal&quot;: 1,
  386. &quot;shebao_status&quot;: 0,
  387. &quot;fund_status&quot;: 31,
  388. &quot;gen_time&quot;: 1525968000000,
  389. &quot;update_time&quot;: 1526011210000,
  390. &quot;shebao_note&quot;: &quot;&quot;,
  391. &quot;fund_note&quot;: &quot;&quot;
  392. },
  393. &quot;comUser&quot;: {
  394. &quot;user_id&quot;: 2,
  395. &quot;company_id&quot;: 1,
  396. &quot;user_name&quot;: &quot;刘小&quot;,
  397. &quot;id_card&quot;: &quot;123456789012345681&quot;,
  398. &quot;nation&quot;: &quot;汉&quot;,
  399. &quot;phone&quot;: &quot;12345678901&quot;,
  400. &quot;gender&quot;: 0,
  401. &quot;bank_card&quot;: &quot;&quot;,
  402. &quot;bank_name&quot;: &quot;&quot;,
  403. &quot;status&quot;: 1,
  404. &quot;gen_time&quot;: 1526011210000
  405. },
  406. &quot;city_name&quot;: &quot;深圳&quot;,
  407. &quot;shebao&quot;: {
  408. &quot;summary_id&quot;: 8,
  409. &quot;eid&quot;: 53,
  410. &quot;wxyj&quot;: 1,
  411. &quot;radix_type&quot;: 2,
  412. &quot;radix&quot;: 1895.0,
  413. &quot;total_fee&quot;: 1257.33,
  414. &quot;ent_amount&quot;: 910.84,
  415. &quot;p_amount&quot;: 346.49,
  416. &quot;charge&quot;: 69.0,
  417. &quot;card_charge&quot;: 0.0,
  418. &quot;ent_data&quot;: &quot;{\&quot;pension\&quot;:443.8,\&quot;medical\&quot;:311.85,\&quot;birth\&quot;:37.8675,\&quot;lose_job\&quot;:12.128,\&quot;injury\&quot;:3.79,\&quot;major\&quot;:19.305,\&quot;disabled\&quot;:82.1}&quot;,
  419. &quot;p_data&quot;: &quot;{\&quot;pension\&quot;:253.6,\&quot;medical\&quot;:89.1,\&quot;birth\&quot;:0.0,\&quot;lose_job\&quot;:3.79,\&quot;injury\&quot;:0.0,\&quot;major\&quot;:0.0,\&quot;disabled\&quot;:0.0}&quot;,
  420. &quot;pre_cost&quot;: 0.0,
  421. &quot;gen_time&quot;: 1525968000000,
  422. &quot;gen_note&quot;: &quot;采用配置的各项最低基数;未找到操作月(201802)的社保有效数据,作增员。&quot;
  423. },
  424. &quot;shebao_ent&quot;: {
  425. &quot;medical&quot;: 311.85,
  426. &quot;major&quot;: 19.305,
  427. &quot;lose_job&quot;: 12.128,
  428. &quot;pension&quot;: 443.8,
  429. &quot;birth&quot;: 37.8675,
  430. &quot;disabled&quot;: 82.1,
  431. &quot;injury&quot;: 3.79
  432. },
  433. &quot;shebao_p&quot;: {
  434. &quot;medical&quot;: 89.1,
  435. &quot;major&quot;: 0.0,
  436. &quot;lose_job&quot;: 3.79,
  437. &quot;pension&quot;: 253.6,
  438. &quot;birth&quot;: 0.0,
  439. &quot;disabled&quot;: 0.0,
  440. &quot;injury&quot;: 0.0
  441. },
  442. &quot;fund&quot;: {
  443. &quot;summary_id&quot;: 11,
  444. &quot;eid&quot;: 57,
  445. &quot;wxyj&quot;: 2,
  446. &quot;radix_type&quot;: 1,
  447. &quot;radix&quot;: 15000.0,
  448. &quot;total_fee&quot;: 3000.0,
  449. &quot;ent_amount&quot;: 1200.0,
  450. &quot;p_amount&quot;: 1800.0,
  451. &quot;charge&quot;: 69.0,
  452. &quot;card_charge&quot;: 0.0,
  453. &quot;ent_data&quot;: &quot;8.0&quot;,
  454. &quot;p_data&quot;: &quot;12.0&quot;,
  455. &quot;pre_cost&quot;: 0.0,
  456. &quot;gen_time&quot;: 1525968000000,
  457. &quot;gen_note&quot;: &quot;未找到操作月(201804)的公积金有效数据,作增员。&quot;
  458. }
  459. },
  460. {
  461. &quot;wxyj&quot;: {
  462. &quot;id&quot;: 58,
  463. &quot;summary_id&quot;: 11,
  464. &quot;ent_id&quot;: 1,
  465. &quot;city_code&quot;: 1014,
  466. &quot;opt_month&quot;: 201805,
  467. &quot;com_userid&quot;: 3,
  468. &quot;param_name&quot;: &quot;&quot;,
  469. &quot;total_fee&quot;: 3600.0,
  470. &quot;ent_total&quot;: 1800.0,
  471. &quot;p_total&quot;: 1800.0,
  472. &quot;shebao_month&quot;: 0,
  473. &quot;shebao_normal&quot;: 0,
  474. &quot;fund_month&quot;: 201805,
  475. &quot;fund_normal&quot;: 1,
  476. &quot;shebao_status&quot;: 0,
  477. &quot;fund_status&quot;: 31,
  478. &quot;gen_time&quot;: 1525968000000,
  479. &quot;update_time&quot;: 1526011210000,
  480. &quot;shebao_note&quot;: &quot;&quot;,
  481. &quot;fund_note&quot;: &quot;&quot;
  482. },
  483. &quot;comUser&quot;: {
  484. &quot;user_id&quot;: 3,
  485. &quot;company_id&quot;: 1,
  486. &quot;user_name&quot;: &quot;邓小姐&quot;,
  487. &quot;id_card&quot;: &quot;123456789012345660&quot;,
  488. &quot;nation&quot;: &quot;汉&quot;,
  489. &quot;phone&quot;: &quot;12345678901&quot;,
  490. &quot;gender&quot;: 0,
  491. &quot;bank_card&quot;: &quot;&quot;,
  492. &quot;bank_name&quot;: &quot;&quot;,
  493. &quot;status&quot;: 1,
  494. &quot;gen_time&quot;: 1526011210000
  495. },
  496. &quot;city_name&quot;: &quot;深圳&quot;,
  497. &quot;shebao&quot;: {
  498. &quot;summary_id&quot;: 8,
  499. &quot;eid&quot;: 53,
  500. &quot;wxyj&quot;: 1,
  501. &quot;radix_type&quot;: 2,
  502. &quot;radix&quot;: 1895.0,
  503. &quot;total_fee&quot;: 1257.33,
  504. &quot;ent_amount&quot;: 910.84,
  505. &quot;p_amount&quot;: 346.49,
  506. &quot;charge&quot;: 69.0,
  507. &quot;card_charge&quot;: 0.0,
  508. &quot;ent_data&quot;: &quot;{\&quot;pension\&quot;:443.8,\&quot;medical\&quot;:311.85,\&quot;birth\&quot;:37.8675,\&quot;lose_job\&quot;:12.128,\&quot;injury\&quot;:3.79,\&quot;major\&quot;:19.305,\&quot;disabled\&quot;:82.1}&quot;,
  509. &quot;p_data&quot;: &quot;{\&quot;pension\&quot;:253.6,\&quot;medical\&quot;:89.1,\&quot;birth\&quot;:0.0,\&quot;lose_job\&quot;:3.79,\&quot;injury\&quot;:0.0,\&quot;major\&quot;:0.0,\&quot;disabled\&quot;:0.0}&quot;,
  510. &quot;pre_cost&quot;: 0.0,
  511. &quot;gen_time&quot;: 1525968000000,
  512. &quot;gen_note&quot;: &quot;采用配置的各项最低基数;未找到操作月(201802)的社保有效数据,作增员。&quot;
  513. },
  514. &quot;shebao_ent&quot;: {
  515. &quot;medical&quot;: 311.85,
  516. &quot;major&quot;: 19.305,
  517. &quot;lose_job&quot;: 12.128,
  518. &quot;pension&quot;: 443.8,
  519. &quot;birth&quot;: 37.8675,
  520. &quot;disabled&quot;: 82.1,
  521. &quot;injury&quot;: 3.79
  522. },
  523. &quot;shebao_p&quot;: {
  524. &quot;medical&quot;: 89.1,
  525. &quot;major&quot;: 0.0,
  526. &quot;lose_job&quot;: 3.79,
  527. &quot;pension&quot;: 253.6,
  528. &quot;birth&quot;: 0.0,
  529. &quot;disabled&quot;: 0.0,
  530. &quot;injury&quot;: 0.0
  531. },
  532. &quot;fund&quot;: {
  533. &quot;summary_id&quot;: 11,
  534. &quot;eid&quot;: 58,
  535. &quot;wxyj&quot;: 2,
  536. &quot;radix_type&quot;: 1,
  537. &quot;radix&quot;: 15000.0,
  538. &quot;total_fee&quot;: 3600.0,
  539. &quot;ent_amount&quot;: 1800.0,
  540. &quot;p_amount&quot;: 1800.0,
  541. &quot;charge&quot;: 69.0,
  542. &quot;card_charge&quot;: 0.0,
  543. &quot;ent_data&quot;: &quot;12.0&quot;,
  544. &quot;p_data&quot;: &quot;12.0&quot;,
  545. &quot;pre_cost&quot;: 0.0,
  546. &quot;gen_time&quot;: 1525968000000,
  547. &quot;gen_note&quot;: &quot;未找到操作月(201804)的公积金有效数据,作增员。&quot;
  548. }
  549. },
  550. {
  551. &quot;wxyj&quot;: {
  552. &quot;id&quot;: 59,
  553. &quot;summary_id&quot;: 11,
  554. &quot;ent_id&quot;: 1,
  555. &quot;city_code&quot;: 1014,
  556. &quot;opt_month&quot;: 201805,
  557. &quot;com_userid&quot;: 12,
  558. &quot;param_name&quot;: &quot;&quot;,
  559. &quot;total_fee&quot;: 3000.0,
  560. &quot;ent_total&quot;: 1200.0,
  561. &quot;p_total&quot;: 1800.0,
  562. &quot;shebao_month&quot;: 0,
  563. &quot;shebao_normal&quot;: 0,
  564. &quot;fund_month&quot;: 201805,
  565. &quot;fund_normal&quot;: 1,
  566. &quot;shebao_status&quot;: 0,
  567. &quot;fund_status&quot;: 31,
  568. &quot;gen_time&quot;: 1525968000000,
  569. &quot;update_time&quot;: 1526011210000,
  570. &quot;shebao_note&quot;: &quot;&quot;,
  571. &quot;fund_note&quot;: &quot;&quot;
  572. },
  573. &quot;comUser&quot;: {
  574. &quot;user_id&quot;: 12,
  575. &quot;company_id&quot;: 1,
  576. &quot;user_name&quot;: &quot;刘小&quot;,
  577. &quot;id_card&quot;: &quot;123456789012345610&quot;,
  578. &quot;nation&quot;: &quot;汉&quot;,
  579. &quot;phone&quot;: &quot;12345678901&quot;,
  580. &quot;gender&quot;: 1,
  581. &quot;bank_card&quot;: &quot;&quot;,
  582. &quot;bank_name&quot;: &quot;&quot;,
  583. &quot;status&quot;: 1,
  584. &quot;gen_time&quot;: 1526011210000
  585. },
  586. &quot;city_name&quot;: &quot;深圳&quot;,
  587. &quot;shebao&quot;: {
  588. &quot;summary_id&quot;: 8,
  589. &quot;eid&quot;: 53,
  590. &quot;wxyj&quot;: 1,
  591. &quot;radix_type&quot;: 2,
  592. &quot;radix&quot;: 1895.0,
  593. &quot;total_fee&quot;: 1257.33,
  594. &quot;ent_amount&quot;: 910.84,
  595. &quot;p_amount&quot;: 346.49,
  596. &quot;charge&quot;: 69.0,
  597. &quot;card_charge&quot;: 0.0,
  598. &quot;ent_data&quot;: &quot;{\&quot;pension\&quot;:443.8,\&quot;medical\&quot;:311.85,\&quot;birth\&quot;:37.8675,\&quot;lose_job\&quot;:12.128,\&quot;injury\&quot;:3.79,\&quot;major\&quot;:19.305,\&quot;disabled\&quot;:82.1}&quot;,
  599. &quot;p_data&quot;: &quot;{\&quot;pension\&quot;:253.6,\&quot;medical\&quot;:89.1,\&quot;birth\&quot;:0.0,\&quot;lose_job\&quot;:3.79,\&quot;injury\&quot;:0.0,\&quot;major\&quot;:0.0,\&quot;disabled\&quot;:0.0}&quot;,
  600. &quot;pre_cost&quot;: 0.0,
  601. &quot;gen_time&quot;: 1525968000000,
  602. &quot;gen_note&quot;: &quot;采用配置的各项最低基数;未找到操作月(201802)的社保有效数据,作增员。&quot;
  603. },
  604. &quot;shebao_ent&quot;: {
  605. &quot;medical&quot;: 311.85,
  606. &quot;major&quot;: 19.305,
  607. &quot;lose_job&quot;: 12.128,
  608. &quot;pension&quot;: 443.8,
  609. &quot;birth&quot;: 37.8675,
  610. &quot;disabled&quot;: 82.1,
  611. &quot;injury&quot;: 3.79
  612. },
  613. &quot;shebao_p&quot;: {
  614. &quot;medical&quot;: 89.1,
  615. &quot;major&quot;: 0.0,
  616. &quot;lose_job&quot;: 3.79,
  617. &quot;pension&quot;: 253.6,
  618. &quot;birth&quot;: 0.0,
  619. &quot;disabled&quot;: 0.0,
  620. &quot;injury&quot;: 0.0
  621. },
  622. &quot;fund&quot;: {
  623. &quot;summary_id&quot;: 11,
  624. &quot;eid&quot;: 59,
  625. &quot;wxyj&quot;: 2,
  626. &quot;radix_type&quot;: 1,
  627. &quot;radix&quot;: 15000.0,
  628. &quot;total_fee&quot;: 3000.0,
  629. &quot;ent_amount&quot;: 1200.0,
  630. &quot;p_amount&quot;: 1800.0,
  631. &quot;charge&quot;: 69.0,
  632. &quot;card_charge&quot;: 0.0,
  633. &quot;ent_data&quot;: &quot;8.0&quot;,
  634. &quot;p_data&quot;: &quot;12.0&quot;,
  635. &quot;pre_cost&quot;: 0.0,
  636. &quot;gen_time&quot;: 1525968000000,
  637. &quot;gen_note&quot;: &quot;未找到操作月(201804)的公积金有效数据,作增员。&quot;
  638. }
  639. }],
  640. &quot;inc_count&quot;: 5,
  641. &quot;normal_count&quot;: 0,
  642. &quot;dec_count&quot;: 0
  643. },
  644. &quot;page&quot;: {
  645. &quot;size&quot;: 20,
  646. &quot;first&quot;: 1,
  647. &quot;curr&quot;: 1,
  648. &quot;last&quot;: 1,
  649. &quot;total&quot;: 5,
  650. &quot;start&quot;: 0,
  651. &quot;finish&quot;: 5
  652. }
  653. }
  654. }
  655. </code></pre>
  656. <hr>
  657. <h1>3 计算生成的减员数据</h1>
  658. <h3>3.1 请求数据</h3>
  659. <h5>URI</h5>
  660. <pre><code>/he/shebao/list/task/dec/data POST
  661. </code></pre>
  662. <h5>参数</h5>
  663. <table><thead>
  664. <tr>
  665. <th align="left">字段</th>
  666. <th align="left">类型</th>
  667. <th align="left">Length</th>
  668. <th align="left">必须有值</th>
  669. <th align="left">必传</th>
  670. <th align="left">描述</th>
  671. </tr>
  672. </thead><tbody>
  673. <tr>
  674. <td align="left"><a href="common.html#page">curr</a></td>
  675. <td align="left">int</td>
  676. <td align="left">值1 ~ 1000</td>
  677. <td align="left"></td>
  678. <td align="left"></td>
  679. <td align="left">当前页码</td>
  680. </tr>
  681. <tr>
  682. <td align="left">ids</td>
  683. <td align="left">string</td>
  684. <td align="left"></td>
  685. <td align="left">Y</td>
  686. <td align="left">Y</td>
  687. <td align="left">多个主数据ID以逗号间隔</td>
  688. </tr>
  689. </tbody></table>
  690. <h3>3.2 响应</h3>
  691. <p>数据最外层结构是Map.</p>
  692. <h5>data 字段</h5>
  693. <table><thead>
  694. <tr>
  695. <th align="left">字段</th>
  696. <th align="left">类型</th>
  697. <th align="left">字段名称</th>
  698. </tr>
  699. </thead><tbody>
  700. <tr>
  701. <td align="left">datas</td>
  702. <td align="left">List</td>
  703. <td align="left">减员的列表数据</td>
  704. </tr>
  705. <tr>
  706. <td align="left"><a href="common.html#page">page</a></td>
  707. <td align="left">Object</td>
  708. <td align="left">分页数据</td>
  709. </tr>
  710. </tbody></table>
  711. <div id="datas3"></div>
  712. <h5>data.datas 字段</h5>
  713. <table><thead>
  714. <tr>
  715. <th align="left">字段</th>
  716. <th align="left">类型</th>
  717. <th align="left">字段名称</th>
  718. </tr>
  719. </thead><tbody>
  720. <tr>
  721. <td align="left"><a href="t/wxyj.html#TWxyjEmployeeDec">dec</a></td>
  722. <td align="left">TWxyjEmployeeDec</td>
  723. <td align="left">减员的列表数据</td>
  724. </tr>
  725. <tr>
  726. <td align="left"><a href="t/wxyj.html#TCompanyUser">comUser</a></td>
  727. <td align="left">TCompanyUser</td>
  728. <td align="left">员工基本数据</td>
  729. </tr>
  730. <tr>
  731. <td align="left">city_name</td>
  732. <td align="left">string</td>
  733. <td align="left">城市名称</td>
  734. </tr>
  735. </tbody></table>
  736. <h5>响应数据示例</h5>
  737. <pre><code>暂时没有, 后期有数据时补上.
  738. </code></pre>
  739. <hr>
  740. <h1>4 导出计算生成的数据</h1>
  741. <ul>
  742. <li>计算结果页面 [导出结果]调用的接口.</li>
  743. </ul>
  744. <h3>4.1 请求</h3>
  745. <h5>URI</h5>
  746. <pre><code>/he/shebao/export/task_datas POST
  747. </code></pre>
  748. <h5>请求参数</h5>
  749. <pre><code>String summary_ids 主数据标识, 多个以逗号间隔.
  750. </code></pre>
  751. <h3>4.2 响应</h3>
  752. <h5>有异常或无数据</h5>
  753. <p>返回JSON格式的异常信息数据.</p>
  754. <h5>成功</h5>
  755. <p>响应文件内容给客户端.</p>
  756. <hr>
  757. <h1>5 设置成存档或代缴</h1>
  758. <ul>
  759. <li>企业用户未开通代缴, 些操作只是存档</li>
  760. <li>企业用户开通了代缴, 此操作存档加设置成代缴.</li>
  761. </ul>
  762. <h3>5.1 请求处理</h3>
  763. <h5>URI</h5>
  764. <pre><code>/he/shebao/setting/in_file_proxy POST
  765. </code></pre>
  766. <h5>参数</h5>
  767. <pre><code>String summary_ids // 多个主数据ID以逗号间隔.
  768. </code></pre>
  769. <h3>5.2 响应</h3>
  770. <p>返回各个主数据的处理信息, 结构是 List .</p>
  771. <h5>状态码</h5>
  772. <pre><code>200 处理成功, 有各主数据的处理情况.
  773. 600 参数不合要求.
  774. </code></pre>
  775. <h5>响应数据示例</h5>
  776. <pre><code>{
  777. &quot;data&quot;: [&quot;广州 成功设置为存档&quot;,
  778. &quot;深圳 设置为代缴&quot;],
  779. &quot;msg&quot;: &quot;&quot;,
  780. &quot;code&quot;: 200
  781. }
  782. </code></pre>
  783. <hr>
  784. <h1 id="added_task"> 6 提交计算生成补缴数据</h1>
  785. <ul>
  786. <li>需要提交一个核算月份, 此月份必须是当前的核算月份.</li>
  787. <li>补缴月份必须满足配置上的月数限制. 当前购买月与补缴月份的月数.</li>
  788. </ul>
  789. <h3>6.1 请求处理</h3>
  790. <h5>URI</h5>
  791. <pre><code>/he/shebao_plan/setting/task/added POST
  792. </code></pre>
  793. <h5>参数</h5>
  794. <pre><code>Integer city_code, // 城市代码
  795. Integer opt_month, // 核算月份
  796. Integer shebao_month, // 社保补缴月份
  797. Integer fund_month, // 公积金补缴月份
  798. String user_ids // 多个员工的ID以逗号间隔.
  799. </code></pre>
  800. <ul>
  801. <li>不补缴公积金的话, 公积金月份值传0 (fund_month=0). 社保亦如此.</li>
  802. </ul>
  803. <h3>6.2 响应</h3>
  804. <p>返回计算成功与否.</p>
  805. <h5>状态码</h5>
  806. <pre><code>200 处理成功.
  807. 500 计算过程中有异常, 需要提示前端.
  808. 600 参数不合要求.
  809. </code></pre>
  810. <h5>响应数据示例</h5>
  811. <ul>
  812. <li><p>未成功</p>
  813. <pre><code>{
  814. &quot;data&quot;: &quot;补缴月份超出了月数限制&quot;,
  815. &quot;msg&quot;: &quot;&quot;,
  816. &quot;code&quot;: 600
  817. }
  818. </code></pre></li>
  819. <li><p>成功</p>
  820. <pre><code>{
  821. &quot;data&quot;: null,
  822. &quot;msg&quot;: &quot;&quot;,
  823. &quot;code&quot;: 200
  824. }
  825. </code></pre></li>
  826. </ul>
  827. <hr>
  828. <h1>7 用户历史补缴列表</h1>
  829. <p>返回指定用户的补缴列表</p>
  830. <h3>7.1 请求数据</h3>
  831. <h5>URI</h5>
  832. <pre><code>shebao_plan/list/added POST
  833. </code></pre>
  834. <h5>参数</h5>
  835. <pre><code>Integer user_id // 员工的标识.
  836. </code></pre>
  837. <h3>7.2 响应数据</h3>
  838. <h5>data字段</h5>
  839. <pre><code>List&lt;UserAddedStatusVO&gt;
  840. String opt_month; // 核算月份
  841. String month; // 社保 公积金 的补缴月份
  842. String wxyj; // 社保 公积金
  843. int status; // 状态 0: 失败 1:成功.
  844. </code></pre>
  845. <h5>状态码</h5>
  846. <pre><code>200 处理成功.
  847. 600 参数不合要求.
  848. </code></pre>
  849. <h5>响应数据示例</h5>
  850. <ul>
  851. <li><p>未成功</p>
  852. <pre><code>{
  853. &quot;data&quot;: &quot;无效的员工标识&quot;,
  854. &quot;msg&quot;: &quot;&quot;,
  855. &quot;code&quot;: 600
  856. }
  857. </code></pre></li>
  858. <li><p>成功</p>
  859. <pre><code>{
  860. &quot;data&quot;: [],
  861. &quot;msg&quot;: &quot;&quot;,
  862. &quot;code&quot;: 200
  863. }
  864. </code></pre></li>
  865. </ul>
  866. <hr>
  867. <script src="md.js"></script>
  868. </body>
  869. </html>