|
|
|
@@ -125,10 +125,26 @@ public class WxRentContract extends TenantEntity { |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "押金", name = "deposit") |
|
|
|
private String deposit; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "押金详细", name = "cashtypeContentLsit") |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "押金金额详细", name = "cashtypeContentLsit") |
|
|
|
private String cashtypeContentLsit; |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "押金详细", name = "cashtypeLsit") |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "押金科目详细(弃用)", name = "cashtypeLsit") |
|
|
|
private String cashtypeLsit; |
|
|
|
public void calcuteDepositTotal() { |
|
|
|
if (StringUtils.isNotBlank(cashtypeContentLsit)) { |
|
|
|
JSONArray rentInfoArray = JSONArray.parseArray(cashtypeContentLsit); |
|
|
|
int size = rentInfoArray.size(); |
|
|
|
BigDecimal dt = new BigDecimal(0); |
|
|
|
for (int i = 0; i < size; i++) { |
|
|
|
JSONObject rentInfoObject = rentInfoArray.getJSONObject(i); |
|
|
|
String deposit = rentInfoObject.getString("deposit"); |
|
|
|
if (StringUtils.isNotBlank(deposit)) { |
|
|
|
dt = dt.add(new BigDecimal(deposit)); |
|
|
|
} |
|
|
|
} |
|
|
|
this.deposit = dt.toPlainString(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "是否删除1是0否", name = "isDel") |
|
|
|
private Integer isDel; |
|
|
|
|