xuhy
2026-01-12 be732ce0ddfb505ca160eeb507d4a2a69fb4700c
海诊通AI对接,H5报告推送存储
1个文件已添加
1个文件已修改
50 ■■■■■ 已修改文件
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/TSysOtherConfigController.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java
@@ -175,13 +175,14 @@
        sysInspection.setNickName(nickname);
        // 小程序检测
        sysInspection.setInspectionType(2);
        sysInspection.setIsPay(0);
        // TODO 舌诊信息
        // 舌诊信息
        JSONObject phyTongueInfo = jsonObject.getJSONObject("phyTongueInfo");
        JSONObject tongueNatureColorInfo = phyTongueInfo.getJSONObject("tongueNatureColorInfo"); // 舌色信息
        String tongueNatureColor = tongueNatureColorInfo.getString("tongueNatureColorClinical"); // 舌色临床意义
        sysInspection.setTongueNatureColor(tongueNatureColor);
        // TODO 面诊信息
        // 面诊信息
        JSONObject phyFaceInfo = jsonObject.getJSONObject("phyFaceInfo");
        JSONObject lipColorInfo = phyFaceInfo.getJSONObject("lipColorInfo"); // 唇色信息
        String lipColorClinical = lipColorInfo.getString("lipColorClinical"); // 唇色临床意义
@@ -246,6 +247,7 @@
        sysInspection.setDeviceAccountId(device_account_id);
        // 硬件检测
        sysInspection.setInspectionType(3);
        sysInspection.setIsPay(1);
        // 通过手机号查询小程序用户
        TSysAppUser sysAppUser = sysAppUserService.getOne(Wrappers.lambdaQuery(TSysAppUser.class)
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/TSysOtherConfigController.java
New file
@@ -0,0 +1,44 @@
package com.ruoyi.web.controller.api;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.model.TSysOtherConfig;
import com.ruoyi.system.service.TSysOtherConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
 * <p>
 * 其他设置 前端控制器
 * </p>
 *
 * @author xiaochen
 * @since 2025-09-18
 */
@Api(tags = "其他设置")
@RestController
@RequestMapping("/t-sys-other-config")
public class TSysOtherConfigController {
    private final TSysOtherConfigService sysOtherConfigService;
    @Autowired
    public TSysOtherConfigController(TSysOtherConfigService sysOtherConfigService) {
        this.sysOtherConfigService = sysOtherConfigService;
    }
    /**
     * 查看其他设置详情
     */
    @ApiOperation(value = "查看其他设置详情")
    @GetMapping(value = "/getDetailById")
    public R<TSysOtherConfig> getDetailById() {
        TSysOtherConfig sysConfig = sysOtherConfigService.getById(1);
        return R.ok(sysConfig);
    }
}