|
@@ -70,5 +70,17 @@ public class CaseController {
|
|
|
caseService.update(wrapper);
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
+ @GetMapping("/isShow")
|
|
|
+ public ResultData isShow(@RequestParam(required = false) Integer id,
|
|
|
+ @RequestParam(required = false) Integer isShow){
|
|
|
+ if(id == null || isShow == null){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ }
|
|
|
+ LambdaUpdateWrapper<Case> wrapper = new LambdaUpdateWrapper<>();
|
|
|
+ wrapper.eq(Case::getId,id);
|
|
|
+ wrapper.set(Case::getIsShow,isShow);
|
|
|
+ caseService.update(wrapper);
|
|
|
+ return ResultData.ok();
|
|
|
+ }
|
|
|
}
|
|
|
|