develop #124
@@ -167,11 +167,11 @@ public class CaracteristiqueBatimentController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/by-enquete-batiment-id/{batimentId}")
|
@GetMapping("/by-enquete-batiment-id/{enqueteBatimentId}")
|
||||||
public ResponseEntity<?> getCaracteristiqueBatimentByBatimentId(@PathVariable Long enquteBatimentId) {
|
public ResponseEntity<?> getCaracteristiqueBatimentByBatimentId(@PathVariable Long enqueteBatimentId) {
|
||||||
try {
|
try {
|
||||||
return new ResponseEntity<>(
|
return new ResponseEntity<>(
|
||||||
new ApiResponse<>(true, caracteristiqueBatimentService.getCaracteristiqueBatimentListByEnqueteBatiment(enquteBatimentId), "Caracteristique du batiment trouvée avec succès."),
|
new ApiResponse<>(true, caracteristiqueBatimentService.getCaracteristiqueBatimentListByEnqueteBatiment(enqueteBatimentId), "Caracteristique du batiment trouvée avec succès."),
|
||||||
HttpStatus.OK
|
HttpStatus.OK
|
||||||
);
|
);
|
||||||
} catch (HttpClientErrorException.MethodNotAllowed e) {
|
} catch (HttpClientErrorException.MethodNotAllowed e) {
|
||||||
@@ -190,12 +190,12 @@ public class CaracteristiqueBatimentController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/page/by-enquete-batiment-id/{batimentId}")
|
@GetMapping("/page/by-enquete-batiment-id/{enqueteBatimentId}")
|
||||||
public ResponseEntity<?> getCaracteristiqueBatimentByEnqueteBatimentIdPaged(@PathVariable Long enquteBatimentId,@RequestParam int pageNo, @RequestParam int pageSize) {
|
public ResponseEntity<?> getCaracteristiqueBatimentByEnqueteBatimentIdPaged(@PathVariable Long enqueteBatimentId,@RequestParam int pageNo, @RequestParam int pageSize) {
|
||||||
try {
|
try {
|
||||||
Pageable pageable = PageRequest.of(pageNo, pageSize);
|
Pageable pageable = PageRequest.of(pageNo, pageSize);
|
||||||
return new ResponseEntity<>(
|
return new ResponseEntity<>(
|
||||||
new ApiResponse<>(true, caracteristiqueBatimentService.getCaracteristiqueBatimentListByEnqueteBatimentPageable(enquteBatimentId,pageable), "Caracteristique du batiment trouvée avec succès."),
|
new ApiResponse<>(true, caracteristiqueBatimentService.getCaracteristiqueBatimentListByEnqueteBatimentPageable(enqueteBatimentId,pageable), "Caracteristique du batiment trouvée avec succès."),
|
||||||
HttpStatus.OK
|
HttpStatus.OK
|
||||||
);
|
);
|
||||||
} catch (HttpClientErrorException.MethodNotAllowed e) {
|
} catch (HttpClientErrorException.MethodNotAllowed e) {
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ public class CaracteristiqueUniteLogementController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/page//by-enquete-ulo-id/{enqueteUloId}")
|
@GetMapping("/page/by-enquete-ulo-id/{enqueteUloId}")
|
||||||
public ResponseEntity<?> getAllCaracteristiqueUniteLogementByEulPaged(@PathVariable Long enqueteUloId,@RequestParam int pageNo, @RequestParam int pageSize) {
|
public ResponseEntity<?> getAllCaracteristiqueUniteLogementByEulPaged(@PathVariable Long enqueteUloId,@RequestParam int pageNo, @RequestParam int pageSize) {
|
||||||
try {
|
try {
|
||||||
Pageable pageable = PageRequest.of(pageNo, pageSize);
|
Pageable pageable = PageRequest.of(pageNo, pageSize);
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ public class Parcelle extends BaseEntity implements Serializable {
|
|||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Rue rue ;
|
private Rue rue ;
|
||||||
private String numeroRue ;
|
private String numeroRue ;
|
||||||
|
private Boolean batie;
|
||||||
// private String ncProprietaire ;
|
// private String ncProprietaire ;
|
||||||
// @JsonIgnore
|
// @JsonIgnore
|
||||||
// @OneToMany(mappedBy = "parcelle")
|
// @OneToMany(mappedBy = "parcelle")
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ public class BatimentPaylaodWeb {
|
|||||||
private String personneNom;
|
private String personneNom;
|
||||||
private String personnePrenom;
|
private String personnePrenom;
|
||||||
private String personneRaisonSociale;
|
private String personneRaisonSociale;
|
||||||
private Float superficieSol;
|
private Float superficieAuSol;
|
||||||
private Float superficieLouee;
|
private Float superficieLouee;
|
||||||
private Long enqueteBatiementCourantId;
|
private Long enqueteBatiementCourantId;
|
||||||
|
|
||||||
public BatimentPaylaodWeb(Long id, String nub, String code, LocalDate dateConstruction, Long parcelleId, String parcelleNup, String parcelleQ, String parcelleI, String parcelleP, Long personneId, String personneNom, String personnePrenom, String personneRaisonSociale, Float superficieSol, Float superficieLouee,Long enqueteBatiementCourantId) {
|
public BatimentPaylaodWeb(Long id, String nub, String code, LocalDate dateConstruction, Long parcelleId, String parcelleNup, String parcelleQ, String parcelleI, String parcelleP, Long personneId, String personneNom, String personnePrenom, String personneRaisonSociale, Float superficieAuSol, Float superficieLouee,Long enqueteBatiementCourantId) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.nub = nub;
|
this.nub = nub;
|
||||||
this.code = code;
|
this.code = code;
|
||||||
@@ -38,7 +38,7 @@ public class BatimentPaylaodWeb {
|
|||||||
this.personneNom = personneNom;
|
this.personneNom = personneNom;
|
||||||
this.personnePrenom = personnePrenom;
|
this.personnePrenom = personnePrenom;
|
||||||
this.personneRaisonSociale = personneRaisonSociale;
|
this.personneRaisonSociale = personneRaisonSociale;
|
||||||
this.superficieSol = superficieSol ;
|
this.superficieAuSol = superficieAuSol ;
|
||||||
this.superficieLouee = superficieLouee ;
|
this.superficieLouee = superficieLouee ;
|
||||||
this.enqueteBatiementCourantId = enqueteBatiementCourantId ;
|
this.enqueteBatiementCourantId = enqueteBatiementCourantId ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class UniteLogementPaylaodWeb {
|
|||||||
private String numeroEtage;
|
private String numeroEtage;
|
||||||
private String code;
|
private String code;
|
||||||
private Long batimentId;
|
private Long batimentId;
|
||||||
private Float superficieSol;
|
private Float superficieAuSol;
|
||||||
private Float superficieLouee;
|
private Float superficieLouee;
|
||||||
private String batimentNub;
|
private String batimentNub;
|
||||||
private String observation;
|
private String observation;
|
||||||
@@ -23,13 +23,13 @@ public class UniteLogementPaylaodWeb {
|
|||||||
private String personneRaisonSociale;
|
private String personneRaisonSociale;
|
||||||
private Long enqueteUniteLogementCourantId;
|
private Long enqueteUniteLogementCourantId;
|
||||||
|
|
||||||
public UniteLogementPaylaodWeb(Long id, String nul, String numeroEtage, String code, Long batimentId, Float superficieSol, Float superficieLouee, String batimentNub, String observation, LocalDate dateConstruction, Long personneId, String personneNom, String personnePrenom, String personneRaisonSociale,Long enqueteUniteLogementCourantId) {
|
public UniteLogementPaylaodWeb(Long id, String nul, String numeroEtage, String code, Long batimentId, Float superficieAuSol, Float superficieLouee, String batimentNub, String observation, LocalDate dateConstruction, Long personneId, String personneNom, String personnePrenom, String personneRaisonSociale,Long enqueteUniteLogementCourantId) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.nul = nul;
|
this.nul = nul;
|
||||||
this.numeroEtage = numeroEtage;
|
this.numeroEtage = numeroEtage;
|
||||||
this.code = code;
|
this.code = code;
|
||||||
this.batimentId = batimentId;
|
this.batimentId = batimentId;
|
||||||
this.superficieSol = superficieSol;
|
this.superficieAuSol = superficieAuSol;
|
||||||
this.superficieLouee = superficieLouee;
|
this.superficieLouee = superficieLouee;
|
||||||
this.batimentNub = batimentNub;
|
this.batimentNub = batimentNub;
|
||||||
this.observation = observation;
|
this.observation = observation;
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ public class EntityFromPayLoadService {
|
|||||||
batiment.setId(batimentPaylaodWeb.getId());
|
batiment.setId(batimentPaylaodWeb.getId());
|
||||||
batiment.setCode(batimentPaylaodWeb.getCode());
|
batiment.setCode(batimentPaylaodWeb.getCode());
|
||||||
batiment.setNub(batimentPaylaodWeb.getNub());
|
batiment.setNub(batimentPaylaodWeb.getNub());
|
||||||
batiment.setSuperficieAuSol(batimentPaylaodWeb.getSuperficieSol());
|
batiment.setSuperficieAuSol(batimentPaylaodWeb.getSuperficieAuSol());
|
||||||
batiment.setSuperficieLouee(batimentPaylaodWeb.getSuperficieLouee());
|
batiment.setSuperficieLouee(batimentPaylaodWeb.getSuperficieLouee());
|
||||||
batiment.setDateConstruction(batimentPaylaodWeb.getDateConstruction());
|
batiment.setDateConstruction(batimentPaylaodWeb.getDateConstruction());
|
||||||
|
|
||||||
@@ -372,7 +372,7 @@ public class EntityFromPayLoadService {
|
|||||||
uniteLogement.setId(uniteLogementPaylaodWeb.getId());
|
uniteLogement.setId(uniteLogementPaylaodWeb.getId());
|
||||||
uniteLogement.setCode(uniteLogementPaylaodWeb.getCode());
|
uniteLogement.setCode(uniteLogementPaylaodWeb.getCode());
|
||||||
uniteLogement.setNul(uniteLogementPaylaodWeb.getNul());
|
uniteLogement.setNul(uniteLogementPaylaodWeb.getNul());
|
||||||
uniteLogement.setSuperficieAuSol(uniteLogementPaylaodWeb.getSuperficieSol());
|
uniteLogement.setSuperficieAuSol(uniteLogementPaylaodWeb.getSuperficieAuSol());
|
||||||
uniteLogement.setSuperficieLouee(uniteLogementPaylaodWeb.getSuperficieLouee());
|
uniteLogement.setSuperficieLouee(uniteLogementPaylaodWeb.getSuperficieLouee());
|
||||||
uniteLogement.setDateConstruction(uniteLogementPaylaodWeb.getDateConstruction());
|
uniteLogement.setDateConstruction(uniteLogementPaylaodWeb.getDateConstruction());
|
||||||
uniteLogement.setNumeroEtage(uniteLogementPaylaodWeb.getNumeroEtage());
|
uniteLogement.setNumeroEtage(uniteLogementPaylaodWeb.getNumeroEtage());
|
||||||
|
|||||||
Reference in New Issue
Block a user