Exemplo n.º 1
0
        public async Task ModifyCheckNumAsync(string userId, TDCheckNumModifyDTO data)
        {
            var entity = await GetEntityAsync(data.Id);

            entity.CheckNum    = data.CheckNum;
            entity.CheckUserId = userId;
            if (entity.CheckNum != null && entity.CheckNum > 0)
            {
                entity.DisNum = entity.CheckNum - entity.LocalNum;
            }
            await UpdateAsync(entity);
        }
Exemplo n.º 2
0
 public async Task ModifyCheckNum(TDCheckNumModifyDTO data)
 {
     await _tD_CheckDataBus.ModifyCheckNumAsync(_provider.GetRequiredService <IOperator>().UserId, data);
 }