| | |
| | | @Value("${ren.startUpTestPACK}") |
| | | private String startUpTestPACK; |
| | | |
| | | @Value("${ren.startUpTestPACK}") |
| | | @Value("${ren.suspendTestPACK}") |
| | | private String suspendTestPACK; |
| | | |
| | | @Value("${mes.inPath}") |
| | |
| | | review.setBarcode(testMast.getBarcode()); |
| | | review.setChannel(testMast.getChannel().toString()); |
| | | review.setRequestTime(DateUtils.convert(new Date())); |
| | | if (testMast.getChannel()>=1 && testMast.getChannel()<=8){ |
| | | if (testMast.getChannel()<1 || testMast.getChannel()>48){ |
| | | log.error("通道有误,请查看!"); |
| | | } else if (testMast.getChannel()<=8){ |
| | | renUrl=renUrl1; |
| | | }else if (testMast.getChannel()>=9 && testMast.getChannel()<=16){ |
| | | }else if (testMast.getChannel()<=16){ |
| | | renUrl=renUrl2; |
| | | }else if (testMast.getChannel()>=17 && testMast.getChannel()<=24){ |
| | | }else if (testMast.getChannel()<=24){ |
| | | renUrl=renUrl3; |
| | | }else if (testMast.getChannel()>=25 && testMast.getChannel()<=32){ |
| | | }else if (testMast.getChannel()<=32){ |
| | | renUrl=renUrl4; |
| | | }else if (testMast.getChannel()>=33 && testMast.getChannel()<=40){ |
| | | }else if (testMast.getChannel()<=40){ |
| | | renUrl=renUrl5; |
| | | }else if (testMast.getChannel()>=41 && testMast.getChannel()<=48){ |
| | | }else if (testMast.getChannel()<=48){ |
| | | renUrl=renUrl6; |
| | | } |
| | | return postMesData(renUrl,startUpTestPACK,review); |
| | |
| | | case "48": |
| | | renUrl=renUrl6; |
| | | break; |
| | | default: |
| | | log.error("通道有误,请查看!"); |
| | | } |
| | | return postMesData(renUrl,suspendTestPACK,review); |
| | | }catch (Exception e) { |
| | |
| | | name="测试系统"; |
| | | }else if (URL.equals(renUrl6)){ |
| | | name="测试系统"; |
| | | }else { |
| | | log.error("查询连接失败,请查看!"); |
| | | } |
| | | if(combParam != null){ |
| | | String response = ""; |