Aggiunti dati ttb_qta_min_ord in exportArticoliCodbarre ordikids
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:
@@ -23,6 +23,12 @@ public class TaglieDTO implements Serializable {
|
||||
@SqlField("pos")
|
||||
private Integer pos;
|
||||
|
||||
@SqlField("range_taglie")
|
||||
private Short rangeTaglie;
|
||||
|
||||
@SqlField("qta_min_ord_range")
|
||||
private BigDecimal qtaMinOrdRange;
|
||||
|
||||
@JsonIgnore
|
||||
@SqlField("cod_style")
|
||||
private String codStyle;
|
||||
@@ -32,12 +38,13 @@ public class TaglieDTO implements Serializable {
|
||||
public TaglieDTO() {
|
||||
}
|
||||
|
||||
public TaglieDTO(String cod_tagl, BigDecimal num_scatto, BigDecimal costo, Integer pos) {
|
||||
public TaglieDTO(String cod_tagl, BigDecimal num_scatto, BigDecimal costo, Integer pos, BigDecimal qtaMinOrdRange) {
|
||||
super();
|
||||
this.t = cod_tagl;
|
||||
this.s = num_scatto;
|
||||
this.c = costo;
|
||||
this.pos = pos;
|
||||
this.qtaMinOrdRange = qtaMinOrdRange;
|
||||
}
|
||||
|
||||
public String getT() {
|
||||
@@ -87,4 +94,22 @@ public class TaglieDTO implements Serializable {
|
||||
public void setPos(Integer pos) {
|
||||
this.pos = pos;
|
||||
}
|
||||
|
||||
public Short getRangeTaglie() {
|
||||
return rangeTaglie;
|
||||
}
|
||||
|
||||
public TaglieDTO setRangeTaglie(Short rangeTaglie) {
|
||||
this.rangeTaglie = rangeTaglie;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BigDecimal getQtaMinOrdRange() {
|
||||
return qtaMinOrdRange;
|
||||
}
|
||||
|
||||
public TaglieDTO setQtaMinOrdRange(BigDecimal qtaMinOrdRange) {
|
||||
this.qtaMinOrdRange = qtaMinOrdRange;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -523,7 +523,26 @@ public class OrdikidsService {
|
||||
.mapQuerySetToList(multiDBTransactionManager.getPrimaryConnection(), sql, ColoriDTO.class);
|
||||
if (coloriFull == null) coloriFull = new ArrayList<>();
|
||||
|
||||
sql = "SELECT cod_tagl, num_scatto, costo, cod_style, pos FROM ttb_style_taglie WHERE flag_attivo = 'S' AND cod_style IN(" + articoliInVector + ") ORDER BY cod_style, pos";
|
||||
sql = String.format(
|
||||
"SELECT ttb_style_taglie.cod_tagl,\n" +
|
||||
" ttb_style_taglie.num_scatto,\n" +
|
||||
" costo,\n" +
|
||||
" ttb_style_taglie.cod_style,\n" +
|
||||
" ttb_style_taglie.pos,\n" +
|
||||
" tge.range_taglie,\n" +
|
||||
" tqmo.qta_min_ord AS qta_min_ord_range\n" +
|
||||
"FROM ttb_style_taglie\n" +
|
||||
" INNER JOIN ttb_style ts ON ttb_style_taglie.cod_style = ts.cod_style\n" +
|
||||
" LEFT OUTER JOIN ttb_grtg_el tge ON ts.cod_grtg = tge.cod_grtg AND ttb_style_taglie.cod_tagl = tge.cod_tagl\n" +
|
||||
" LEFT OUTER JOIN ttb_qta_min_ord tqmo ON ts.cod_line = tqmo.cod_line AND tge.cod_grtg = tqmo.cod_grtg\n" +
|
||||
" AND tge.range_taglie = tqmo.range_taglie\n" +
|
||||
"WHERE flag_attivo = 'S'\n" +
|
||||
" AND ttb_style_taglie.cod_style IN\n" +
|
||||
" (%s)\n" +
|
||||
"ORDER BY cod_style, pos",
|
||||
articoliInVector
|
||||
);
|
||||
|
||||
List<TaglieDTO> taglieFull = new ResultSetMapper()
|
||||
.mapQuerySetToList(multiDBTransactionManager.getPrimaryConnection(), sql, TaglieDTO.class);
|
||||
if (taglieFull == null) taglieFull = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user