jiazx0107@163.com
2023-12-14 a69402c8b67d8ce4b698d0c394d15ff43b5d99d0
src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java
@@ -13,6 +13,7 @@
import com.fzzy.gateway.entity.GatewayDevice;
import com.fzzy.gateway.hx2023.ScConstant;
import com.fzzy.gateway.hx2023.data.*;
import com.fzzy.protocol.ProtocolUtils;
import com.fzzy.protocol.fzzy.builder.SimpleCommandBuilder;
import com.fzzy.protocol.fzzy.cmd.BaseRemoteImpl;
import com.fzzy.protocol.fzzy.data.ReMessage;
@@ -68,7 +69,7 @@
            //粮情解析
            log.info("控制柜--->平台,推动的粮情信息--{}", response);
            log.info("控制柜--->平台,控制柜返回粮情检测结果--{}", response);
            //粮情封装和处理
            if (StringUtils.isEmpty(response.getLayerPerCircle())) {
@@ -91,10 +92,9 @@
    //信息调整封装
    private void buildBizInfo1(Response2102 response) {
        String depotId = response.getHouseId();
        //获取请求信息
        BaseReqData reqData = ServerUtils.getSyncReq(depotId);
        BaseReqData reqData = ProtocolUtils.getSyncReq(response.getHouseId());
        if (null == reqData) {
            log.error("--粮情封装解析,未获取到请求相关参数----");
@@ -132,7 +132,7 @@
        //根号
        int cableNum = 1, position = 0;
        double curTemp = response.getTMin();
        double curTemp;
        String[] attr = response.getPoints().split(",");
        int x = 0, y = 0, z = 0;
        for (int i = 0; i < attr.length; i++) {
@@ -203,6 +203,7 @@
        GatewayDeviceReportService reportService = gatewayRemoteManager.getDeviceReportService(reqData.getDevice().getPushProtocol());
        if (null == reportService) {
            log.error("------------粮情推送失败,系统不存在当前协议执行类----{}", reqData.getDevice().getDeviceName());
            return;
        }
        reportService.reportGrainData(reqData);
    }