Commit 9ea9c216 by 林永健

修复bug

1 parent db5f49e0
......@@ -142,7 +142,7 @@ public class ChargingGunService {
entity.setUpdatedTime(new Date());
}
// 对比旧状态,发送变化才更新
if (!entity.getStatus().equals(data.getStatus().byteValue())) {
if (Objects.isNull(entity.getStatus()) || !entity.getStatus().equals(data.getStatus().byteValue())) {
entity.setStatus(data.getStatus().byteValue());
saveOrUpdate(entity);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!