From 5d343bb555b7b71b88f305dfcaab7f84295d4527 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Thu, 13 Mar 2025 10:47:45 +0800 Subject: [PATCH] healthbody --- .../common/service/HealthMedicalReportTmplService.java | 4 ++-- .../controller/HealthMobileMedicalReportController.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/nutrition/common/service/HealthMedicalReportTmplService.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/nutrition/common/service/HealthMedicalReportTmplService.java index be94aaa3..f5b32ab4 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/nutrition/common/service/HealthMedicalReportTmplService.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/nutrition/common/service/HealthMedicalReportTmplService.java @@ -22,8 +22,8 @@ public class HealthMedicalReportTmplService { return this.healthMedicalReportTmplMapper.listTemplate(); } - public List getTemplateInfoByTmplId(Long templateId) { - List healthMedicalReportProjectVOS = this.healthMedicalReportTmplMapper.listReportProject(templateId); + public List getTemplateInfoByTmplId(Long medicalTemplateId) { + List healthMedicalReportProjectVOS = this.healthMedicalReportTmplMapper.listReportProject(medicalTemplateId); if (CollectionUtil.isEmpty(healthMedicalReportProjectVOS)) { return healthMedicalReportProjectVOS; } else { diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/nutrition/mobile/controller/HealthMobileMedicalReportController.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/nutrition/mobile/controller/HealthMobileMedicalReportController.java index b72dd7e0..889b2f8a 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/nutrition/mobile/controller/HealthMobileMedicalReportController.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/nutrition/mobile/controller/HealthMobileMedicalReportController.java @@ -43,8 +43,8 @@ public class HealthMobileMedicalReportController { @PostMapping({"/get-medicalreport-info"}) // @RequiresGuest @ApiOperation("根据体检id查询报告详情") - public List getMedicalReportInfo(Long medicalId) { - return this.healthCustMedicalReportService.getMedicalReportInfo(medicalId); + public List getMedicalReportInfo(@RequestBody HealthCustMedicalReportEditDTO dto) { + return this.healthCustMedicalReportService.getMedicalReportInfo(dto.getMedicalId()); } @PostMapping({"/list-template"}) @@ -57,8 +57,8 @@ public class HealthMobileMedicalReportController { @PostMapping({"/get-template-info"}) // @RequiresGuest @ApiOperation("根据体检报告模板id查询模板详情") - public List getTemplateInfo(Long templateId) { - return this.healthMedicalReportTmplService.getTemplateInfoByTmplId(templateId); + public List getTemplateInfo(@RequestBody HealthMedicalReportTmplVO vo) { + return this.healthMedicalReportTmplService.getTemplateInfoByTmplId(vo.getMedicalTemplateId()); } @PostMapping({"/edit-medicalreport"})