3.4.1 云财务对接
<p>[TOC]</p>
<pre><code> 人力管家与奥琦玮云财务进行打通互传,人力管家进行工资进行核算之后,就直接映射到云财务系统进行相关的财务业务处理。
简述流程:
首先需要在人力管家中提供公共参数,把公共参数提供给云财务的对应负责人人员,云财务配置之后会返回一个接口域名,把此链接配置到人力管家之后,在联系云财务进行推送,推送完成后,在人力管家中进行配置工资项目对应即可。</code></pre>
<h3>1.人力管家获取参数</h3>
<h4>1.1 获取公共参数</h4>
<ul>
<li>首先在后台数据库中【acewill_app】表中进行获取,如下图所示,则表示此条数据为云财务的数据
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/3094f320dd179d4b18678b74b36e427e?showdoc=.jpg" alt="" />
需要给云财务提供对应的字段内容为【ID】【app_secret】【corp_name】三个字段的内容。
备注:如果表内没有ycw这个标识数据的话,请进行维护。(不知道如何维护的,请实施群内沟通)</li>
</ul>
<h4>1.2 添加科目列表</h4>
<ul>
<li>人力管家数据库中需要执行一段代码,代码如下,直接放到对应的库中执行,执行即可。
<pre><code class="language-sql">INSERT INTO `sys_field_column`
( `moduleID`, `title`, `name`, `nameRel`, `dynamic`, `relatedId`, `needConfig`, `width`, `orderNum`,
`fixed`, `colType`, `colValue`, `config`, `createTime`, `des`, `valid`, `sortOrNot`)
VALUES ( 102
, '配置云财务', 'cloudfiItem', NULL, '0', NULL, '1', '150', '6', '0',
NULL, NULL, NULL, '2019-10-30 12:08:35', NULL, '1', NULL);</code></pre>
<h3>2.云财务反馈</h3>
<h4>2.1 云财务提供地址</h4></li>
<li>以上的数据提供给云财务之后,云财务会返回域名地址(云财务实施操作),将人力管家提供的数据维护下方
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/6e2a7fd98077d0b2e1ed2b3f0115c717?showdoc=.jpg" alt="" /></li>
<li>同步组织(此项操作需要等人力管家第【3】项标题完成后操作)
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/8a8280c50b45e1a9278952eedb598ab3?showdoc=.jpg" alt="" />
<h3>3.对应工资项目</h3>
<h4>3.1 配置域名</h4></li>
<li>首先在规则配置中配置云财务返回的域名地址。
路径:进入首页的规则设置,然后在配置信息中配置。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/b00474e914299f1a93d66862bf829b43?showdoc=.jpg" alt="" />
配置云财务接口域名
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/2376a1a69a3171aba7d014f16fd67022?showdoc=.jpg" alt="" />
<h4>3.2 人力管家更新SQL</h4></li>
<li>在数据库继续执行一下SQL
<pre><code class="language-sql">INSERT INTO notify_app_business(id, appName, businessType, notifyUrl, notifyTimes, creatTime, updateTime, des) VALUES (1, 'ycw', 'cloudfiSalary', 'http://xxxxx/cloudfi/api/humansalaryaccount/Notify', 3, '2019-02-25 13:41:40', NULL, NULL);</code></pre>
<p>注意上方的http://xxxxx 更换成云财务返回域名的真实地址,例如下方</p>
<pre><code class="language-sql">INSERT INTO notify_app_business(id, appName, businessType, notifyUrl, notifyTimes, creatTime, updateTime, des) VALUES (1, 'ycw', 'cloudfiSalary', 'http://192.168.1.1:8989/cloudfi/api/humansalaryaccount/Notify', 3, '2019-02-25 13:41:40', NULL, NULL);</code></pre>
<h4>3.3 配置科目对应</h4></li>
<li>路径:菜单-薪酬-薪酬账套-工资项目
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/7eb7184fb84227c28cb7eecbb27de09e?showdoc=.jpg" alt="" />
如果如上图所示,点击展开没有项目,需要联系云财务负责人沟通,让在推送一下。</li>
</ul>
<hr />
<table>
<thead>
<tr>
<th style="text-align: center;">修订日期</th>
<th style="text-align: center;">修订版本</th>
<th style="text-align: center;">修订内容</th>
<th style="text-align: center;">更新人员</th>
<th style="text-align: center;">语录</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">2020-11-23</td>
<td style="text-align: center;">v1.0</td>
<td style="text-align: center;">初版</td>
<td style="text-align: center;">王小布</td>
<td style="text-align: center;">注意数据库的执行</td>
</tr>
</tbody>
</table>