|
@ -11,6 +11,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@ -25,6 +26,8 @@ public class MedicineServive {
|
|
|
private HttpClientUtil httpClientUtil;
|
|
|
@Autowired
|
|
|
private MediicinedrugsDao mediicinedrugsDao;
|
|
|
@Value("${medicine.socketUrl}")
|
|
|
private String socketUrl;
|
|
|
|
|
|
|
|
|
public void getOrgPhysicDict(String orgCode, String name, String orgName, String physicCode) {
|
|
@ -108,7 +111,7 @@ public class MedicineServive {
|
|
|
param += "?temperatureControl=" + temperatureControl;
|
|
|
param += "?humidityControl=" + humidityControl;
|
|
|
param += "?heat=" + heat;
|
|
|
String res = httpClientUtil.get("http://yik.ab-inbev.vip/c/upws/send"+param,"utf-8");
|
|
|
String res = httpClientUtil.get(socketUrl+param,"utf-8");
|
|
|
System.out.println(res);
|
|
|
/* if (StringUtils.isNoneBlank(res)){
|
|
|
object =JSONObject.parseObject(res);
|