add:增加收片机工作模式。

This commit is contained in:
2024-09-24 19:33:45 +08:00
parent 8faa7335a2
commit 9b15f6cb76
5 changed files with 15 additions and 5 deletions

View File

@@ -563,8 +563,7 @@ public class CockpitServiceImpl implements CockpitService {
JSONObject jsonObject = (JSONObject) object;
if (pointObj.getPoint_code().equals(jsonObject.getString("device_code"))) {
one.put("move", jsonObject.getString("move") == null ? "0" : jsonObject.getString("move"));
//todo 模式,信号缺失
one.put("mode", jsonObject.getString("mode") == null ? "0" : jsonObject.getString("mode"));
one.put("mode", StringUtils.isBlank(jsonObject.getString("mode"))? "运行" : jsonObject.getString("mode"));
//todo 错误码(中文),信号缺失
one.put("error", jsonObject.getString("error") == null ? "0" : jsonObject.getString("error"));
}