pequenos ajusetes da demanda de calculo da artesp 6401
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@45663 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d6fcc018cc
commit
841f4413c8
|
@ -38,7 +38,7 @@ public class TarifaKm implements Serializable, Comparable<TarifaKm>{
|
||||||
private OrgaoConcedente orgaoconcedenteId;
|
private OrgaoConcedente orgaoconcedenteId;
|
||||||
|
|
||||||
@Column(name = "KMATE")
|
@Column(name = "KMATE")
|
||||||
private Integer kmate;
|
private BigDecimal kmate;
|
||||||
|
|
||||||
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
@Column(name = "VALORTAXA") // tarifa
|
@Column(name = "VALORTAXA") // tarifa
|
||||||
|
@ -101,11 +101,11 @@ public class TarifaKm implements Serializable, Comparable<TarifaKm>{
|
||||||
this.orgaoconcedenteId = orgaoconcedenteId;
|
this.orgaoconcedenteId = orgaoconcedenteId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getKmate() {
|
public BigDecimal getKmate() {
|
||||||
return kmate;
|
return kmate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setKmate(Integer kmate) {
|
public void setKmate(BigDecimal kmate) {
|
||||||
this.kmate = kmate;
|
this.kmate = kmate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ public class TarifaKm implements Serializable, Comparable<TarifaKm>{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(TarifaKm tkm) {
|
public int compareTo(TarifaKm tkm) {
|
||||||
return this.getKmate() - tkm.getKmate();
|
return this.getKmate().intValue() - tkm.getKmate().intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue