|
|
@ -99,9 +99,9 @@ public class ObjectServiceImpl extends BaseServiceImpl<InspectObjectMapper, Obje |
|
|
|
vo = BeanUtil.copy(dto, ObjectEntity.class); |
|
|
|
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())); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return vo; |
|
|
|
return vo; |
|
|
|