//属性赋值 | //属性赋值 | ||||
AirportLine airportLine = new AirportLine(); | AirportLine airportLine = new AirportLine(); | ||||
airportLine.setTenantId(tenantId); | airportLine.setTenantId(tenantId); | ||||
airportLine.setInspectionLineId(id); | |||||
airportLine.setInspectionLineId(airlineFileId); | |||||
airportLine.setAirportLineName(airportLineName); | airportLine.setAirportLineName(airportLineName); | ||||
airportLine.setCreateTime(DateUtils.now()); | airportLine.setCreateTime(DateUtils.now()); | ||||
airportLine.setCreateUser(user.getId()); | airportLine.setCreateUser(user.getId()); |
//url | //url | ||||
if (Objects.nonNull(dataObject)) { | if (Objects.nonNull(dataObject)) { | ||||
log.info("获取的数据,dataObject={}", dataObject.toJSONString()); | |||||
// log.info("获取的数据,dataObject={}", dataObject.toJSONString()); | |||||
String records = dataObject.get("records").toString(); | String records = dataObject.get("records").toString(); | ||||
List<Airport> airportList = JSONObject.parseArray(records, Airport.class); | List<Airport> airportList = JSONObject.parseArray(records, Airport.class); | ||||
//log.info("获取records中的数据为:airportList={}", airportList); | //log.info("获取records中的数据为:airportList={}", airportList); |
@Slf4j | @Slf4j | ||||
@Service | @Service | ||||
public class QueryRecordIService { | public class QueryRecordIService { | ||||
@Autowired | @Autowired | ||||
@Qualifier("restTemplate") | @Qualifier("restTemplate") | ||||
private RestTemplate restTemplate; | private RestTemplate restTemplate; |