public async Task <ErrData <bool> > DictionarySaveOrUpdateAsync(QueryData <SysDictionarySaveOrUpdateQuery> query) { var result = new ErrData <bool>(); var dt = DateTime.Now; query.Criteria.Creator = query.Extend.UserNo; query.Criteria.CreateName = query.Extend.UserName; query.Criteria.CreateTime = DateTime.Now; query.Criteria.Updator = query.Extend.UserNo; query.Criteria.UpdateName = query.Extend.UserName; query.Criteria.UpdateTime = DateTime.Now; var res = await _service.DictionarySaveOrUpdateAsync(query); if (res.HasErr) { result.SetInfo(false, res.ErrMsg, res.ErrCode); } else { result.SetInfo(true, res.ErrMsg, 200); } result.ExpandSeconds = (DateTime.Now - dt).TotalSeconds; return(result); }