| | |
| | | return false; |
| | | } |
| | | |
| | | //请æ±ä¸çº§ç³»ç»ï¼æ¯å¦å
许å
¥åº |
| | | //æ¥è¯¢æ¯å¦æå
¥åºæé |
| | | public static boolean queryInMission(Integer sourceStaNo, Integer liftNo, String superTaskNo) { |
| | | ConfigService configService = SpringUtils.getBean(ConfigService.class); |
| | | if (configService == null) { |
| | | return false; |
| | | } |
| | | |
| | | Config queryInMissionPathEnableConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "queryInMissionPathEnable")); |
| | | if (queryInMissionPathEnableConfig != null) { |
| | | String queryInMissionPathEnable = queryInMissionPathEnableConfig.getValue(); |
| | | if (!queryInMissionPathEnable.equals("Y")) { |
| | | return true;//å
³éæ¥è¯¢å
¥åºæéåè½ |
| | | } |
| | | } |
| | | |
| | | Config superSystemUriConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "superSystemUri")); |
| | | if (superSystemUriConfig == null) { |
| | | return false; |
| | | } |
| | | String superSystemUri = superSystemUriConfig.getValue(); |
| | | |
| | | Config queryInMissionPathConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "queryInMissionPath")); |
| | | if (queryInMissionPathConfig == null) { |
| | | return false; |
| | | } |
| | | String missionPath = queryInMissionPathConfig.getValue(); |
| | | |
| | | try { |
| | | HashMap<String, Object> data = new HashMap<>(); |
| | | data.put("staNo", sourceStaNo); |
| | | data.put("liftNo", liftNo); |
| | | data.put("superTaskNo", superTaskNo); |
| | | |
| | | String response = new HttpHandler.Builder() |
| | | .setUri(superSystemUri) |
| | | .setPath(missionPath) |
| | | .setJson(JSON.toJSONString(data)) |
| | | .build() |
| | | .doPost(); |
| | | if (response.equals("ok")) { |
| | | return true;//æå
¥åºæé |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | } |