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"})