数字化校园APP


2024-02-29_班主任变更功能

<p>一. 数据库增加changeImplementerRecord表</p> <table> <thead> <tr> <th>字段名</th> <th>备注</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>主键</td> </tr> <tr> <td>courseId</td> <td>培训班id</td> </tr> <tr> <td>oldImplementerId</td> <td>原实施人id</td> </tr> <tr> <td>oldImplementerName</td> <td>原实施人名称</td> </tr> <tr> <td>oldImplementerDeptId</td> <td>原实施部门id</td> </tr> <tr> <td>oldImplementerDeptName</td> <td>原实施部门名称</td> </tr> <tr> <td>newImplementerId</td> <td>新实施人id</td> </tr> <tr> <td>newImplementerName</td> <td>新实施人名称</td> </tr> <tr> <td>newImplementerDeptId</td> <td>新实施部门id</td> </tr> <tr> <td>newImplementerDeptName</td> <td>新实施部门名称</td> </tr> </tbody> </table> <p>二. 增加一个新的流程定义(班主任变更流程),workflowType:changeImplementer 审批节点:发起人(原班主任)&gt; 教研室主管 &gt; 实施部门领导 &gt; 新班主任</p> <h4>流程审批结束,需要把online_course表的IMPLEMENTER_ID, IMPLEMENTER_NAME, IMPLEMENTER_DEPT_ID, IMPLEMENTER_DEPT_NAME字段修改为changeImplementerRecord表对应的新数据</h4> <p>三. 增加三个接口</p> <ul> <li> <p>/banshee/szhxy/api/v1/console/course/changeImplementer/bpm/loadOne 根据workflowId查询changeImplementerRecord表对应的一条记录 请求参数:payload: { &quot;workflowId&quot;: &quot;&quot; }</p> </li> <li> <p>/banshee/szhxy/api/v1/console/course/changeImplementer/saveRecord 保存班主任变更记录 请求参数:</p> <pre><code>{ &amp;quot;payload&amp;quot;: { &amp;quot;item&amp;quot;: { &amp;quot;courseId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;oldImplementerId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;oldImplementerName&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;oldImplementerDeptId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;oldImplementerDeptName&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;newImplementerId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;newImplementerName&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;newImplementerDeptId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;newImplementerDeptName&amp;quot;: &amp;quot;&amp;quot; } } } </code></pre> </li> <li> <p>/banshee/szhxy/api/v1/console/course/changeImplementer/editRecord 编辑班主任变更记录 请求参数:</p> <pre><code>{ &amp;quot;payload&amp;quot;: { &amp;quot;item&amp;quot;: { &amp;quot;id&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;courseId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;oldImplementerId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;oldImplementerName&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;oldImplementerDeptId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;oldImplementerDeptName&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;newImplementerId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;newImplementerName&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;newImplementerDeptId&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;newImplementerDeptName&amp;quot;: &amp;quot;&amp;quot; } } } </code></pre> </li> </ul>

页面列表

ITEM_HTML