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-87c2c4800839
master
daniel.zauli 2015-07-03 16:39:49 +00:00
parent d6fcc018cc
commit 841f4413c8
1 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ public class TarifaKm implements Serializable, Comparable<TarifaKm>{
private OrgaoConcedente orgaoconcedenteId;
@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
@Column(name = "VALORTAXA") // tarifa
@ -101,11 +101,11 @@ public class TarifaKm implements Serializable, Comparable<TarifaKm>{
this.orgaoconcedenteId = orgaoconcedenteId;
}
public Integer getKmate() {
public BigDecimal getKmate() {
return kmate;
}
public void setKmate(Integer kmate) {
public void setKmate(BigDecimal kmate) {
this.kmate = kmate;
}
@ -151,7 +151,7 @@ public class TarifaKm implements Serializable, Comparable<TarifaKm>{
@Override
public int compareTo(TarifaKm tkm) {
return this.getKmate() - tkm.getKmate();
return this.getKmate().intValue() - tkm.getKmate().intValue();
}
}