Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Van Location Details changes #36

Merged
merged 13 commits into from
Mar 19, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,15 @@ public interface V_getVanLocDetailsRepo extends CrudRepository<V_getVanLocDetail
@Query(" SELECT distinct t.stateID, t.parkingPlaceID, t.districtID, t.districtName "
+ " FROM V_getVanLocDetails t WHERE t.vanID = :vanID ")
ArrayList<Object[]> getVanDetails(@Param("vanID") Integer vanID);

@Query(value="SELECT distinct dis.stateID, van.parkingPlaceID, dis.districtID, dis.districtName FROM db_iemr.m_van van "
+ "left join db_iemr.m_parkingplacesubdistrictmap prkdis on van.ParkingPlaceID = prkdis.ParkingPlaceID "
+ "left join db_iemr.m_district dis on prkdis.DistrictID = dis.DistrictID "
+ "left join db_iemr.m_districtblock db on db.DistrictID = dis.DistrictID "
+ "left join db_iemr.m_userservicerolemapping usrm on usrm.Blockid = db.BlockID "
+ "where van.Deleted is false and db.Deleted is false "
+ "and prkdis.Deleted is false and dis.Deleted is false "
+ "and van.vanid = :vanID ",nativeQuery=true)
ArrayList<Object[]> getVanLocDetails(@Param("vanID") Integer vanID);

}
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public String getVillageMasterFromBlockID(Integer distBlockID) {
// new, 11-10-2018
public String getLocDetailsNew(Integer vanID, Integer spPSMID) {
Map<String, Object> resMap = new HashMap<String, Object>();
ArrayList<Object[]> resultSet = v_getVanLocDetailsRepo.getVanDetails(vanID);
ArrayList<Object[]> resultSet = v_getVanLocDetailsRepo.getVanLocDetails(vanID);

// state master
ArrayList<States> stateList = new ArrayList<>();
Expand Down
Loading