问卷统计

简要描述
  • 问卷统计接口
请求URL
  • http://192.168.2.107:8080/ops/itsm/questionnaire/statistics
请求方式
  • POST
参数
参数名 必选 类型 说明
uuid string 问卷发布uuid
调用示例
{
    "uuid":""
}
返回示例

data中都有recordUuid

{
    "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%<br>0",
                        "4分": "50.00%<br>1",
                        "3分": "50.00%<br>1",
                        "2分": "0%<br>0",
                        "1分": "0%<br>0",
                        "0分": "0%<br>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"
    }
}
返回参数说明
参数名 类型 说明
questionName string 问题
order int 排序
type string 问题类型
typeName string 问题类型中文
title list 列表标题
data list 列表数据
subTableTitle list 子列表标题
subTableData list 子列表标题数据
statisticsMap map 统计数据
备注
  • 更多返回错误代码请看首页的错误代码描述