Commit d3ee0c15ce69515c448cb90ed5c1375379394909
1 parent
d5c02ffe86
Exists in
master
and in
6 other branches
华大基因产,查询报告类型
Showing 2 changed files with 26 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ApplyOrderController.java
View file @
d3ee0c1
| ... | ... | @@ -100,6 +100,12 @@ |
| 100 | 100 | applyOrderFacade.huadaFtp(sampleReportId, response); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + //华大基因,6.6.查询报告类型 | |
| 104 | + @RequestMapping(method = RequestMethod.POST,value = "/huadaGetReportType") | |
| 105 | + public void huadaGetReportType( @RequestParam(value = "sampleReportId") String sampleReportId) { | |
| 106 | + applyOrderFacade.huadaGetReportType(sampleReportId); | |
| 107 | + } | |
| 108 | + | |
| 103 | 109 | @RequestMapping(method = RequestMethod.GET, value = "/sieveapply") |
| 104 | 110 | @ResponseBody |
| 105 | 111 | @TokenRequired |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
d3ee0c1
| ... | ... | @@ -1731,9 +1731,26 @@ |
| 1731 | 1731 | e.printStackTrace(); |
| 1732 | 1732 | } |
| 1733 | 1733 | |
| 1734 | - | |
| 1735 | 1734 | } |
| 1735 | + public void huadaGetReportType(String sampleReportId) { | |
| 1736 | + try { | |
| 1737 | + Map<String, Object> signParams = getSignParams(SYSCODE, SECRET); | |
| 1738 | + String timestamp1 = signParams.get("timestamp").toString(); | |
| 1739 | + timestamp1 = timestamp1.replaceAll(" ", "%20"); | |
| 1740 | + String syscode1 = signParams.get("syscode").toString(); | |
| 1741 | + String sign1 = signParams.get("sign").toString(); | |
| 1742 | + HashMap<String, String> map1 = new HashMap<>(); | |
| 1743 | + Map<String, Object> mapParams = new HashMap<>(); | |
| 1744 | + mapParams.put("sampleReportId", sampleReportId); | |
| 1745 | + JSONObject jsonMapParams = new JSONObject(mapParams); | |
| 1746 | + map1.put("params", jsonMapParams.toString()); | |
| 1747 | + String data = HttpClientUtil.sendPost(HUADA_URL + "/intf?method=getReportType&" + "timestamp=" + timestamp1 + "&syscode=" + syscode1 + "&sign=" + sign1, map1); | |
| 1748 | + System.out.println(data); | |
| 1736 | 1749 | |
| 1750 | + } catch (Exception e) { | |
| 1751 | + e.printStackTrace(); | |
| 1752 | + } | |
| 1753 | + } | |
| 1737 | 1754 | /** |
| 1738 | 1755 | * 根据byte数组,生成文件 |
| 1739 | 1756 | */ |
| ... | ... | @@ -1814,6 +1831,8 @@ |
| 1814 | 1831 | } |
| 1815 | 1832 | return unencryptedStr; |
| 1816 | 1833 | } |
| 1834 | + | |
| 1835 | + | |
| 1817 | 1836 | |
| 1818 | 1837 | /*拼json使用*/ |
| 1819 | 1838 | class AllParamsRequest { |