| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.sxkj.gd.utils.GdGeoAddressUtil; |
| | | import org.sxkj.gd.utils.GeomUtils; |
| | | import org.sxkj.gd.workorder.dto.GdXingtuAirportListDTO; |
| | |
| | | * @return 同步数量 |
| | | */ |
| | | @Override |
| | | @Scheduled(cron = "0 0 0 * * ?") |
| | | // @Scheduled(cron = "*/10 * * * * ?") |
| | | public int syncXingtuDevice() throws Exception { |
| | | int total = 0; |
| | | // 2.同步机巢设备 |
| | |
| | | if (parent != null) { |
| | | entity.setLongitude(parent.getLongitude()); |
| | | entity.setLatitude(parent.getLatitude()); |
| | | entity.setHeight(parent.getHeight()); |
| | | } |
| | | } |
| | | return saveOrUpdateDevice(entity); |