7. 待办/已办任务查询
<h5>请求URL</h5>
<p><code>http://192.168.1.161:8080/jeecg-boot/workflow/flowProcess/todo</code></p>
<h5>请求方式</h5>
<p>GET</p>
<h5>请求参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>是</td>
<td>string</td>
<td>用户ID</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>string</td>
<td>任务类型</td>
</tr>
<tr>
<td>pageNo</td>
<td>否</td>
<td>int</td>
<td>页码(默认1)</td>
</tr>
<tr>
<td>pageSize</td>
<td>否</td>
<td>int</td>
<td>每页条数(默认10)</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code class="language-json">{
&quot;success&quot;: true,
&quot;message&quot;: &quot;查询成功&quot;,
&quot;code&quot;: 200,
&quot;result&quot;: {
&quot;records&quot;: [
{
&quot;processId&quot;: &quot;proc789&quot;,
&quot;title&quot;: &quot;李四的报销申请&quot;,
&quot;flowType&quot;: &quot;settlement&quot;,
&quot;currentNode&quot;: &quot;finance_approve&quot;,
&quot;startTime&quot;: &quot;2025-04-24T14:30:00Z&quot;
}
],
&quot;total&quot;: 5,
&quot;size&quot;: 20,
&quot;current&quot;: 1
}
}</code></pre>
<h5>返回字段说明</h5>
<table>
<thead>
<tr>
<th>字段</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>records</td>
<td>array</td>
<td>任务列表</td>
</tr>
<tr>
<td>records.processId</td>
<td>string</td>
<td>流程实例ID</td>
</tr>
<tr>
<td>records.currentNode</td>
<td>string</td>
<td>当前节点名称</td>
</tr>
<tr>
<td>total</td>
<td>int</td>
<td>总记录数</td>
</tr>
<tr>
<td>size</td>
<td>int</td>
<td>每页大小</td>
</tr>
<tr>
<td>current</td>
<td>int</td>
<td>当前页码</td>
</tr>
</tbody>
</table>