|
|
|
|
|
|
|
|
TauvInspectDriver inspectDriver = new TauvInspectDriver(); |
|
|
TauvInspectDriver inspectDriver = new TauvInspectDriver(); |
|
|
// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
|
|
|
|
inspectDriver.setWeather(task.getWeather()); |
|
|
|
|
|
inspectDriver.setWind(task.getWind()); |
|
|
|
|
|
inspectDriver.setTemperature(task.getTemperature()); |
|
|
|
|
|
inspectDriver.setFlightHeight(new BigDecimal(task.getFlightHeight())); |
|
|
|
|
|
inspectDriver.setFlightSpeed(new BigDecimal(task.getFlightSpeed())); |
|
|
|
|
|
inspectDriver.setFlightTime(new BigDecimal(task.getFlightTime())); |
|
|
|
|
|
inspectDriver.setRemark(task.getRemark()); |
|
|
|
|
|
|
|
|
inspectDriver.setWeather(StringUtils.isEmpty(task.getWeather()) ? "" : task.getWeather().trim()); |
|
|
|
|
|
inspectDriver.setWind(StringUtils.isEmpty(task.getWind()) ? "" : task.getWind().trim()); |
|
|
|
|
|
inspectDriver.setTemperature(StringUtils.isEmpty(task.getTemperature()) ? "" : task.getTemperature().trim()); |
|
|
|
|
|
if (!StringUtils.isEmpty(task.getFlightHeight())) { |
|
|
|
|
|
inspectDriver.setFlightHeight(new BigDecimal(task.getFlightHeight())); |
|
|
|
|
|
} |
|
|
|
|
|
if (!StringUtils.isEmpty(task.getFlightSpeed())) { |
|
|
|
|
|
inspectDriver.setFlightSpeed(new BigDecimal(task.getFlightSpeed())); |
|
|
|
|
|
} |
|
|
|
|
|
if (!StringUtils.isEmpty(task.getFlightTime())) { |
|
|
|
|
|
inspectDriver.setFlightTime(new BigDecimal(task.getFlightTime())); |
|
|
|
|
|
} |
|
|
|
|
|
inspectDriver.setRemark(StringUtils.isEmpty(task.getRemark()) ? "" : task.getRemark().trim()); |
|
|
inspectDriver.setStatus(3); |
|
|
inspectDriver.setStatus(3); |
|
|
inspectDriver.setFlightHand(adminId); |
|
|
inspectDriver.setFlightHand(adminId); |
|
|
inspectDriver.setExecutionTime(task.getExecutionTime()); |
|
|
inspectDriver.setExecutionTime(task.getExecutionTime()); |