From c4bc3ba6428ec76e6dfda8e221ef583753133c82 Mon Sep 17 00:00:00 2001 From: GoodTime <1031427248@qq.com> Date: Thu, 13 Jul 2023 06:29:53 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9E=E4=BD=93=EF=BC=8CID?= =?UTF-8?q?=E6=B2=A1=E5=BF=85=E8=A6=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: GoodTime <1031427248@qq.com> --- c#/UpdateBug.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 c#/UpdateBug.cs diff --git a/c#/UpdateBug.cs b/c#/UpdateBug.cs new file mode 100644 index 0000000..d4a8780 --- /dev/null +++ b/c#/UpdateBug.cs @@ -0,0 +1,16 @@ +try +{ + if(args.IsNull()) + { + return "参数不能为空"; + } + if(args.Id <= 0) + { + return "Id不能为空"; + } + var info = _people.Get(args.Id); + if(info != null) + { + info.Id = args.Id; // 更新人员Id也更新了 + } +} \ No newline at end of file -- Gitee