ITSM

运维管理系统


问卷统计

<h5>简要描述</h5> <ul> <li>问卷统计接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://192.168.2.107:8080/ops/itsm/questionnaire/statistics</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">uuid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>问卷发布uuid</td> </tr> </tbody> </table> <h5>调用示例</h5> <pre><code>{ "uuid":"" }</code></pre> <h5>返回示例</h5> <p>data中都有recordUuid</p> <pre><code>{ "errorCode": 0, "message": "成功", "time": 1635773790176, "responseBody": { "questionnaires": [ { "questionName": "您的性别是?", "order": 1, "type": "radio", "typeName": "单选题", "fieldUuid": "18e114255b454c609ee918c4db9c80da", "title": [ "人员", "男", "女", "保密" ], "data": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "女": "0", "保密": "1", "男": "0", "人员": "超级管理员" }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "女": "1", "保密": "0", "男": "0", "人员": "C" } ], "excelData": null, "subTableTitle": null, "subTableData": null, "statisticsMap": { "保密": 1, "女": 1, "男": 0 } }, { "questionName": "您喜欢的水果有?", "order": 2, "type": "checkbox", "typeName": "多选题", "fieldUuid": "28117823e5ae4148814e2025348c181c", "title": [ "人员", "苹果", "菠萝", "水蜜桃", "橘子", "其他" ], "data": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "苹果": "0", "橘子": "0", "人员": "超级管理员", "其他": "1", "菠萝": "0", "水蜜桃": "0" }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "苹果": "1", "橘子": "0", "人员": "C", "其他": "0", "菠萝": "1", "水蜜桃": "0" } ], "excelData": null, "subTableTitle": null, "subTableData": null, "statisticsMap": { "苹果": 1, "橘子": 0, "其他": 1, "水蜜桃": 0, "菠萝": 1 } }, { "questionName": "您的月收入是?", "order": 3, "type": "select", "typeName": "下拉框", "fieldUuid": "e369328ce9e845319f05440806465f33", "title": [ "人员", "10000以下", "10000-20000", "20000以上" ], "data": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "10000-20000": "0", "20000以上": "1", "人员": "超级管理员", "10000以下": "0" }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "10000-20000": "0", "20000以上": "1", "人员": "C", "10000以下": "0" } ], "excelData": null, "subTableTitle": null, "subTableData": null, "statisticsMap": { "10000-20000": 0, "20000以上": 2, "10000以下": 0 } }, { "questionName": "您对公司的满意度是?", "order": 4, "type": "rate", "typeName": "评分", "fieldUuid": "3127c99bab42425597f0b12f0c3b4ac5", "title": [ "人员", "分数" ], "data": [ { "分数": "3", "recordUuid": "a015266973304023a3313b6570e0dc40", "人员": "超级管理员" }, { "分数": "4", "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "人员": "C" } ], "excelData": null, "subTableTitle": [ "0分", "1分", "2分", "3分", "4分", "5分", "平均分数" ], "subTableData": [ { "5分": "0%&lt;br&gt;0", "4分": "50.00%&lt;br&gt;1", "3分": "50.00%&lt;br&gt;1", "2分": "0%&lt;br&gt;0", "1分": "0%&lt;br&gt;0", "0分": "0%&lt;br&gt;0", "平均分数": "3.50" } ], "statisticsMap": null }, { "questionName": "您最想去的一个地方?", "order": 5, "type": "input", "typeName": "单行填空", "fieldUuid": "8ab7a25b7fbc47079c42c05e809a5fcd", "title": [ "人员", "答案" ], "data": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "人员": "超级管理员", "答案": "1111" }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "人员": "C", "答案": "1111" } ], "excelData": null, "subTableTitle": null, "subTableData": null, "statisticsMap": null }, { "questionName": "您对我们有哪些意见和建议?", "order": 6, "type": "textarea", "typeName": "多行填空", "fieldUuid": "f1f545f874ab4662b0ae9e89ab5cb0e7", "title": [ "人员", "答案" ], "data": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "人员": "超级管理员", "答案": "111\n222\n333" }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "人员": "C", "答案": "2321" } ], "excelData": null, "subTableTitle": null, "subTableData": null, "statisticsMap": null }, { "questionName": "请给以下部门评价", "order": 7, "type": "radioSquad", "typeName": "单选矩阵", "fieldUuid": "96910ed03534438f87c9d539748eb8e1", "title": [ "人员", "营业部", "信息部", "客服部" ], "data": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "信息部": "满意", "人员": "超级管理员", "客服部": "一般", "营业部": "非常满意" }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "信息部": "满意", "人员": "C", "客服部": "满意", "营业部": "非常满意" } ], "excelData": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "信息部": "", "人员": "超级管理员", "客服部": "", "营业部": "" }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "信息部": "", "人员": "C", "客服部": "", "营业部": "" } ], "subTableTitle": [ "问题", "非常满意", "满意", "一般", "不满意" ], "subTableData": [ { "满意": 0, "一般": 0, "非常满意": 2, "问题": "营业部", "不满意": 0 }, { "满意": 2, "一般": 0, "非常满意": 0, "问题": "信息部", "不满意": 0 }, { "满意": 1, "一般": 1, "非常满意": 0, "问题": "客服部", "不满意": 0 } ], "statisticsMap": null }, { "questionName": "请您评价以下搜索引擎", "order": 8, "type": "checkboxSquad", "typeName": "多选矩阵", "fieldUuid": "ba3cec901b0f4c62b43bd00a58fe538e", "title": [ "人员", "Google", "搜狗", "百度" ], "data": [ { "Google": "浏览速度快,搜索准确率高", "recordUuid": "a015266973304023a3313b6570e0dc40", "百度": "界面设计美观", "搜狗": "搜索准确率高,界面设计美观", "人员": "超级管理员" }, { "Google": "浏览速度快,界面设计美观", "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "百度": "搜索准确率高,浏览速度快,界面设计美观", "搜狗": "搜索准确率高,界面设计美观", "人员": "C" } ], "excelData": [ { "Google": "", "recordUuid": "a015266973304023a3313b6570e0dc40", "百度": "", "搜狗": "", "人员": "超级管理员" }, { "Google": "", "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "百度": "", "搜狗": "", "人员": "C" } ], "subTableTitle": [ "问题", "浏览速度快", "搜索准确率高", "界面设计美观" ], "subTableData": [ { "搜索准确率高": 1, "问题": "Google", "界面设计美观": 1, "浏览速度快": 2 }, { "搜索准确率高": 2, "问题": "搜狗", "界面设计美观": 2, "浏览速度快": 0 }, { "搜索准确率高": 1, "问题": "百度", "界面设计美观": 2, "浏览速度快": 1 } ], "statisticsMap": null }, { "questionName": "请上传6月份个人月报", "order": 9, "type": "fileUpload", "typeName": "文件上传", "fieldUuid": "e4367c6be1104436bbf371d1e1e0231d", "title": [ "人员", "文件名称" ], "data": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "人员": "超级管理员", "文件名称": "readme.txt", "fileArray": [ { "relyPath": "/ops/static/c70072bd8f7e45ada5073046fb409e40readme.txt", "fileName": "readme.txt", "fileSize": "190", "uuid": "c70072bd8f7e45ada5073046fb409e40" } ] }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "人员": "C", "文件名称": "readme.txt", "fileArray": [ { "relyPath": "/ops/static/3ddb8bb1703f411187ac251761e4c1f0readme.txt", "fileName": "readme.txt", "fileSize": "190", "uuid": "3ddb8bb1703f411187ac251761e4c1f0" } ] } ], "excelData": null, "subTableTitle": null, "subTableData": null, "statisticsMap": null }, { "questionName": "请上传白底1寸登记照", "order": 10, "type": "imageUpload", "typeName": "图片上传", "fieldUuid": "864985b6897840b58205ce0e26a07cc6", "title": [ "人员", "图片名称" ], "data": [ { "recordUuid": "a015266973304023a3313b6570e0dc40", "人员": "超级管理员", "fileArray": [ { "relyPath": "/ops/static/50303f6d73e84e909a884b9b9c1dbbca7f0a94f206f5b01b6b68ed46af7c7ef9.jpeg", "fileName": "7f0a94f206f5b01b6b68ed46af7c7ef9.jpeg", "fileSize": "479499", "uuid": "50303f6d73e84e909a884b9b9c1dbbca" } ], "图片名称": "7f0a94f206f5b01b6b68ed46af7c7ef9.jpeg" }, { "recordUuid": "f4b707b6873b4858bf1ce811eb21e9ee", "人员": "C", "fileArray": [ { "relyPath": "/ops/static/6463128854e74586bb505494eb7825917f0a94f206f5b01b6b68ed46af7c7ef9.jpeg", "fileName": "7f0a94f206f5b01b6b68ed46af7c7ef9.jpeg", "fileSize": "479499", "uuid": "6463128854e74586bb505494eb782591" } ], "图片名称": "7f0a94f206f5b01b6b68ed46af7c7ef9.jpeg" } ], "excelData": null, "subTableTitle": null, "subTableData": null, "statisticsMap": null } ], "submitted": 2, "notSubmitted": 0, "remark": "", "title": "测试1" } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">questionName</td> <td style="text-align: left;">string</td> <td>问题</td> </tr> <tr> <td style="text-align: left;">order</td> <td style="text-align: left;">int</td> <td>排序</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">string</td> <td>问题类型</td> </tr> <tr> <td style="text-align: left;">typeName</td> <td style="text-align: left;">string</td> <td>问题类型中文</td> </tr> <tr> <td style="text-align: left;">title</td> <td style="text-align: left;">list</td> <td>列表标题</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">list</td> <td>列表数据</td> </tr> <tr> <td style="text-align: left;">subTableTitle</td> <td style="text-align: left;">list</td> <td>子列表标题</td> </tr> <tr> <td style="text-align: left;">subTableData</td> <td style="text-align: left;">list</td> <td>子列表标题数据</td> </tr> <tr> <td style="text-align: left;">statisticsMap</td> <td style="text-align: left;">map</td> <td>统计数据</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML