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; + } +