protected override bool UpdateItemsToDb(List <R_RInfo> updateItems)
 {
     try
     {
         IEnumerable <IGrouping <string, R_RInfo> > groupYYYYMM = updateItems.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.BulkUpdate("PE_DataRunRecord" + info.Key, runlogModels, BuildDataColumn(columns), "ID"))
             {
                 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 UpdateLocalDataToDb(List <Jc_RInfo> updateLocalItems)
 {
     if (updateLocalItems.Any())
     {
         var key           = updateLocalItems[0].Timer.ToString("yyyyMM");
         var initialModels = ObjectConverter.CopyList <Jc_RInfo, Jc_RModel>(updateLocalItems);
         return(runLogRepositoty.BulkUpdate("KJ_DataRunRecord" + key, initialModels, BuildDataColumn(columns), "ID"));
     }
     return(true);
 }