protected override bool AddItemsToDb(List <R_RInfo> addItems)
 {
     try
     {
         IEnumerable <IGrouping <string, R_RInfo> > groupYYYYMM = addItems.GroupBy(p => p.Timer.ToString("yyyyMM"));
         foreach (IGrouping <string, R_RInfo> info in groupYYYYMM)
         {
             var runloginfolist = info.ToList();
             var runlogModels   = ObjectConverter.CopyList <R_RInfo, Jc_RModel>(runloginfolist);
             //if (!runLogRepositoty.BulkCopy("Jc_R" + info.Key, runlogModels, BuildDataColumn(columns)))
             if (!runLogRepositoty.BulkCopy("PE_DataRunRecord" + info.Key, runlogModels, null)) //2017.9.16 by 解决入库时间带毫秒问题
             {
                 int isconn = runLogRepositoty.GetTotalRecord("DataToDb_GetDbServerIsNormal");
                 if (isconn <= 0)
                 {
                     AddDataToLocal(runloginfolist);
                 }
             }
         }
         return(true);
     }
     catch (Exception ex)
     {
         LogHelper.Error("运行记录数据入库失败:" + "\r\n" + ex.Message);
         return(false);
     }
 }
 protected override bool AddLocalDataToDb(List <Jc_RInfo> addLocalItems)
 {
     if (addLocalItems.Any())
     {
         var key           = addLocalItems[0].Timer.ToString("yyyyMM");
         var initialModels = ObjectConverter.CopyList <Jc_RInfo, Jc_RModel>(addLocalItems);
         return(runLogRepositoty.BulkCopy("KJ_DataRunRecord" + key, initialModels, BuildDataColumn(columns)));
     }
     return(true);
 }