refactor(property): 1

This commit is contained in:
2025-08-31 14:12:45 +08:00
parent f9544ad4e1
commit 4890e9c8e3

View File

@@ -281,7 +281,7 @@ public class TbMeterInfoServiceImpl implements ITbMeterInfoService {
BigDecimal initReading = BigDecimal.valueOf(meterResult.getCollectionValue().get(Integer.parseInt(item.getMeterCode())))
.setScale(2, RoundingMode.HALF_UP);
if (initReading.equals(BigDecimal.ZERO)) {
if (initReading.compareTo(BigDecimal.ZERO) == 0) {
item.setCommunicationState(0L);
} else {
item.setCommunicationState(1L);