public void AddKJLocalIssuseList(KJLocalIssuse_AddInfoCollection list, int localAdvanceSeconds) { using (LottertDataDB) { var manage = new KJGameIssuseManager(); foreach (var item in list) { var issuse = manage.QueryKJGameIssuse(item.GameCode, item.IssuseNumber); if (issuse == null) { issuse = new KJGameIssuse { CreateTime = DateTime.Now, GameCode = item.GameCode, GameCode_IssuseNumber = string.Format("{0}|{1}", item.GameCode, item.IssuseNumber), IssuseNumber = item.IssuseNumber, StartTime = item.StartTime, WinNumber = string.Empty, Status = (IssuseStatus)IssuseStatus.OnSale, GatewayStopTime = item.BettingStopTime, OfficialStopTime = item.OfficialStopTime, LocalStopTime = item.BettingStopTime.AddSeconds(localAdvanceSeconds), }; manage.AddKJGameIssuse(issuse); } } } }
public void UpdateKJGameIssuse(KJGameIssuse entity) { LottertDataDB.GetDal <KJGameIssuse>().Update(entity); }