|
|
|
@@ -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 +""; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|