Finish Hotfix-90
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -21,6 +21,8 @@ import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
|
||||
import it.integry.ems.sync.MultiDBTransaction.Connection;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.sql.*;
|
||||
import java.text.SimpleDateFormat;
|
||||
@@ -30,6 +32,8 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class SalesRules extends QueryRules {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(SalesRules.class);
|
||||
|
||||
public static boolean setCheckDataIniz(Connection connection, String userName) throws Exception {
|
||||
|
||||
boolean dbaUser = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(connection,
|
||||
@@ -1130,7 +1134,7 @@ public class SalesRules extends QueryRules {
|
||||
")\n" +
|
||||
"SELECT \n" +
|
||||
" articoli.cod_mart,\n" +
|
||||
" COALESCE(lisv.unt_mis_ven, :untMisVen, articoli.unt_mis) AS unt_mis_vend,\n" +
|
||||
" COALESCE(lisv.unt_mis_ven, :untMisVen, articoli.unt_mis) AS unt_mis_ven,\n" +
|
||||
" ISNULL(\n" +
|
||||
" lisv.rap_conv, \n" +
|
||||
" CASE \n" +
|
||||
@@ -1229,6 +1233,7 @@ public class SalesRules extends QueryRules {
|
||||
.replace(":whereCondPrezzoBloccato", whereCondPrezzoBloccato);
|
||||
|
||||
|
||||
log.trace(sql);
|
||||
List<MtbLisvData> articoliDaAggiornare = new ResultSetMapper().mapQuerySetToList(conn, sql, MtbLisvData.class, OperationType.INSERT_OR_UPDATE);
|
||||
for (MtbLisvData l : articoliDaAggiornare) {
|
||||
l.setCompletingManager(datiListino.getCompletingManager());
|
||||
|
||||
Reference in New Issue
Block a user