新增错误返回

parent d02f323a
......@@ -124,6 +124,8 @@ public ApiResponse DepartmentDetail([CustomizeValidator(RuleSet = "Generate"), F
var user = claimService.At(request);
var again = againAllotService.GetAgainallot(request.AgainAllotID);
if (again == null)
return new ApiResponse(ResponseType.Fail, "当前二次绩效ID无效");
if (user.Role.First().RoleID == application.DirectorRole)
{
var detail = computeService.GetDepartmentDetail(again.AllotID.Value, user.Department, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment