|
|
@@ -38,7 +38,12 @@ public class CameraPhoto extends BaseObject<Integer> {
|
|
|
this.manufacturer = mallReplyPhotoDto.getManufacturer();
|
|
|
this.model = mallReplyPhotoDto.getModel();
|
|
|
this.software = mallReplyPhotoDto.getSoftware();
|
|
|
- this.longitude = BigDecimal.valueOf(mallReplyPhotoDto.getLongitude());
|
|
|
- this.latitude = BigDecimal.valueOf(mallReplyPhotoDto.getLatitude());
|
|
|
+ if (mallReplyPhotoDto.getLongitude() != null) {
|
|
|
+ this.longitude = BigDecimal.valueOf(mallReplyPhotoDto.getLongitude());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (mallReplyPhotoDto.getLatitude() != null) {
|
|
|
+ this.latitude = BigDecimal.valueOf(mallReplyPhotoDto.getLatitude());
|
|
|
+ }
|
|
|
}
|
|
|
}
|