|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.web.client.RestTemplate;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
import thyyxxk.webserver.constants.Message;
|
|
|
import thyyxxk.webserver.dao.his.zhuyuanyisheng.PatientCriticalValuesDao;
|
|
@@ -229,10 +230,7 @@ public class PatientCriticalValuesService {
|
|
|
|
|
|
public ResultVo<String> handleZyCriticalValue(Integer id) {
|
|
|
String handleStaff = TokenUtil.getInstance().getTokenUserId();
|
|
|
- int response = dao.handleZyCriticalValue(id, handleStaff);
|
|
|
- if (response > 0) {
|
|
|
- return ResultVoUtil.success("处理成功。");
|
|
|
- }
|
|
|
- return ResultVoUtil.fail(ExceptionEnum.INTERNAL_SERVER_ERROR, "处理失败,请稍后再试。");
|
|
|
+ String url = "http://192.168.200.6:8320/hospitalAppsApi/criticalValue/updateState?user=" + handleStaff + "&id=" + id;
|
|
|
+ return new RestTemplate().getForObject(url, ResultVo.class);
|
|
|
}
|
|
|
}
|