| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.zy.asrs.entity.BasStation; |
| | | import com.zy.asrs.entity.dto.WcsStationDto; |
| | | import com.zy.asrs.service.BasStationService; |
| | |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public synchronized void execute() { |
| | | Config wcsStationUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wcsStationUrl")); |
| | | Config wcsStationUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wcsStationUrl")); |
| | | if (wcsStationUrlConfig == null) { |
| | | return; |
| | | } |
| | |
| | | HashMap<String, Object> requestParam = new HashMap<>(); |
| | | |
| | | List<Integer> list = new ArrayList<>(); |
| | | List<BasStation> basStations = basStationService.selectList(new EntityWrapper<>()); |
| | | List<BasStation> basStations = basStationService.list(new QueryWrapper<>()); |
| | | for (BasStation basStation : basStations) { |
| | | list.add(basStation.getStationId()); |
| | | } |