Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Iste 255 water index #857

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public List<WaterConnection> extractData(ResultSet rs) throws SQLException, Data
currentWaterConnection.setApplicationType(rs.getString("applicationType"));
currentWaterConnection.setDateEffectiveFrom(rs.getLong("dateEffectiveFrom"));
this.setFull_count(rs.getInt("full_count"));

currentWaterConnection.setLastDemandGenaratedDate(rs.getLong("taxperiodto"));
AuditDetails auditdetails = AuditDetails.builder().createdBy(rs.getString("ws_createdBy"))
.createdTime(rs.getLong("ws_createdTime")).lastModifiedBy(rs.getString("ws_lastModifiedBy"))
.lastModifiedTime(rs.getLong("ws_lastModifiedTime")).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public List<WaterConnection> extractData(ResultSet rs) throws SQLException, Data
additionalDetails.put("lastDemandGeneratedDate", rs.getString("taxperiodto"));

currentWaterConnection.setAdditionalDetails(additionalDetails);
currentWaterConnection.setLastDemandGenaratedDate(rs.getLong("taxperiodto"));
currentWaterConnection
.processInstance(ProcessInstance.builder().action((rs.getString("action"))).build());
currentWaterConnection.setPropertyId(rs.getString("property_id"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.egov.waterconnection.web.models;

import java.util.Date;
import java.util.Objects;

import javax.validation.constraints.Size;
Expand Down Expand Up @@ -46,6 +47,18 @@ public class WaterConnection extends Connection {
@JsonProperty("paymentType")
private String paymentType = null;

public Long getLastDemandGenaratedDate() {
return lastDemandGenaratedDate;
}

public void setLastDemandGenaratedDate(Long lastDemandGenaratedDate) {
this.lastDemandGenaratedDate = lastDemandGenaratedDate;
}

@JsonProperty("lastDemandGeneratedDate")
private Long lastDemandGenaratedDate = null;


public WaterConnection waterSource(String waterSource) {
this.waterSource = waterSource;
return this;
Expand Down