manage:代码结构调整

dev_2.0.0
xueqingkun 1 year ago
parent 6bd610d479
commit d722669db4

@ -29,30 +29,30 @@ public class DiseaseController {
@ApiOperation("删除疾病") @ApiOperation("删除疾病")
@DeleteMapping("/delete") @DeleteMapping("/delete")
public boolean deleteDisease(@RequestParam("疾病id") String id) { public boolean deleteDisease(@ApiParam("疾病id") @RequestParam String id) {
if (StrUtil.isEmpty(id)){ if (StrUtil.isEmpty(id)){
throw new BusinessException("id is not allow empty"); throw new BusinessException("id is not allow empty");
} }
return diseaseService.removeById(id); return diseaseService.deleteDisease(id);
} }
@ApiOperation("修改辅助检查信息") @ApiOperation("修改疾病信息")
@PutMapping("/update") @PutMapping("/update")
public boolean updateDisease(Disease disease) { public boolean updateDisease(@RequestBody Disease disease) {
return diseaseService.updateDisease(disease); return diseaseService.updateDisease(disease);
} }
@ApiOperation("查询疾病列表") @ApiOperation("查询分页疾病列表")
@GetMapping("/queryPageList") @GetMapping("/queryPageList")
public Page<Disease> queryPageList(@RequestParam(defaultValue = "1")Integer pageNum, public Page<Disease> queryPageList(@RequestParam(defaultValue = "1")Integer pageNum,
@RequestParam(defaultValue = "10")Integer pageSize, @RequestParam(defaultValue = "10")Integer pageSize,
@RequestParam DiseaseVo diseaseVo) { DiseaseVo diseaseVo) {
return diseaseService.queryPageList(pageNum,pageSize,diseaseVo); return diseaseService.queryPageList(pageNum,pageSize,diseaseVo);

Loading…
Cancel
Save