From 3688a161b1b2eb6668a75973d85d325c9eea6a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Tue, 5 Dec 2023 16:05:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E9=85=8D=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=97=B6=E6=9B=B4=E6=96=B0=E6=A1=88=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24Hour/Controllers/Common/LawyerArchivesController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs index 718182a..3e5f300 100644 --- a/24Hour/Controllers/Common/LawyerArchivesController.cs +++ b/24Hour/Controllers/Common/LawyerArchivesController.cs @@ -373,6 +373,9 @@ namespace _24Hour.Controllers.Common { return Result.Error("当前预约信息已被分配"); } + lawsvc.objectstr = dto.casename; + + var entity = mapper.Map(dto); entity.Id = Guid.NewGuid().ToString(); entity.createrId = _userdata.Id; @@ -385,6 +388,7 @@ namespace _24Hour.Controllers.Common _db.BeginTran(); _db.Updateable(lawsvc).UpdateColumns(x => x.IsAssigned).ExecuteCommand(); var num = await _db.Insertable(entity).ExecuteCommandAsync(); + await _db.Updateable(lawsvc).UpdateColumns(x => x.objectstr).ExecuteCommandAsync(); _db.CommitTran(); if (num > 0) {