新增接口获取所有体检套餐集合
This commit is contained in:
parent
4aaf99ea97
commit
b0dca6c6f7
@ -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) {
|
||||
|
@ -61,6 +61,10 @@ public interface ExammoduleService {
|
||||
* @return 体检套餐
|
||||
*/
|
||||
ExammoduleDO getExammodule(Integer id);
|
||||
/*
|
||||
* 查询所有的体检套餐
|
||||
* */
|
||||
List<ExammoduleDO> getListExammodule();
|
||||
|
||||
/**
|
||||
* 获得体检套餐分页
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user