ifApp加上默认值

This commit is contained in:
xiaofajia 2024-11-19 15:38:47 +08:00
parent 0bb3fe2a16
commit b41ec206ac

View File

@ -80,7 +80,7 @@ public class DlRepairTicketsController {
**/ **/
@GetMapping("/get") @GetMapping("/get")
@Operation(summary = "查看一个工单的详细信息") @Operation(summary = "查看一个工单的详细信息")
public CommonResult<?> getTicketsById(@RequestParam("id") String id,@RequestParam(required = false,value = "ifApp")Boolean ifApp) { public CommonResult<?> getTicketsById(@RequestParam("id") String id,@RequestParam(required = false, value = "ifApp", defaultValue = "false")Boolean ifApp) {
return success(dlRepairTicketsService.getTicketsById(id,ifApp)); return success(dlRepairTicketsService.getTicketsById(id,ifApp));
} }