Commit b02fccd18d9a08fe62a0850145b94753687755c3
1 parent
ae2adb2e49
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 9 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
b02fccd
... | ... | @@ -1709,24 +1709,27 @@ |
1709 | 1709 | sieveHuada.setIsNeedOtherChromReport("0"); |
1710 | 1710 | sieveHuada.setIsNeedReportOtherResult("0"); |
1711 | 1711 | |
1712 | - String jsonString = JsonUtil.obj2Str(sieveHuada); | |
1713 | 1712 | |
1714 | 1713 | Map<String, Object> signParams = getSignParams(SYSCODE, SECRET); |
1715 | 1714 | String timestamp = signParams.get("timestamp").toString(); |
1716 | 1715 | timestamp = timestamp.replaceAll(" ", "%20");//空格替换成 %20 |
1717 | 1716 | String syscode = signParams.get("syscode").toString(); |
1718 | 1717 | String sign = signParams.get("sign").toString(); |
1719 | - System.out.println("timestamp"+timestamp+" syscode="+" sign="+sign); | |
1718 | + System.out.println("timestamp" + timestamp + " syscode=" + " sign=" + sign); | |
1720 | 1719 | |
1721 | 1720 | |
1722 | - HashMap<String, String> map = new HashMap<>(); | |
1723 | - map.put("sampleInfos", jsonString); | |
1721 | + List<HuadaSieveApplyOrderAddRequest> list = new ArrayList<>(); | |
1722 | + list.add(sieveHuada); | |
1723 | + | |
1724 | + HashMap<String, Object> map = new HashMap<>(); | |
1725 | + map.put("sampleInfos", list); | |
1724 | 1726 | map.put("syscode", syscode); |
1725 | 1727 | map.put("sign", sign); |
1726 | 1728 | map.put("timestamp", timestamp); |
1727 | 1729 | |
1728 | - System.out.println("saveSampleInfo param="+JsonUtil.obj2JsonString(map)); | |
1729 | - String s = HttpClientUtil.sendPost(HUADA_URL + "/external/saveSampleInfos.do", map); | |
1730 | + String json = JsonUtil.obj2JsonString(map); | |
1731 | + System.out.println("saveSampleInfo param="+json); | |
1732 | + String s = HttpClientUtil.doPostSSL(HUADA_URL + "/external/saveSampleInfos.do", json); | |
1730 | 1733 | System.out.println(s); |
1731 | 1734 | JSONObject jsonObject = JSONObject.parseObject(s); |
1732 | 1735 |