# 投放资产推送

接口说明:在资产投放客户的信息新增时、修改时和删除时向第三方系统推送数据。

请求方式: POST(HTTPS
请求地址: 第三方服务接口URL
推送包体:

{
    "deposit_value": 100.00,
    "business_license": "",
    "cost_value": "100",
    "customer_manager": "大表哥",
    "id": "8519927761713767423",
    "dept_id": "开发部",
    "product_class": "40*20",
    "asset_code": "20170803001",
    "throwin_cus_code": "20170710003",
    "throwin_cus_name": "20170710003 ",
    "throwin_cus_id": "7623111545591873310",
    "is_mislaid": "0",
    "product_vendor": "惠普",
    "throwin_contact": "猪八戒",
    "deposit_type": "押金全部",
    "throwin_tel": "14568413",
    "product_type": "电脑",
    "throwin_date": "2017-08-03",
    "net_value": 100.00,
    "exts": [
      {
        "asset_ext_value": "",
        "asset_ext_key": "文本框"
      },
      {
        "asset_ext_value": "",
        "asset_ext_key": "备注一下"
      }
    ],
    "product_code": "20170803001",
    "product_brand": "联想",
    "is_throwin": "1",
    "check_date": "2017-08-03",
    "throwin_idcard": "342222199002023610",
    "is_intelligent_device":"1",
    "can_support_wifi":"1",
    "wifi_name":"wifiname",
    "wifi_mac":"wifimac",
    "can_support_bluetooth":"1",
    "bluetooth_name":"bluetoothname",
    "bluetooth_mac":"bluetoothmac",
    "can_support_nfc":"1",
    "nfc_code":"nfcCode",
    "location_llc":"1.062652,118.753341",
    "location_lla":"lla"
  }

参数说明:

参数 类型 必填 说明
deposit_value float 押金金额
business_license VARCHAR(32) 营业执照号码
cost_value VARCHAR(32) 资产价值
customer_manager VARCHAR(32) 客户经理
id VARCHAR(32) 资产id
dept_id VARCHAR(32) 部门
product_class VARCHAR(32) 设备型号
asset_code VARCHAR(32) 资产条码
throwin_cus_code VARCHAR 投放客户编码
throwin_cus_id VARCHAR 投放客户id
throwin_cus_name VARCHAR 投放客户名称
is_mislaid VARCHAR 资产是否遗失
product_vendor VARCHAR 设备厂商
throwin_contact VARCHAR 签约人
deposit_type VARCHAR 押金类型
throwin_tel VARCHAR 签约人电话
product_type VARCHAR 资产类型
throwin_date VARCHAR(32) 投放日期。格式:yyyy-MM-dd
net_value float 资产净值
product_code VARCHAR 设备号
product_brand VARCHAR 设备品牌
is_throwin VARCHAR 是否投放客户
check_date VARCHAR(32) 验收日期。格式:yyyy-MM-dd
throwin_idcard VARCHAR 签约人身份证号
is_intelligent_device VARCHAR(1) 是否未智能设备。0:否,1:是
can_support_wifi VARCHAR(1) 是否支持wifi校验。0:否,1:是
wifi_name VARCHAR(100) wifi 名称
wifi_mac VARCHAR(100) wifi mac地址
can_support_bluetooth VARCHAR(1) 是否支持蓝牙校验。0:否,1:是
bluetooth_name VARCHAR(100) 蓝牙名称
bluetooth_mac VARCHAR(100) 蓝牙mac地址
can_support_nfc VARCHAR(1) 是否支持NFC校验
nfc_code VARCHAR(100) NFC编码
location_llc VARCHAR(100) 资产最新经纬度,纬度在前,经度在后,用“,”分隔
location_lla VARCHAR(100) 最新位置描述
exts 扩展字段列表
exts.asset_ext_key VARCHAR(100) 扩展字段key
exts.asset_ext_value VARCHAR(4000) 扩展字段value

# 资产巡检推送

接口说明:在资产巡检步骤提交数据时像第三方系统推送数据

请求方式: POST(HTTPS
请求地址: 第三方服务接口URL
推送包体:

{
    "dept_names": "开发一部",
    "deposit_value": 5000.00,
    "leave_latlon_num": 1,
    "addr": "南京市建邺区嘉陵江东街康缘智汇港附近",
    "id": "6991273344247311990",
    "visit_date": "2017-08-08",
    "customer_type_id": "",
    "asset_code": "20170808001",
    "arrive_latlon_num": 1,
    "create_time_dt": "2017-08-08 16: 16: 42",
    "visitor_name": "employee002(停用)",
    "usetime": 1,
    "function_name": "巡检表单",
    "slfdf_1708080002_name": "employee002(停用)",
    "leave_pos_offset": "81.00",
    "customer_code": "CUS000042",
    "arrive_pos_offset": "81.00",
    "manager_id": "8226023504384177411",
    "customer_name": "20170808001",
    "district_id": 5285473686822641763,
    "dept_name": "开发一部",
    "dept_full_names": "/钱志强测试勿删1/开发部/开发一部",
    "visitor": 8226023504384177411,
    "district_name_full_path": "全部/华东大区",
    "formData": {
        "masterData": {
            "functionId": "6967950291948295487",
            "functionName": "冰箱智能识别",
            "row": {
                "slfdf_1906220001": "选项2",
                "id": "7407103534016655994"
            }
        },
        "subtableData": [{
            "subtableId": "4692626043286125108",
            "rows": [{
                "master_id": "7407103534016655994",
                "slfdf_2004220003": "你",
                "slfdf_2004220002": "2020-05-07 周四 19:54",
                "id": "7712847764168702491"
            }, {
                "master_id": "7407103534016655994",
                "slfdf_2004220003": "我",
                "slfdf_2004220002": "2020-05-07 周四 19:53",
                "id": "7179539557066305303"
            }],
            "subtableName": "子表单"
        }]
   	},
    "customer_type_name": "",
    "linkman_mobile": "",
    "district_name": "华东大区",
    "manager_name": "employee002(停用)",
    "linkman": "",
    "customer_id": 9097263453670119653,
    "visit_time": "2017-08-08 16: 15",
    "facing_rate": "80%",
    "width_rate": "45%",
    "fridge_saturation": "56%",
    "bp_purity": "76%",
    "image_type": "双门",
    "check_type": "1",
    "check_result": "1",
    "location_check_result": "1",
    "location_offset": "53.00"
  }

参数说明:

注意:ai识别的字段在识别后才推送,这时会推送两条数据,需保留最新数据

参数 类型 必填 说明
dept_names VARCHAR 部门
deposit_value VARCHAR(32) 押金金额
addr VARCHAR(32) 地址
visit_date VARCHAR(32) 拜访日期。格式:yyyy-MM-dd
customer_type_id VARCHAR(32) 客户类型id
customer_type_name VARCHAR(32) 客户类型名称
linkman_mobile VARCHAR(32) 联系人手机号码
linkman VARCHAR(32) 联系人
asset_code VARCHAR(32) 资产条码
arrive_latlon_num VARCHAR 到达位置偏差
leave_latlon_num VARCHAR 离开位置偏差
visitor_name VARCHAR 拜访人名称
function_name VARCHAR 巡检表单
leave_pos_offset VARCHAR 离开位置偏差
arrive_pos_offset VARCHAR 到达位置偏差
customer_code VARCHAR 客户编码
customer_name VARCHAR 客户名称
customer_id VARCHAR 客户id
visit_time VARCHAR(32) 拜访时间。格式:yyyy-MM-dd HH:mm
manager_id VARCHAR 客户经理id
manager_name VARCHAR 客户经理名称
district_id VARCHAR 销售区域
district_name VARCHAR 销售区域名称
district_name_full_path VARCHAR 销售区域全路径
dept_name VARCHAR 部门
dept_full_names VARCHAR 部门全路径
visitor VARCHAR 拜访人id
facing_rate VARCHAR 本品冰箱占比(表单含有智能识别组件时存在)
fridge_saturation VARCHAR 冰箱饱满度(表单含有智能识别组件时存在)
bp_purity VARCHAR 本品纯净度(表单含有智能识别组件时存在)
width_rate VARCHAR 冰箱纯净度(表单含有智能识别组件时存在)
image_type VARCHAR 箱门结构(表单含有智能识别组件时存在)
check_type VARCHAR 校验方式。1:wifi,2:蓝牙,3:nfc
check_result VARCHAR 校验结果。1:正常,2:异常,3:设备不支持
location_check_result VARCHAR 资产最新位置校验结果。1:正常,2:异常
location_offset VARCHAR 位置偏移距离(米)
fromData.masterData.functionId VARCHAR(32) 表单id
fromData.masterData.functionName VARCHAR(100) 表单名称
fromData.masterData.row.slfdf_ VARCHAR(100) key为表单字段id,value为表单字段值
fromData.masterData.row.id VARCHAR(32) 表单数据id
fromData.subtableData.subtableId VARCHAR(32) 子表单id
fromData.subtableData.subtableName VARCHAR(100) 子表单名称
fromData.subtableData.row.slfdf_ VARCHAR(100) key为子表单字段id,value为子表单字段值
fromData.subtableData.row.id VARCHAR(32) 子表单数据id
fromData.subtableData.row.master_id VARCHAR(32) 子表单对应的父表单的数据id