From 6d7fd7e04e48bfba9d19d4993540aa7980b75c2f Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 15 Feb 2022 09:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/TaskJobs/JobAppService.cs | 10 ++++++++++ .../Jobs/TaskJobService.cs | 5 ++++- .../Entities/TaskJobs/TaskJobManager.cs | 13 +++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs index 6908b5f7..b499fa55 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs @@ -120,6 +120,16 @@ namespace Win.Sfs.SettleAccount.Entities.TaskJobs + [HttpPost] + [Route("updateRemark")] + + + virtual public async Task UpdateRemarkAsync(Guid p_id,string remark) + { + return await _service.UpdateAsync(p_id,remark); + } + + } } diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Jobs/TaskJobService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Jobs/TaskJobService.cs index f78df279..b2b937af 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Jobs/TaskJobService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Jobs/TaskJobService.cs @@ -79,7 +79,10 @@ namespace Win.Sfs.SettleAccount.Entities.TaskJobs { return await _mng.DeleteListAsync(ids); } - + virtual public async Task UpdateAsync(Guid p_id,string remark) + { + return await _mng.UpdateAsync(p_id,remark); + } [UnitOfWork(false)] diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/TaskJobs/TaskJobManager.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/TaskJobs/TaskJobManager.cs index 1ea38dcb..235dd152 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/TaskJobs/TaskJobManager.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/TaskJobs/TaskJobManager.cs @@ -133,6 +133,19 @@ namespace Win.Sfs.SettleAccount.Entities return entities; } + + public virtual async Task UpdateAsync(Guid p_id,string Remark) + { + var entities=_repository.Where(p => p.Id == p_id); + if(entities!=null && entities.Count()>0) + { + var entity =await entities.FirstOrDefaultAsync(); + entity.Remark = Remark; + await _repository.UpdateAsync(entity); + } + return true; + } +