jiazx0107@163.com
2024-01-20 fbcbe6c975554786683c38798ce8527d27993543
src/main/java/com/fzzy/gateway/service/GatewayDeviceTestPR.java
@@ -1,6 +1,6 @@
package com.fzzy.gateway.service;
import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.data.GatewayDeviceType;
import com.fzzy.api.utils.DateUtil;
@@ -290,7 +290,6 @@
    @Expose
    public String ajaxTestWeight(Map<String,Object> data) throws Exception {
        double weigh = (double) data.get("weight");
        double deviceId = (double) data.get("deviceId");
        List<GatewayDevice> devices = listAll();
@@ -382,7 +381,7 @@
            lpr.setCarNumber(carNumber);
            JSONObject jsonObject = new JSONObject();
            jsonObject.put("carNumber", carNumber);
            jsonObject.put("position", "big");
            jsonObject.put("position", device.getPosition());
            packet.setProperties(jsonObject);
            packet.setTimestamp(System.currentTimeMillis());
@@ -401,5 +400,23 @@
        log.info("-----------test-------------------");
        return "SUCCESS";
    }
    /**
     *
     * gatewayDeviceTestPR#testIde
     * 测试下行分机
     * @param data
     * @return
     */
    @Expose
    public String testIde(Map<String,Object> data) throws Exception {
        String deviceId = (String) data.get("deviceId");
        String bizType = (String) data.get("bizType");
        log.info("-----------下行分机调试-设备={},事件={}",deviceId,bizType);
        return "SUCCESS";
    }
}