| | |
| | | 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.core.common.Cools; |
| | | import com.zy.asrs.entity.BasStation; |
| | | import com.zy.asrs.entity.dto.*; |
| | |
| | | //WMS任务查询接口 |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public synchronized void taskQuery() { |
| | | Config wmsTaskQueryUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsTaskQueryUrl")); |
| | | Config wmsTaskQueryUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsTaskQueryUrl")); |
| | | if (wmsTaskQueryUrlConfig == null) { |
| | | return; |
| | | } |
| | |
| | | try { |
| | | HashMap<String, Object> requestParam = new HashMap<>(); |
| | | |
| | | List<BasStation> basStations = basStationService.selectList(new EntityWrapper<BasStation>().eq("out_enable", "Y")); |
| | | List<BasStation> basStations = basStationService.list(new QueryWrapper<BasStation>().eq("out_enable", "Y")); |
| | | for (BasStation basStation : basStations) { |
| | | WcsStationDto wcsStationDto = stationUtils.stationMap.get(basStation.getStationId()); |
| | | if (wcsStationDto == null) { |
| | |
| | | //WMS入库任务查询接口 |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public synchronized void inTaskQuery() { |
| | | Config wmsCombQueryUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsCombQueryUrl")); |
| | | Config wmsCombQueryUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsCombQueryUrl")); |
| | | if (wmsCombQueryUrlConfig == null) { |
| | | return; |
| | | } |
| | |
| | | try { |
| | | HashMap<String, Object> requestParam = new HashMap<>(); |
| | | |
| | | List<BasStation> basStations = basStationService.selectList(new EntityWrapper<BasStation>().eq("in_enable", "Y")); |
| | | List<BasStation> basStations = basStationService.list(new QueryWrapper<BasStation>().eq("in_enable", "Y")); |
| | | for (BasStation basStation : basStations) { |
| | | WcsStationDto wcsStationDto = stationUtils.stationMap.get(basStation.getStationId()); |
| | | if (wcsStationDto == null) { |
| | |
| | | @Synchronized |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void locQuery() { |
| | | Config wmsUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsLocQueryUrl")); |
| | | Config wmsUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsLocQueryUrl")); |
| | | if (wmsUrlConfig == null) { |
| | | return; |
| | | } |
| | |
| | | @Synchronized |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void inOutLineCharts() { |
| | | Config wmsUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsInOutLineChartsQueryUrl")); |
| | | Config wmsUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsInOutLineChartsQueryUrl")); |
| | | if (wmsUrlConfig == null) { |
| | | return; |
| | | } |
| | |
| | | @Synchronized |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void locDetlStatistics() { |
| | | Config wmsUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsLocDetlStatisticsQueryUrl")); |
| | | Config wmsUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsLocDetlStatisticsQueryUrl")); |
| | | if (wmsUrlConfig == null) { |
| | | return; |
| | | } |