|
@@ -24,6 +24,7 @@ import thyyxxk.webserver.utils.*;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
+import java.util.stream.Stream;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -783,10 +784,14 @@ public class YiZhuLuRuServer {
|
|
|
return ResultVoUtil.success(ExceptionEnum.SUCCESS_AND_NOTIFICATION);
|
|
|
}
|
|
|
|
|
|
- private ResultVo<String> ceXiaoYiZhu(YzActOrder yz, String content) {
|
|
|
+ private ResultVo<String> ceXiaoYiZhu(YzActOrder param, String content) {
|
|
|
if (StringUtil.isBlank(content)) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请填写撤销原因。");
|
|
|
}
|
|
|
+ YzActOrder yz = dao.chaXunYiZhuXinXin(param.getActOrderNo());
|
|
|
+ if (yz == null) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有找到对应医嘱的信息。");
|
|
|
+ }
|
|
|
String userCode = TokenUtil.getTokenUserId();
|
|
|
if (publicServer.noNeedRule(38)) {
|
|
|
if (!yz.getPhysician().trim().equals(userCode)) {
|
|
@@ -810,7 +815,11 @@ public class YiZhuLuRuServer {
|
|
|
// 更新原来的状态
|
|
|
dao.genXingShanChuBiaoZhi(userCode, yz.getActOrderNo());
|
|
|
log.info("删除医嘱==》数据:{},操作人:{}", JSON.toJSONString(yz), userCode);
|
|
|
-
|
|
|
+ publicServer.faSongXiaoXi(dao.huoQuHuanZheXinXi(yz.getInpatientNo(), yz.getAdmissTimes()),
|
|
|
+ Stream.of(String.format("医嘱名:【%s】,<br>" +
|
|
|
+ "医嘱号:【%s】,<br>" +
|
|
|
+ "撤销原因【%s】", yz.getOrderName(), yz.getActOrderNo(), content)).collect(Collectors.toList()),
|
|
|
+ "撤销医嘱", TokenUtil.getTokenUserId());
|
|
|
return ResultVoUtil.success(ExceptionEnum.SUCCESS_AND_NOTIFICATION, "医嘱撤销成功。");
|
|
|
}
|
|
|
|