5.24 问卷提交接口
<p>请求模式:H5页面→华农阿凡达平台</p>
<p>接口描述:查询问卷接口</p>
<p>测试接口地址:<a href="https://porsche-avatar.chinahuanong.com.cn/avatar/questionnaire/saveQuestionnaire">https://porsche-avatar.chinahuanong.com.cn/avatar/questionnaire/saveQuestionnaire</a></p>
<p>生产接口地址:<a href="https://avatar.chinahuanong.com.cn/avatar/questionnaire/saveQuestionnaire">https://avatar.chinahuanong.com.cn/avatar/questionnaire/saveQuestionnaire</a></p>
<h3>请求体</h3>
<p><code>saveQuestionnaireBody</code></p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>字段代码</th>
<th>类型</th>
<th>是否必传</th>
<th>字段描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>题库id</td>
<td>questionBankId</td>
<td>varchar</td>
<td>Y</td>
<td>题库id</td>
</tr>
<tr>
<td>渠道code</td>
<td>channelCode</td>
<td>varchar</td>
<td>Y</td>
<td>渠道code</td>
</tr>
<tr>
<td>产品code</td>
<td>productCode</td>
<td>varchar</td>
<td>Y</td>
<td>产品code</td>
</tr>
<tr>
<td>订单号</td>
<td>orderNo</td>
<td>varchar</td>
<td>Y</td>
<td>贯穿保单始终的订单号, 要求必须唯一,会进行幂等检查</td>
</tr>
<tr>
<td>题目+答案</td>
<td>questionAnswers</td>
<td>List<QuestionAnswer></td>
<td>Y</td>
<td>提交信息</td>
</tr>
</tbody>
</table>
<p><code>QuestionAnswer</code></p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>字段代码</th>
<th>类型</th>
<th>是否必传</th>
<th>字段描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>题目编码</td>
<td>questionCode</td>
<td>varchar</td>
<td>Y</td>
<td>题目编码</td>
</tr>
<tr>
<td>答案编码</td>
<td>questionAnswerCodes</td>
<td>List<String></td>
<td>Y</td>
<td>答案编码 ,附件则回传上传附件返回的url</td>
</tr>
</tbody>
</table>
<h3>响应体</h3>
<p><code>respBody</code></p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>字段代码</th>
<th>类型</th>
<th>是否必传</th>
<th>字段描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>处理状态码</td>
<td>dealCode</td>
<td>varchar</td>
<td>Y</td>
<td>处理结果状态码</td>
</tr>
<tr>
<td>处理结果描述</td>
<td>dealDesc</td>
<td>varchar</td>
<td>Y</td>
<td>处理结果描述</td>
</tr>
<tr>
<td>风险等级</td>
<td>questionAnswerResultCode</td>
<td>varchar</td>
<td>Y</td>
<td>风险等级01:低风险,02:高风险,03:拒保</td>
</tr>
<tr>
<td>渠道核保页面链接</td>
<td>insureUrl</td>
<td>varchar</td>
<td>N</td>
<td>渠道核保页面</td>
</tr>
<tr>
<td>订单号</td>
<td>orderNo</td>
<td>varchar</td>
<td>Y</td>
<td>订单号,核保单用</td>
</tr>
</tbody>
</table>
<p>入参</p>
<pre><code class="language-java">{
&quot;saveQuestionnaireBody&quot;: {
&quot;questionBankId&quot;: &quot;Pulmonary_nodules_disease&quot;,
&quot;orderNo&quot;: &quot;ceshi11110aalala&quot;,
&quot;channelCode&quot;: &quot;PHN_JT&quot;,
&quot;productCode&quot;: &quot;PDC00228&quot;,
&quot;questionAnswers&quot;: [
{
&quot;questionCode&quot;: &quot;FJJ_02&quot;,
&quot;questionAnswerCodes&quot;: [
&quot;N&quot;
]
},
{
&quot;questionCode&quot;: &quot;FJJ_03&quot;,
&quot;questionAnswerCodes&quot;: [
&quot;Y&quot;
]
},
{
&quot;questionCode&quot;: &quot;FJJ_04&quot;,
&quot;questionAnswerCodes&quot;: [&quot;测试链接&quot;]
}
]
}
}</code></pre>