Browse Source

# 巡检对象位置更新保存bug处理

zhongwei
haungxing 9 months ago
parent
commit
67172aaa3c
  1. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/services/impl/ObjectServiceImpl.java

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/services/impl/ObjectServiceImpl.java

@ -81,9 +81,9 @@ public class ObjectServiceImpl extends BaseServiceImpl<InspectObjectMapper, Obje
ObjectEntity vo = BeanUtil.copy(dto, ObjectEntity.class); ObjectEntity vo = BeanUtil.copy(dto, ObjectEntity.class);
if(Func.isNotEmpty(dto.getRealId())){ if(Func.isNotEmpty(dto.getRealId())){
vo.setName(dto.getOtherName()); vo.setName(dto.getOtherName());
vo.setAddress(dto.getOtherAddress()); vo.setAddress(Optional.ofNullable(dto.getOtherAddress()).orElse(vo.getAddress()));
vo.setLgtd(dto.getOtherLgtd()); vo.setLgtd(Optional.ofNullable(dto.getOtherLgtd()).orElse(vo.getLgtd()));
vo.setLttd(dto.getOtherLttd()); vo.setLttd(Optional.ofNullable(dto.getOtherLttd()).orElse(vo.getLttd()));
} }
re.add(vo); re.add(vo);
} }

Loading…
Cancel
Save