Explorar el Código

Log indicando insercion a bruto los ids

Christian hace 3 años
padre
commit
06f6e54eef

+ 10 - 2
application/helpers/funciones_helper.php Ver fichero

90
 
90
 
91
         foreach ($fila_archivo as $row) {
91
         foreach ($fila_archivo as $row) {
92
 
92
 
93
+            if ($nombreTabla == "bruto_datos_iniciales" || $nombreTabla == "maestro_datos_iniciales_licitacion") {
94
+                if (is_array($row)) {
95
+                    guardar_log($nombreLog, "ID_licitacion-" . $row['id_licitacion']);
96
+                } else {
97
+                    guardar_log($nombreLog, "ID_licitacion-" . $row->id_licitacion);
98
+                }
99
+            }
100
+
93
             $conjunto[] = $row;
101
             $conjunto[] = $row;
94
 
102
 
95
             $contador++;
103
             $contador++;
96
 
104
 
97
             if ($contador % 5000 == 0) {
105
             if ($contador % 5000 == 0) {
98
-                guardar_log($nombreLog, count($conjunto));
106
+                guardar_log($nombreLog, "Insertados - " . count($conjunto));
99
                 //$CI->db->insert_batch($nombreTabla, $conjunto);
107
                 //$CI->db->insert_batch($nombreTabla, $conjunto);
100
                 $CI->db->insert_on_duplicate_update_batch($nombreTabla, $conjunto);
108
                 $CI->db->insert_on_duplicate_update_batch($nombreTabla, $conjunto);
101
 
109
 
104
         }
112
         }
105
 
113
 
106
         if (count($conjunto) > 0) {
114
         if (count($conjunto) > 0) {
107
-
115
+            guardar_log($nombreLog, "Insertados - " . count($conjunto));
108
             //$CI->db->insert_batch($nombreTabla, $conjunto);
116
             //$CI->db->insert_batch($nombreTabla, $conjunto);
109
             $CI->db->insert_on_duplicate_update_batch($nombreTabla, $conjunto);
117
             $CI->db->insert_on_duplicate_update_batch($nombreTabla, $conjunto);
110
         }
118
         }

+ 1 - 2
application/libraries/ParserFile.php Ver fichero

47
             foreach ($array['entry'] as $clave => $row) {
47
             foreach ($array['entry'] as $clave => $row) {
48
 
48
 
49
                 $arrayDeletedEntries = $xml->children('at', true);
49
                 $arrayDeletedEntries = $xml->children('at', true);
50
-                //$var = $xml->entry[$clave]->ContractFolderStatus;
51
-                //$var2 = $this->existAttribute($var, "ContractFolderStatusCode", "string", "listURI");
50
+
52
                 $resultEntries[$filename]['general'][$aux] = $this->nodoEntry($row, $xml->entry[$clave], $datosPerfil->id);
51
                 $resultEntries[$filename]['general'][$aux] = $this->nodoEntry($row, $xml->entry[$clave], $datosPerfil->id);
53
 
52
 
54
                 $resultEntries[$filename]['contractInfo'][$aux] = $this->nodoContractFolderStatus($row, $xml->entry[$clave]);
53
                 $resultEntries[$filename]['contractInfo'][$aux] = $this->nodoContractFolderStatus($row, $xml->entry[$clave]);