1 Commits

Author SHA1 Message Date
b3c1e10da6 reajustement workflow 2026-08-05 20:45:44 +01:00

View File

@@ -51,6 +51,7 @@ public class ImpositionsTfu extends BaseEntity implements Serializable {
private String datePieceAdmin;
@Enumerated(EnumType.STRING)
private StatusAvis statusAvis;
@Formula("""
(
@@ -59,6 +60,7 @@ public class ImpositionsTfu extends BaseEntity implements Serializable {
WHERE d.impositions_tfu_id = id
)
""")
@Transient
private Integer nombreAvis;
@Formula("""
(
@@ -68,6 +70,7 @@ public class ImpositionsTfu extends BaseEntity implements Serializable {
and (d.nature_impot='FNB' or d.nature_impot='FB')
)
""")
@Transient
private Integer nombreAvisFnb;
@Formula("""
(
@@ -78,7 +81,9 @@ public class ImpositionsTfu extends BaseEntity implements Serializable {
and d.batiment_id is not null
)
""")
@Transient
private Integer nombreAvisBatiment;
@Formula("""
(
SELECT COUNT(DISTINCT (d.annee, d.code_commune, d.personne_id))
@@ -88,6 +93,7 @@ public class ImpositionsTfu extends BaseEntity implements Serializable {
and d.unite_logement_id is not null
)
""")
@Transient
private Integer nombreAvisUniteLog;
@Column(columnDefinition = "TEXT")