新增接口获取所有体检套餐集合

This commit is contained in:
lxd 2025-02-18 14:25:47 +08:00
parent 4aaf99ea97
commit b0dca6c6f7
3 changed files with 17 additions and 3 deletions

View File

@ -95,7 +95,13 @@ public class ExammoduleController {
ExammoduleDO exammodule = exammoduleService.getExammodule(id);
return success(BeanUtils.toBean(exammodule, ExammoduleRespVO.class));
}
@GetMapping("/getList")
@Operation(summary = "获得所有体检套餐")
public CommonResult<List<ExammoduleRespVO>> getListExammodule()
{
List<ExammoduleDO> exammodule = exammoduleService.getListExammodule();
return success(BeanUtils.toBean(exammodule, ExammoduleRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得体检套餐分页")
public CommonResult<PageResult<ExammoduleRespVO>> getExammodulePage(@Valid ExammodulePageReqVO pageReqVO) {

View File

@ -61,6 +61,10 @@ public interface ExammoduleService {
* @return 体检套餐
*/
ExammoduleDO getExammodule(Integer id);
/*
* 查询所有的体检套餐
* */
List<ExammoduleDO> getListExammodule();
/**
* 获得体检套餐分页

View File

@ -84,7 +84,7 @@ public class ExammoduleServiceImpl implements ExammoduleService {
exammoduleMapper.delete(queryWrapper);
}
@Override
public void deleteExammoduleitemcode(String itemcode,Integer moduleid)
public void deleteExammoduleitemcode(String itemcode, Integer moduleid)
{
QueryWrapper<ExammoduleDO> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("itemCode", itemcode);
@ -101,7 +101,11 @@ public class ExammoduleServiceImpl implements ExammoduleService {
public ExammoduleDO getExammodule(Integer id) {
return exammoduleMapper.selectById(id);
}
@Override
public List<ExammoduleDO> getListExammodule()
{
return exammoduleMapper.selectList();
}
@Override
public PageResult<ExammoduleDO> getExammodulePage(ExammodulePageReqVO pageReqVO) {
return exammoduleMapper.selectPage(pageReqVO);