Fix max id su esportazione food process
This commit is contained in:
@@ -124,7 +124,7 @@ public class FoodProcessRestService {
|
||||
// Articolo nuovo, creo un nuovo id
|
||||
if (mtbAartAnag == null) {
|
||||
sql = Query.format(
|
||||
"SELECT CAST(ISNULL(MAX(cod_mart_anag), 0) + 1 AS VARCHAR) AS cod_mart_anag\n" +
|
||||
"SELECT CAST(ISNULL(MAX(CAST(cod_mart_anag AS INT)), 0) + 1 AS VARCHAR) AS cod_mart_anag\n" +
|
||||
"FROM mtb_aart_anag\n" +
|
||||
"WHERE cod_anag = %s",
|
||||
codAnagTopControl
|
||||
|
||||
Reference in New Issue
Block a user