| ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/TSysOtherConfigController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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); @@ -176,12 +182,12 @@ // 小程序检测 sysInspection.setInspectionType(2); // 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 +252,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); } }