Finish Hotfix-64
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240618123104 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if( isTextiles())
|
||||
executeStatement("alter table ttb_style add flag_min_ord_linea_col bit default 1 not null;");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -115,6 +115,8 @@ public class TtbStyle extends EntityBase {
|
||||
private String temaEstero;
|
||||
@SqlField(value = "path_file_img")
|
||||
private String pathFileImg;
|
||||
@SqlField(value = "flag_min_ord_linea_col")
|
||||
private Boolean flagMinOrdLineaCol;
|
||||
|
||||
@Priority(value = 1, copyPk = false)
|
||||
private MtbAart mtbAart;
|
||||
@@ -527,6 +529,14 @@ public class TtbStyle extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean getFlagMinOrdLineaCol() {
|
||||
return flagMinOrdLineaCol;
|
||||
}
|
||||
|
||||
public TtbStyle setFlagMinOrdLineaCol(Boolean flagMinOrdLineaCol) {
|
||||
this.flagMinOrdLineaCol = flagMinOrdLineaCol;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<TtbStyleColori> getTtbStyleColori() {
|
||||
return ttbStyleColori;
|
||||
|
||||
@@ -397,7 +397,7 @@ public class OrdikidsService {
|
||||
" mtb_aart.cod_sco_art, " +
|
||||
" ttb_style.prezzo_base, " +
|
||||
" ttb_style.val_scatto, " +
|
||||
" ttb_line.num_min_art_col " +
|
||||
" ttb_line.num_min_art_col * ttb_style.flag_min_ord_linea_col as num_min_art_col " +
|
||||
"FROM tvvw_agen_line INNER JOIN ttb_style ON tvvw_agen_line.cod_line = ttb_style.cod_line and ttb_style.anno_stag = tvvw_agen_line.anno_stag " +
|
||||
" INNER JOIN mtb_aart ON ttb_style.cod_style = mtb_aart.cod_mart " +
|
||||
" INNER JOIN ttb_line ON ttb_style.cod_line = ttb_line.cod_line " +
|
||||
|
||||
Reference in New Issue
Block a user