From bb8ca30e7832220d86fb3b8f2093008715db678c Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期一, 12 一月 2026 10:58:39 +0800
Subject: [PATCH] 海诊通AI对接,H5报告推送存储
---
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java b/ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java
index b7e1a30..f596370 100644
--- a/ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java
+++ b/ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java
@@ -20,8 +20,10 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
+import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
+import java.util.Objects;
/**
* <p>
@@ -168,6 +170,10 @@
if(sysAppUser != null){
sysInspection.setAppUserId(sysAppUser.getId());
sysInspection.setClinicId(sysAppUser.getClinicId());
+ LocalDateTime vipEndTime = sysAppUser.getVipEndTime();
+ if(Objects.nonNull(vipEndTime) && vipEndTime.isAfter(LocalDateTime.now())){
+ sysInspection.setIsPay(1);
+ }
}
sysInspection.setOutUserId(outUserId);
sysInspection.setBirthday(birthday);
@@ -175,7 +181,6 @@
sysInspection.setNickName(nickname);
// 小程序检测
sysInspection.setInspectionType(2);
- sysInspection.setIsPay(0);
// 舌诊信息
JSONObject phyTongueInfo = jsonObject.getJSONObject("phyTongueInfo");
--
Gitblit v1.7.1