Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
6d7fd7e04e
  1. 10
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs
  2. 5
      src/Modules/SettleAccount/src/SettleAccount.Application/Jobs/TaskJobService.cs
  3. 13
      src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/TaskJobs/TaskJobManager.cs

10
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<bool> UpdateRemarkAsync(Guid p_id,string remark)
{
return await _service.UpdateAsync(p_id,remark);
}
}
}

5
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<bool> UpdateAsync(Guid p_id,string remark)
{
return await _mng.UpdateAsync(p_id,remark);
}
[UnitOfWork(false)]

13
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<bool> 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;
}

Loading…
Cancel
Save