更换update返回结果为int

This commit is contained in:
不做码农
2021-12-14 21:51:19 +08:00
parent 50c48077d7
commit 487c7f31ff
9 changed files with 37 additions and 38 deletions

View File

@@ -95,7 +95,7 @@ namespace ZR.Admin.WebApi.Controllers.System
throw new CustomException($"修改岗位{post.PostName}失败,岗位编码已存在");
}
post.Update_by = User.Identity.Name;
return ToResponse(ToJson(PostService.Update(post) ? 1 : 0));
return ToResponse(PostService.Update(post));
}
/// <summary>