feat: comp register optional weight config

This commit is contained in:
2026-01-22 15:13:48 +01:00
parent d2a7e6cbac
commit 4a07eb4ed9
12 changed files with 142 additions and 35 deletions

View File

@@ -38,6 +38,7 @@ public class RegisterModel {
MembreModel membre;
Integer weight;
Integer weightReal;
int overCategory = 0;
Categorie categorie;
@@ -89,4 +90,10 @@ public class RegisterModel {
return null;
return Categorie.values()[Math.min(tmp.ordinal() + this.overCategory, Categorie.values().length - 1)];
}
public Integer getWeight2() {
if (weightReal != null)
return weightReal;
return weight;
}
}