| | |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.model.DeviceCommandMsgModel; |
| | | import com.zy.core.model.DeviceMsgModel; |
| | | import com.zy.core.model.param.UpdateFakeThreadStatusParam; |
| | | import com.zy.core.properties.DeviceConfig; |
| | | import com.zy.core.thread.FakeThread; |
| | | import com.zy.core.thread.impl.ZyForkLiftThread; |
| | |
| | | public ConcurrentHashMap<String, JSONObject> getFakeCommandMap() { |
| | | return this.fakeCommandMap; |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateFakeStatus(UpdateFakeThreadStatusParam param) { |
| | | String key = param.getDeviceType() + param.getDeviceNo(); |
| | | JSONObject result = fakeStatusMap.get(key); |
| | | if (result == null) { |
| | | return false; |
| | | } |
| | | |
| | | JSONObject newData = JSON.parseObject(param.getData()); |
| | | this.fakeStatusMap.put(key, newData); |
| | | return true; |
| | | } |
| | | } |