Skip to content

Commit

Permalink
fix: fileIdCard not used in threadNormage
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Nov 25, 2023
1 parent b90fe54 commit af8ea08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,11 @@ private RulesOperations() {
* Requete permettant de récupérer les règles pour un id_source donnée et une
* table de regle
*
* @param idSource : identifiant du fichier
* @param tableRegle : table de regle
* @param tablePilotage : table de pilotage
* @param idSource : identifiant du fichier
* @param tableRegle : table de regle
* @param FileIdCard : carte d'identité du fichier i.e. sa norme, sa validité, sa periodicité
* @return
*/
public static String getRegles(String tableRegle, String tablePilotage) {
StringBuilder requete = new StringBuilder();
requete.append("\n SELECT * FROM " + tableRegle + " a WHERE ");
requete.append(conditionRegle(tablePilotage));
return requete.toString();
}

public static String getRegles(String tableRegle, FileIdCard fileIdCard) {
StringBuilder requete = new StringBuilder();
requete.append("\n SELECT * FROM " + tableRegle + " a WHERE ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ public String getNom() {
return nom;
}

public void setNom(String nom) {
this.nom = nom;
}

public static TypeNormage getEnum(String code) throws ArcException {

List<TypeNormage> filtered = Arrays.asList(TypeNormage.values()).stream().filter(t -> t.getNom().equals(code))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,15 @@ private void jointureBlocXML() throws ArcException {

StringBuilder query = new StringBuilder();
query.append("\n DROP TABLE IF EXISTS " + tableTmpRubriqueDansregles + ";");

query.append("\n CREATE TEMPORARY TABLE " + tableTmpRubriqueDansregles + " AS ");
query.append(RulesOperations.getAllRubriquesInRegles(this.tableNormagePilTemp,
ViewEnum.NORMAGE_REGLE.getFullName(envExecution), ViewEnum.CONTROLE_REGLE.getFullName(envExecution),
ViewEnum.MAPPING_REGLE.getFullName(envExecution)));
UtilitaireDao.get(0).executeImmediate(this.connexion.getExecutorConnection(), query);

rubriqueUtiliseeDansRegles = RulesOperations.getBean(this.connexion.getExecutorConnection(),
RulesOperations.getRegles(tableTmpRubriqueDansregles, this.tableNormagePilTemp));
RulesOperations.getRegles(tableTmpRubriqueDansregles, this.fileIdCard));
}

NormageOperation n = new NormageOperation(this.connexion.getExecutorConnection(), fileIdCard,
Expand Down

0 comments on commit af8ea08

Please sign in to comment.