fix:null警告
This commit is contained in:
@@ -178,6 +178,6 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
/// 文件名生成类型 1 原文件名 2 自定义 3 自动生成
|
||||
/// </summary>
|
||||
public int FileNameType { get; set; }
|
||||
public IFormFile File { get; set; }
|
||||
public IFormFile? File { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
[ActionPermissionFilter(Permission = "tool:gen:code")]
|
||||
public IActionResult CodeGenerate([FromBody] GenerateDto dto)
|
||||
{
|
||||
if (dto?.TableId <= 0)
|
||||
if (dto == null || dto.TableId <= 0)
|
||||
{
|
||||
throw new CustomException(ResultCode.CUSTOM_ERROR, "请求参数为空");
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
{
|
||||
return SUCCESS(_tasksQzService.GetId(id));
|
||||
}
|
||||
return SUCCESS(null);
|
||||
return SUCCESS(0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user