liurunyu
2024-08-19 7e92584190223b2967e6a5473d9c23e0e05b2437
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/command/ComSupport.java
@@ -334,8 +334,14 @@
        if(commandCode.equals("92") || commandCode.equals("97")) {
            JSONObject job_response = (JSONObject) JSON.toJSON(response_CallBack);
            JSONObject job_param = (JSONObject) JSON.toJSON(param);
            JSONObject job_data = job_response.getJSONObject("content").getJSONObject("data");
            if(!job_data.getBoolean("success")) {
                // 开关阀失败
                response_CallBack.setCode("10003");
                response_CallBack.setMsg(CommandResultCode.OPEN_CLOSE_FAIL.getMessage());
                response_CallBack.setSuccess(false);
            }else {
                // 开关阀成功
            job_data.remove("success");
            job_data.put("intakeId", intakeId);
            job_data.put("rtuAddr", rtuAddr);
@@ -344,6 +350,7 @@
            response_CallBack = JSON.parseObject(job_response.toJSONString(), BaseResponse.class);
        }
        }
        // 回调返回的内容,回调结果写入命令日志表的任务由中间件完成
        return response_CallBack;