魏超 5 лет назад
Родитель
Сommit
d487982541

+ 1
- 0
src/main/java/com/huiju/estateagents/service/impl/TaBuildingServiceImpl.java Просмотреть файл

@@ -549,6 +549,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
549 549
 
550 550
         QueryWrapper<TaBuildingApartment> buildingApartmentQueryWrapper = new QueryWrapper<>();
551 551
         buildingApartmentQueryWrapper.eq("apartment_id", building.getApartmentId());
552
+        building.setInsideArea(building.getInsideArea() == null ? 0d : building.getInsideArea());
552 553
         taBuildingApartmentMapper.update(building,buildingApartmentQueryWrapper);
553 554
 
554 555
         JSONObject jsonobject = JSONObject.parseObject(parameter);