@ -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);
}
@ -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)]
@ -134,6 +134,19 @@ namespace Win.Sfs.SettleAccount.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;