Browse Source

[租赁单价][修改]:默认为0

release_toaliyun_real
Stormeye Wu 7 years ago
parent
commit
7ea793ce2d
1 changed files with 21 additions and 19 deletions
  1. +21
    -19
      mallinkService/src/main/java/com/iformall/domain/po/WxRentContract.java

+ 21
- 19
mallinkService/src/main/java/com/iformall/domain/po/WxRentContract.java View File

@@ -217,6 +217,27 @@ public class WxRentContract extends BaseEntity {
@io.swagger.annotations.ApiModelProperty(value = "主体名称", name = "subjectName")
private String subjectName;

// public Integer getAdjustPeriod() {
// if(EnumPriceUnit.D.getCode().equals(this.getPriceUnit()) && EnumRentContractAdjustPeriod.ADJUST_PERIOD_MONTH.getCode().equals(adjustPeriod)){
// return EnumRentContractAdjustPeriod.ADJUST_PERIOD_DAY.getCode();
// }
// return adjustPeriod;
// }

public void setAdjustPeriodHandle() {
if(EnumPriceUnit.D.getCode().equals(this.getPriceUnit()) && EnumRentContractAdjustPeriod.ADJUST_PERIOD_MONTH.getCode().equals(adjustPeriod)){
this.adjustPeriod = EnumRentContractAdjustPeriod.ADJUST_PERIOD_DAY.getCode();
}
}

public void setRentPriceHandle() {
if(StringUtils.isNotBlank(rentPrice)) {
rentPrice = Double.parseDouble(rentPrice) * 100 +"";
} else {
rentPrice = "0";
}
}

public static enum Field {
Id_ASC("`id` ASC"), Id_DESC("`id` DESC")
, MerchantId_ASC("`merchant_id` ASC"), MerchantId_DESC("`merchant_id` DESC")
@@ -292,24 +313,5 @@ public class WxRentContract extends BaseEntity {
}
}

// public Integer getAdjustPeriod() {
// if(EnumPriceUnit.D.getCode().equals(this.getPriceUnit()) && EnumRentContractAdjustPeriod.ADJUST_PERIOD_MONTH.getCode().equals(adjustPeriod)){
// return EnumRentContractAdjustPeriod.ADJUST_PERIOD_DAY.getCode();
// }
// return adjustPeriod;
// }

public void setAdjustPeriodHandle() {
if(EnumPriceUnit.D.getCode().equals(this.getPriceUnit()) && EnumRentContractAdjustPeriod.ADJUST_PERIOD_MONTH.getCode().equals(adjustPeriod)){
this.adjustPeriod = EnumRentContractAdjustPeriod.ADJUST_PERIOD_DAY.getCode();
}
}

public void setRentPriceHandle() {
if(StringUtils.isNotBlank(rentPrice)) {
rentPrice = Double.parseDouble(rentPrice) * 100 +"";
}
}

}


Loading…
Cancel
Save