查询操作日志

POST /v1/operatelog/find

请求参数
属性名 类型 必填 说明
pageNum 整型 页码.
pageSize 整型 每页条数.
objectId 整型 对象ID.
startOperateTime 时间 开始时间 格式:yyyy-MM-dd HH:mm:ss.
endOperateTime 时间 结束时间 格式:yyyy-MM-dd HH:mm:ss.
eventType 整型 事件类型 2-删除,3-还原, 4-合并.
响应数据
属性名 类型 说明
code 整型 响应编码.
message 字符串 响应消息.
visible 布尔型 是否可见, true / false .
data 对象数组 日志列表.
data[0].id 整型 日志ID.
data[0].dataId 整型 记录ID.
data[0].mergedDataId 整型 被合并记录ID.
data[0].eventType 整型 事件类型 2-删除,3-还原, 4-合并.
data[0].operateTime 时间 操作时间.
data[0].operateUserId 整型 操作人用户id.
data[0].objectId 整型 当前记录对象id.
data[0].dataDto 对象 当前记录(还原:还原记录,合并:合并后记录).
data[0].mergLogDto 对象 合并前记录(只有合并操作有).
data[0].mergedDataDtoList 对象数组 被合并记录(有的会多条合并,是个数组,只有合并操作有).
data[0].showFieldList 数组 对象字段列表.
data[0].dataName 字符串 记录名称.
data[0].operateUserName 字符串 操作人姓名.
data[0].dataName 字符串 记录名称.
data[0].objectName 字符串 对象名称.
备注: data[0].dataDto、data[0].mergLogDto、data[0].mergedDataDtoList[0]这三个记录中fieldValueMap为数据值map id和showFieldList中id对应
请求示例
$ curl 'https://servicego.udesk.cn/api/v1/operatelog/find?email=admin@udesk.cn&timestamp=1496631984&sign=ef506d04ef74e1031f91025494244e88f3559b78' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
  "pageNum":1,
  "pageSize":10,
  "objectId": 16,
  "startOperateTime":"2021-07-01 11:11:10",
  "endOperateTime":"2021-08-28 19:29:50",
  "eventType":4
  }'
响应示例
{
    "code": 200,
    "message": "OK",
    "visible": false,
    "paging": {
        "pageNum": 1,
        "pageSize": 10,
        "total": 2
    },
    "data": [
        {
            "id": 5,
            "dataId": 19,
            "mergedDataId": "5",
            "eventType": 4,
            "operateUserId": 2,
            "operateTime": "2021-08-28 19:00:18",
            "objectId": 3,
            "mergLogDto": {         //合并前记录
                "dataId": 19,           //记录id
                "dataName": "测试批量修改相关记录",//记录名称 主字段
                "fieldValueMap": {  //数据值map id和showFieldList中id对应
                    "32": "zhangsan",
                    "33": "zhaosizhu",
                    "34": "自建",
                    "36": "自建-直接创建",
                    "461": "zhaosizhu",
                    "1037": "中基服务商",
                    "1038": "12km",
                    "1039": "200元",
                    "242": "联想笔记本",
                    "28": "测试批量修改相关记录朱昌政",
                    "29": "2021-04-19 19:15",
                    "30": "2021-06-03 14:13",
                    "31": "zhaosizhu"
                },
                "spareValueMap": {}
            },
            "dataDto": {        //当前记录(还原:还原记录,合并:合并后记录)
                "dataId": 19,
                "dataName": "测试批量修改相关记录朱昌政",
                "fieldValueMap": {
                    "32": "zhangsan",
                    "33": "zhaosizhu",
                    "34": "自建",
                    "36": "自建-直接创建",
                    "461": "zhaosizhu",
                    "1037": "中基服务商",
                    "1038": "12km",
                    "1039": "200元",
                    "242": "联想笔记本",
                    "28": "测试批量修改相关记录朱昌政",
                    "29": "2021-04-19 19:15",
                    "30": "2021-08-28 19:20",
                    "31": "zhaosizhu"
                },
                "spareValueMap": {}
            },
            "mergedDataDtoList": [  //被合并记录(有的会多条合并,是个数组,只有合并操作有).
                {
                    "dataId": 5,
                    "dataName": "设备维修",
                    "fieldValueMap": {
                        "32": "zhangsan",
                        "33": "zhangsan",
                        "34": "自建",
                        "36": "自建-直接创建",
                        "1037": "中交服务商",
                        "461": "lisiZhu",
                        "1038": "20km",
                        "1039": "300元",
                        "242": "电脑",
                        "28": "设备维修",
                        "29": "2021-04-16 17:54",
                        "30": "2021-08-28 19:22",
                        "31": "zhangsan"
                    },
                    "spareValueMap": {},
                    "sysValueMap": {
                        "createTime": "2021-04-16 17:54",
                        "createUser": "zhangsan"
                    }
                }
            ],
            "showFieldList": [  //字段列表
                {
                    "id": 28,           //字段id
                    "label": "主题",      //字段名称
                    "apiName": "subject",//字段api
                    "slotFieldName": "v1",
                    "fieldType": 1      //字段类型
                },
                {
                    "id": 35,
                    "label": "描述",
                    "apiName": "description",
                    "slotFieldName": "c1",
                    "fieldType": 3
                },
                {
                    "id": 211,
                    "label": "联系人",
                    "apiName": "contact",
                    "slotFieldName": "f8",
                    "fieldType": 19
                },
                {
                    "id": 242,
                    "label": "相关设备",
                    "apiName": "xiangguanshebei",
                    "slotFieldName": "f9",
                    "fieldType": 19
                },
                {
                    "id": 461,
                    "label": "创建订单人",
                    "apiName": "chuangjiandingdanren",
                    "slotFieldName": "f10",
                    "fieldType": 21
                },
                {
                    "id": 1037,
                    "label": "服务商",
                    "apiName": "fuwushang",
                    "slotFieldName": "f11",
                    "fieldType": 19
                },
                {
                    "id": 1038,
                    "label": "距离",
                    "apiName": "juli",
                    "slotFieldName": "f12",
                    "fieldType": 7
                },
                {
                    "id": 1039,
                    "label": "上门费用",
                    "apiName": "shangmenfeiyong",
                    "slotFieldName": "f13",
                    "fieldType": 7
                },
                {
                    "id": 1319,
                    "label": "省",
                    "apiName": "province",
                    "slotFieldName": "f14",
                    "fieldType": 14
                },
                {
                    "id": 1320,
                    "label": "市",
                    "apiName": "city",
                    "slotFieldName": "f15",
                    "fieldType": 14
                },
                {
                    "id": 1321,
                    "label": "区/县",
                    "apiName": "county",
                    "slotFieldName": "f16",
                    "fieldType": 14
                },
                {
                    "id": 29,
                    "label": "创建时间",
                    "apiName": "createTime",
                    "slotFieldName": "d1",
                    "fieldType": 6
                },
                {
                    "id": 30,
                    "label": "更新时间",
                    "apiName": "updateTime",
                    "slotFieldName": "d2",
                    "fieldType": 6
                },
                {
                    "id": 31,
                    "label": "创建人",
                    "apiName": "createUser",
                    "slotFieldName": "f1",
                    "fieldType": 21
                },
                {
                    "id": 32,
                    "label": "修改人",
                    "apiName": "updateUser",
                    "slotFieldName": "f2",
                    "fieldType": 21
                },
                {
                    "id": 33,
                    "label": "所有人",
                    "apiName": "owner",
                    "slotFieldName": "f3",
                    "fieldType": 23
                },
                {
                    "id": 34,
                    "label": "渠道",
                    "apiName": "channel",
                    "slotFieldName": "f4",
                    "fieldType": 14
                },
                {
                    "id": 36,
                    "label": "来源",
                    "apiName": "source",
                    "slotFieldName": "v2",
                    "fieldType": 1
                },
                {
                    "id": 37,
                    "label": "场景值",
                    "apiName": "qrcodeScene",
                    "slotFieldName": "v3",
                    "fieldType": 1
                },
                {
                    "id": 38,
                    "label": "Udesk工单ID",
                    "apiName": "sysUTicketKeyId",
                    "slotFieldName": "f5",
                    "fieldType": 7
                },
                {
                    "id": 39,
                    "label": "Udesk客户ID",
                    "apiName": "sysUOrganizationKeyId",
                    "slotFieldName": "f6",
                    "fieldType": 7
                },
                {
                    "id": 40,
                    "label": "Udesk联系人ID",
                    "apiName": "sysUContactKeyId",
                    "slotFieldName": "f7",
                    "fieldType": 7
                }
            ],
            "dataName": "测试批量修改相关记录朱昌政",
            "operateUserName": "zhangsan",
            "objectName": "case"
        },
        {
            "id": 3,
            "dataId": 583,
            "mergedDataId": "19",
            "eventType": 4,
            "operateUserId": 2,
            "operateTime": "2021-08-28 10:39:27",
            "objectId": 3,
            "mergLogDto": {
                "dataId": 583,
                "dataName": "主题-维修",
                "fieldValueMap": {
                    "32": "zhangsan",
                    "33": "zhangsan",
                    "34": "自建",
                    "35": "描述一下",
                    "36": "自建-直接创建",
                    "461": "测试16",
                    "1038": "100km",
                    "242": "自动编号测试1111",
                    "211": "测试联系人-zcz1",
                    "28": "主题-维修",
                    "29": "2021-07-13 15:07",
                    "30": "2021-07-13 15:07",
                    "31": "zhangsan"
                },
                "spareValueMap": {}
            },
            "dataDto": {
                "dataId": 583,
                "dataName": "主题-维修",
                "fieldValueMap": {
                    "32": "zhangsan",
                    "33": "zhangsan",
                    "34": "自建",
                    "35": "描述一下",
                    "36": "自建-直接创建",
                    "461": "测试16",
                    "1038": "100km",
                    "242": "自动编号测试1111",
                    "211": "测试联系人-zcz1",
                    "28": "主题-维修",
                    "29": "2021-07-13 15:07",
                    "30": "2021-08-28 10:39",
                    "31": "zhangsan"
                },
                "spareValueMap": {}
            },
            "mergedDataDtoList": [
                {
                    "dataId": 19,
                    "dataName": "测试批量修改相关记录朱昌政",
                    "fieldValueMap": {
                        "32": "zhangsan",
                        "33": "zhaosizhu",
                        "34": "自建",
                        "36": "自建-直接创建",
                        "1037": "中基服务商",
                        "461": "zhaosizhu",
                        "1038": "12km",
                        "1039": "200元",
                        "242": "联想笔记本",
                        "28": "测试批量修改相关记录朱昌政",
                        "29": "2021-04-19 19:15",
                        "30": "2021-08-28 19:20",
                        "31": "zhaosizhu"
                    },
                    "spareValueMap": {},
                    "sysValueMap": {
                        "createTime": "2021-04-19 19:15",
                        "createUser": "zhaosizhu"
                    }
                }
            ],
            "showFieldList": [
                {
                    "id": 28,
                    "label": "主题",
                    "apiName": "subject",
                    "slotFieldName": "v1",
                    "fieldType": 1
                },
                {
                    "id": 35,
                    "label": "描述",
                    "apiName": "description",
                    "slotFieldName": "c1",
                    "fieldType": 3
                },
                {
                    "id": 211,
                    "label": "联系人",
                    "apiName": "contact",
                    "slotFieldName": "f8",
                    "fieldType": 19
                },
                {
                    "id": 242,
                    "label": "相关设备",
                    "apiName": "xiangguanshebei",
                    "slotFieldName": "f9",
                    "fieldType": 19
                },
                {
                    "id": 461,
                    "label": "创建订单人",
                    "apiName": "chuangjiandingdanren",
                    "slotFieldName": "f10",
                    "fieldType": 21
                },
                {
                    "id": 1037,
                    "label": "服务商",
                    "apiName": "fuwushang",
                    "slotFieldName": "f11",
                    "fieldType": 19
                },
                {
                    "id": 1038,
                    "label": "距离",
                    "apiName": "juli",
                    "slotFieldName": "f12",
                    "fieldType": 7
                },
                {
                    "id": 1039,
                    "label": "上门费用",
                    "apiName": "shangmenfeiyong",
                    "slotFieldName": "f13",
                    "fieldType": 7
                },
                {
                    "id": 1319,
                    "label": "省",
                    "apiName": "province",
                    "slotFieldName": "f14",
                    "fieldType": 14
                },
                {
                    "id": 1320,
                    "label": "市",
                    "apiName": "city",
                    "slotFieldName": "f15",
                    "fieldType": 14
                },
                {
                    "id": 1321,
                    "label": "区/县",
                    "apiName": "county",
                    "slotFieldName": "f16",
                    "fieldType": 14
                },
                {
                    "id": 29,
                    "label": "创建时间",
                    "apiName": "createTime",
                    "slotFieldName": "d1",
                    "fieldType": 6
                },
                {
                    "id": 30,
                    "label": "更新时间",
                    "apiName": "updateTime",
                    "slotFieldName": "d2",
                    "fieldType": 6
                },
                {
                    "id": 31,
                    "label": "创建人",
                    "apiName": "createUser",
                    "slotFieldName": "f1",
                    "fieldType": 21
                },
                {
                    "id": 32,
                    "label": "修改人",
                    "apiName": "updateUser",
                    "slotFieldName": "f2",
                    "fieldType": 21
                },
                {
                    "id": 33,
                    "label": "所有人",
                    "apiName": "owner",
                    "slotFieldName": "f3",
                    "fieldType": 23
                },
                {
                    "id": 34,
                    "label": "渠道",
                    "apiName": "channel",
                    "slotFieldName": "f4",
                    "fieldType": 14
                },
                {
                    "id": 36,
                    "label": "来源",
                    "apiName": "source",
                    "slotFieldName": "v2",
                    "fieldType": 1
                },
                {
                    "id": 37,
                    "label": "场景值",
                    "apiName": "qrcodeScene",
                    "slotFieldName": "v3",
                    "fieldType": 1
                },
                {
                    "id": 38,
                    "label": "Udesk工单ID",
                    "apiName": "sysUTicketKeyId",
                    "slotFieldName": "f5",
                    "fieldType": 7
                },
                {
                    "id": 39,
                    "label": "Udesk客户ID",
                    "apiName": "sysUOrganizationKeyId",
                    "slotFieldName": "f6",
                    "fieldType": 7
                },
                {
                    "id": 40,
                    "label": "Udesk联系人ID",
                    "apiName": "sysUContactKeyId",
                    "slotFieldName": "f7",
                    "fieldType": 7
                }
            ],
            "dataName": "主题-维修",
            "operateUserName": "zhangsan",
            "objectName": "case"
        }
    ]
}