Aggiunta campo flag_calc_peso_intra su tipi documento e flag_sezione su dtb_docr
This commit is contained in:
@@ -1,16 +1,20 @@
|
|||||||
package it.integry.ems.migration.model;import it.integry.ems.migration._base.BaseMigration;
|
package it.integry.ems.migration.model;
|
||||||
|
|
||||||
|
import it.integry.ems.migration._base.BaseMigration;
|
||||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||||
|
|
||||||
public class Migration_20240515151737 extends BaseMigration implements MigrationModelInterface{
|
public class Migration_20240515151737 extends BaseMigration implements MigrationModelInterface {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void up()throws Exception {
|
public void up() throws Exception {
|
||||||
if(isHistoryDB())
|
if (isHistoryDB())
|
||||||
return;
|
return;
|
||||||
|
executeStatement("ALTER TABLE dtb_docr ADD flag_sezione integer;");
|
||||||
|
executeStatement("ALTER TABLE dtb_difr ADD flag_sezione integer;");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void down()throws Exception{
|
public void down() throws Exception {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -187,6 +187,9 @@ public class DtbDocr extends DtbBaseDocR {
|
|||||||
@SqlField(value = "id_contratto")
|
@SqlField(value = "id_contratto")
|
||||||
private Long idContratto;
|
private Long idContratto;
|
||||||
|
|
||||||
|
/*Flag_sezione vale 1 per le righe dei riepilogo INTRa, mentre per tutte le altre righe vale null */
|
||||||
|
@SqlField(value = "flag_sezione")
|
||||||
|
private Integer flagSezione;
|
||||||
@JsonProperty(value = "pesoNetto")
|
@JsonProperty(value = "pesoNetto")
|
||||||
private BigDecimal pesoNetto;
|
private BigDecimal pesoNetto;
|
||||||
private int rigaKit;
|
private int rigaKit;
|
||||||
@@ -1053,6 +1056,14 @@ public class DtbDocr extends DtbBaseDocR {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getFlagSezione() {
|
||||||
|
return flagSezione;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlagSezione(Integer flagSezione) {
|
||||||
|
this.flagSezione = flagSezione;
|
||||||
|
}
|
||||||
|
|
||||||
public String getReso() {
|
public String getReso() {
|
||||||
return reso;
|
return reso;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -203,8 +203,8 @@ public class DtbTipi extends EntityBase {
|
|||||||
@SqlField(value = "flag_cons_consumi", nullable = false, defaultObjectValue = "0")
|
@SqlField(value = "flag_cons_consumi", nullable = false, defaultObjectValue = "0")
|
||||||
private Boolean flagConsConsumi;
|
private Boolean flagConsConsumi;
|
||||||
|
|
||||||
@SqlField(value = "flag_sezione", nullable = false)
|
@SqlField(value = "flag_calc_peso_intra", nullable = false, defaultObjectValue = "N")
|
||||||
private String flagSezione;
|
private String flagCalcPesoIntra;
|
||||||
|
|
||||||
@EntityChild
|
@EntityChild
|
||||||
private List<DtbTipiAnag> dtbTipiAnag;
|
private List<DtbTipiAnag> dtbTipiAnag;
|
||||||
@@ -715,12 +715,12 @@ public class DtbTipi extends EntityBase {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFlagSezione() {
|
public String getFlagCalcPesoIntra() {
|
||||||
return flagSezione;
|
return flagCalcPesoIntra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DtbTipi setFlagSezione(String flagSezione) {
|
public DtbTipi setFlagCalcPesoIntra(String flagCalcPesoIntra) {
|
||||||
this.flagSezione = flagSezione;
|
this.flagCalcPesoIntra = flagCalcPesoIntra;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user