فهرست منبع

禁饮禁食注意事项分条返回修改

wangzl 3 ماه پیش
والد
کامیت
5e7f9a4db2

+ 19 - 4
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/service/impl/BizFastingServiceImpl.java

@@ -11,6 +11,7 @@ import cn.tr.module.smart.common.enums.FastingEnums;
 import cn.tr.module.smart.common.po.BizClinicRoomPO;
 import cn.tr.module.smart.common.repository.BizClinicRoomRepository;
 import cn.tr.module.smart.common.service.IBizFastingService;
+import cn.tr.module.smart.wx.controller.vo.BizFastingAttentionVO;
 import cn.tr.module.smart.wx.controller.vo.BizFastingTipsVO;
 import cn.tr.module.smart.wx.controller.vo.BizFastingVo;
 import cn.tr.module.smart.wx.dto.BizFastingDTO;
@@ -74,11 +75,25 @@ public class BizFastingServiceImpl implements IBizFastingService {
                             .build();
                 }).collect(Collectors.toList());
 
-        String attention = "1.若不慎进食或饮水,无论量多少,必须立即联系主管护士,可能需调整手术时间(隐瞒会导致麻醉误吸风险,危及安全);" +
-                "2.术前可少量清水漱口(禁止吞咽),取下假牙、首饰,携带必需药物(需经医护核对);" +
-                "3.若术前出现发热(>37.3℃)、咳嗽、呕吐,请立即告知医护人员,评估是否暂停手术。";
+        List<BizFastingAttentionVO> attentionVOS = new ArrayList<>();
+        attentionVOS.add(BizFastingAttentionVO.builder()
+                .serialNo(1)
+                .icon("")
+                .content("若不慎进食或饮水,无论量多少,必须立即联系主管护士,可能需调整手术时间(隐瞒会导致麻醉误吸风险,危及安全);")
+                .build());
+        attentionVOS.add(BizFastingAttentionVO.builder()
+                .serialNo(2)
+                .icon("")
+                .content("术前可少量清水漱口(禁止吞咽),取下假牙、首饰,携带必需药物(需经医护核对);")
+                .build());
+        attentionVOS.add(BizFastingAttentionVO.builder()
+                .serialNo(3)
+                .icon("")
+                .content("若术前出现发热(>37.3℃)、咳嗽、呕吐,请立即告知医护人员,评估是否暂停手术。")
+                .build());
+
         return BizFastingVo.builder()
-                .attention(attention)
+                .attentions(attentionVOS)
                 .tips(collect)
                 .build();
     }

+ 34 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/wx/controller/vo/BizFastingAttentionVO.java

@@ -0,0 +1,34 @@
+package cn.tr.module.smart.wx.controller.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Builder;
+import lombok.Data;
+import lombok.ToString;
+
+import java.io.Serializable;
+
+/**
+ * TODO
+ *
+ * @author wangzl
+ * @date 2025/9/22 7:54
+ */
+@Data
+@ToString
+@Builder
+@ApiModel("提示注意事项")
+public class BizFastingAttentionVO implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty("序号")
+    private Integer serialNo;
+
+    @ApiModelProperty("图标 base64")
+    private String icon;
+
+    @ApiModelProperty("内容")
+    private String content;
+
+
+}

+ 1 - 1
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/wx/controller/vo/BizFastingVo.java

@@ -26,5 +26,5 @@ public class BizFastingVo implements Serializable {
     private List<BizFastingTipsVO> tips;
 
     @ApiModelProperty(value = "注意事项", position = 2)
-    private String attention;
+    private List<BizFastingAttentionVO> attentions;
 }