aggiunta una distinct
This commit is contained in:
@@ -70,7 +70,7 @@ public class RossoGarganoSyncService {
|
||||
logger.info("Importazione agenti: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs");
|
||||
|
||||
savePdc(rgExchange.getConnection());
|
||||
logger.info("Importazione agenti: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs");
|
||||
logger.info("Importazione Conti del piano dei conti: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs");
|
||||
|
||||
deleteCtbMovt(rgExchange.getConnection());
|
||||
logger.info("Cancellazione movimenti contabili: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs");
|
||||
@@ -762,7 +762,7 @@ public class RossoGarganoSyncService {
|
||||
" AND cl_codice NOT LIKE '1%')\n" +
|
||||
"\n" +
|
||||
"\n" +
|
||||
"SELECT FORMAT(CAST(conti_rg.max_id AS INT) +\n" +
|
||||
"SELECT distinct FORMAT(CAST(conti_rg.max_id AS INT) +\n" +
|
||||
" ROW_NUMBER() OVER (PARTITION BY conti_new.cod_cgrp, conti_new.cod_cmas ORDER BY conti_new.diacod),\n" +
|
||||
" '000000') AS cod_ccon,\n" +
|
||||
" conti_new.*\n" +
|
||||
|
||||
Reference in New Issue
Block a user