Fix error on import
This commit is contained in:
parent
b76909ce05
commit
d6f18dc851
@ -63,7 +63,7 @@ public class OtaPackageImportService extends BaseEntityImportService<OtaPackageI
|
|||||||
protected OtaPackage saveOrUpdate(EntitiesImportCtx ctx, OtaPackage otaPackage, OtaPackageExportData exportData, IdProvider idProvider, CompareResult compareResult) {
|
protected OtaPackage saveOrUpdate(EntitiesImportCtx ctx, OtaPackage otaPackage, OtaPackageExportData exportData, IdProvider idProvider, CompareResult compareResult) {
|
||||||
if (otaPackage.hasUrl()) {
|
if (otaPackage.hasUrl()) {
|
||||||
OtaPackageInfo info = new OtaPackageInfo(otaPackage);
|
OtaPackageInfo info = new OtaPackageInfo(otaPackage);
|
||||||
return (OtaPackage) otaPackageService.saveOtaPackageInfo(info, info.hasUrl());
|
return new OtaPackage(otaPackageService.saveOtaPackageInfo(info, info.hasUrl()));
|
||||||
}
|
}
|
||||||
return otaPackageService.saveOtaPackage(otaPackage);
|
return otaPackageService.saveOtaPackage(otaPackage);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,4 +47,9 @@ public class OtaPackage extends OtaPackageInfo {
|
|||||||
this.data = otaPackage.getData();
|
this.data = otaPackage.getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public OtaPackage(OtaPackageInfo otaPackageInfo) {
|
||||||
|
super(otaPackageInfo);
|
||||||
|
this.data = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user