|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.ListUtils;
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import thyyxxk.webserver.config.exception.BizException;
|
|
@@ -22,6 +23,7 @@ import thyyxxk.webserver.entity.yibao.ZyActpatient;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.caoyaoyizhu.YzActOrderCy;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.jianyanjiancha.YshYjReq;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.shoushu.OpRecord;
|
|
|
+import thyyxxk.webserver.entity.zhuyuanyisheng.yizhuluru.XinZhenYiZhu;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.yizhuluru.YaoPinXiangMu;
|
|
|
import thyyxxk.webserver.utils.*;
|
|
|
import thyyxxk.webserver.websocket.WebSocketServer;
|
|
@@ -527,15 +529,15 @@ public class PublicServer {
|
|
|
"<span style='color:red'>" + xinXi + "</span><br>";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @param wardCode 患者病房
|
|
|
* @param content 内容
|
|
|
* @param title 标题
|
|
|
* @param patId 患者组合id(住院号_住院次数)
|
|
|
*/
|
|
|
- public void faSongXiaoXi(String wardCode, List<String> content, String title, String patId, String userCode) {
|
|
|
- List<String> huShiBianMa = dao.huoQuHuanZheBingFangDeHuShi(wardCode);
|
|
|
+ @Async
|
|
|
+ public void faSongXiaoXi(XinZhenYiZhu huanZheXinXi, List<String> content, String title, String userCode) {
|
|
|
+ List<String> huShiBianMa = dao.huoQuHuanZheBingFangDeHuShi(huanZheXinXi.getDeptCode());
|
|
|
JSONObject obj = new JSONObject();
|
|
|
obj.put("name", "systemNotification");
|
|
|
obj.put("type", "error");
|
|
@@ -550,7 +552,7 @@ public class PublicServer {
|
|
|
faSongNeiRong.setContent(s);
|
|
|
// 雪花算法
|
|
|
faSongNeiRong.setId(SnowFlakeId.instance().nextId());
|
|
|
- faSongNeiRong.setPatId(patId);
|
|
|
+ faSongNeiRong.setPatId(huanZheXinXi.getInpatientNo() + "_" + huanZheXinXi.getAdmissTimes());
|
|
|
faSongNeiRong.setTitle(title);
|
|
|
socketMessage1.add(faSongNeiRong);
|
|
|
for (String huShi : huShiBianMa) {
|
|
@@ -573,5 +575,6 @@ public class PublicServer {
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|