|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.web.client.RestTemplate;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
import thyyxxk.webserver.dao.his.triage.RoomScreenDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
@@ -59,6 +60,11 @@ public class RoomScreenService {
|
|
|
if (code == ExceptionEnum.SUCCESS.getCode()) {
|
|
|
return ResultVoUtil.success("推送成功");
|
|
|
}
|
|
|
+ RestTemplate template = new RestTemplate();
|
|
|
+ Integer tcode = template.postForObject("http://172.16.32.160:8082/triage/roomScreen/pushMsg", param, Integer.class);
|
|
|
+ if (null != tcode && tcode != -1) {
|
|
|
+ return ResultVoUtil.success("推送成功");
|
|
|
+ }
|
|
|
return ResultVoUtil.fail(ExceptionEnum.INTERNAL_SERVER_ERROR, "推送失败!");
|
|
|
}
|
|
|
|