private void InternalDoCheck(HK_CapitalAccountFreezeSum freezeSum) { int capitalAccountId = freezeSum.CapitalAccountLogo; decimal sum = freezeSum.FreezeCapitalSum; var capMemory = MemoryDataManager.HKCapitalMemoryList.GetByCapitalAccountLogo(capitalAccountId); if (capMemory == null) { return; } var capital = capMemory.Data; if (capital.FreezeCapitalTotal != sum) { decimal oldSum = capital.FreezeCapitalTotal; HK_CapitalAccount_DeltaInfo deltaInfo = new HK_CapitalAccount_DeltaInfo(); deltaInfo.CapitalAccountLogo = capitalAccountId; deltaInfo.FreezeCapitalTotalDelta = sum - oldSum; capMemory.AddDelta(deltaInfo); string format2 = "HKReckonUnitManager.DoCapitalFreezeCheck修正现货总冻结资金[初始总冻结资金={0},实际总冻结资金={1},资金账户ID={2}]"; string desc = string.Format(format2, oldSum, sum, capitalAccountId); LogHelper.WriteDebug(desc); } }
/// <summary> /// /// </summary> /// <param name="dataReader"></param> /// <returns></returns> private HK_CapitalAccountFreezeSum ReaderBind2(IDataReader dataReader) { HK_CapitalAccountFreezeSum model = new HK_CapitalAccountFreezeSum(); object ojb; ojb = dataReader["CapitalAccountLogo"]; if (ojb != null && ojb != DBNull.Value) { model.CapitalAccountLogo = (int)ojb; } ojb = dataReader["FreezeCapitalSum"]; if (ojb != null && ojb != DBNull.Value) { model.FreezeCapitalSum = (decimal)ojb; } return(model); }