glj-代码提交

This commit is contained in:
glj 2023-05-23 09:27:11 +08:00
parent e700b9e004
commit 9dca8104d7
1 changed files with 29 additions and 1 deletions

View File

@ -118,20 +118,48 @@ public class RemoteSensingSourceDataServiceImpl extends ServiceImpl<RemoteSensin
}
remoteSensingSourceData.setProductTime(dateStr);
}
remoteSensingSourceData.setProductResolution(Double.parseDouble(product_resolution));
if (product_resolution!=null){
remoteSensingSourceData.setProductResolution(Double.parseDouble(product_resolution));
}
if (cloud_cover!=null){
remoteSensingSourceData.setCloudCover(Integer.parseInt(cloud_cover));
}
if (satellite_code!=null){
remoteSensingSourceData.setSatelliteCode(satellite_code);
}
if (upper_left_lat!=null){
remoteSensingSourceData.setUpperLeftLat(Double.parseDouble(upper_left_lat));
}
if (upper_left_lon!=null){
remoteSensingSourceData.setUpperLeftLon(Double.parseDouble(upper_left_lon));
}
if (upper_right_lat!=null){
remoteSensingSourceData.setUpperRightLat(Double.parseDouble(upper_right_lat));
}
if (upper_right_lon!=null){
remoteSensingSourceData.setUpperRightLon(Double.parseDouble(upper_right_lon));
}
if (view_center_lat!=null){
remoteSensingSourceData.setViewCenterLat(Double.parseDouble(view_center_lat));
}
if (view_center_lon!=null){
remoteSensingSourceData.setViewCenterLon(Double.parseDouble(view_center_lon));
}
if (lower_right_lat!=null){
remoteSensingSourceData.setLowerRightLat(Double.parseDouble(lower_right_lat));
}
if (lower_right_lon!=null){
remoteSensingSourceData.setLowerRightLon(Double.parseDouble(lower_right_lon));
}
if (lower_left_lat!=null){
remoteSensingSourceData.setLowerLeftLat(Double.parseDouble(lower_left_lat));
}
if (lower_left_lon!=null){
remoteSensingSourceData.setLowerLeftLon(Double.parseDouble(lower_left_lon));
}
if (source_organization!=null){
remoteSensingSourceData.setSourceOrganization(source_organization);
}
remoteSensingSourceData.setDisasterId(disasterId);
remoteSensingSourceData.setCreateTime(new Date());
remoteSensingSourceData.setStatus(3);