2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-09-22 4b753c6327941dd988e9ca534cf81ae1d368286a
fix
已修改1个文件
5 ■■■■■ 文件已修改
ximon-admin/src/main/java/com/sandu/ximon/admin/service/LightTaskService.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ximon-admin/src/main/java/com/sandu/ximon/admin/service/LightTaskService.java
@@ -7,6 +7,7 @@
import cn.hutool.core.util.HexUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.druid.support.json.JSONUtils;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
@@ -153,7 +154,7 @@
//                    commend.setSysScheduled(s);
                    if (commend.getIssueStatus() == 0) {
                        //下发成功  更新系统定时和硬件定时
                        commend.setDeviceScheduled(JSONUtils.toJSONString(newLightTask));
                        commend.setDeviceScheduled(JSONObject.toJSONString(newLightTask));
                    } else {
                        //下发失败  更新系统定时  保留硬件定时 硬件定时
//                        commend.setSysScheduled(s);
@@ -161,7 +162,7 @@
                            if (task.getLightAddress().equals(commend.getLightAddress()) && task.getDeviceCode().equals(commend.getDeviceCode())) {
                                //同一个灯头
                                LightTask oldTask = getById(task.getTaskId());
                                commend.setDeviceScheduled(JSONUtils.toJSONString(oldTask));
                                commend.setDeviceScheduled(JSONObject.toJSONString(oldTask));
                            }
                        });