Program: 58704
Project: 58704
Buggy source:
public String buildQuery(MoveLineReport moveLineReport) throws AxelorException {
  if (moveLineReport.getCompany() != null) {
    this.addParams("String_Node_Str",moveLineReport.getCompany());
  }
  if (moveLineReport.getCashRegister() != null) {
    this.addParams("String_Node_Str",moveLineReport.getCashRegister());
  }
  if (moveLineReport.getDateFrom() != null) {
    this.addParams("String_Node_Str",moveLineReport.getDateFrom());
  }
  if (moveLineReport.getDateTo() != null) {
    this.addParams("String_Node_Str",moveLineReport.getDateTo());
  }
  if (moveLineReport.getDate() != null) {
    this.addParams("String_Node_Str",moveLineReport.getDate());
  }
  if (moveLineReport.getJournal() != null) {
    this.addParams("String_Node_Str",moveLineReport.getJournal());
  }
  if (moveLineReport.getPeriod() != null) {
    this.addParams("String_Node_Str",moveLineReport.getPeriod());
  }
  if (moveLineReport.getAccountSet() != null && !moveLineReport.getAccountSet().isEmpty()) {
    this.addParams("String_Node_Str",moveLineReport.getAccountSet());
  }
  if (moveLineReport.getPartnerSet() != null && !moveLineReport.getPartnerSet().isEmpty()) {
    this.addParams("String_Node_Str",moveLineReport.getPartnerSet());
  }
  if (moveLineReport.getYear() != null) {
    this.addParams("String_Node_Str",moveLineReport.getYear());
  }
  if (moveLineReport.getPaymentMode() != null) {
    this.addParams("String_Node_Str",moveLineReport.getPaymentMode());
  }
  if (moveLineReport.getTypeSelect() > 5 && moveLineReport.getTypeSelect() < 10) {
    this.addParams("String_Node_Str",this.getJournalType(moveLineReport));
  }
  if (moveLineReport.getTypeSelect() > 5 && moveLineReport.getTypeSelect() < 10) {
    this.addParams("String_Node_Str",moveLineReport);
  }
  if (moveLineReport.getTypeSelect() > 5 && moveLineReport.getTypeSelect() < 10) {
    this.addParams("String_Node_Str");
  }
  if (moveLineReport.getTypeSelect() == 5) {
    this.addParams("String_Node_Str");
  }
  if (moveLineReport.getTypeSelect() == 10) {
    this.addParams("String_Node_Str");
  }
  if (moveLineReport.getTypeSelect() <= 5 || moveLineReport.getTypeSelect() == 10) {
    this.addParams("String_Node_Str");
  }
  if (moveLineReport.getTypeSelect() == 1) {
    this.addParams("String_Node_Str");
  }
  if (moveLineReport.getTypeSelect() == 4) {
    this.addParams("String_Node_Str");
  }
  this.addParams("String_Node_Str");
  log.debug("String_Node_Str",this.query);
  return this.query;
}

Fixed version (ground truth):
public String buildQuery(MoveLineReport moveLineReport) throws AxelorException {
  if (moveLineReport.getCompany() != null) {
    this.addParams("String_Node_Str",moveLineReport.getCompany());
  }
  if (moveLineReport.getCashRegister() != null) {
    this.addParams("String_Node_Str",moveLineReport.getCashRegister());
  }
  if (moveLineReport.getDateFrom() != null) {
    this.addParams("String_Node_Str",moveLineReport.getDateFrom());
  }
  if (moveLineReport.getDateTo() != null) {
    this.addParams("String_Node_Str",moveLineReport.getDateTo());
  }
  if (moveLineReport.getDate() != null) {
    this.addParams("String_Node_Str",moveLineReport.getDate());
  }
  if (moveLineReport.getJournal() != null) {
    this.addParams("String_Node_Str",moveLineReport.getJournal());
  }
  if (moveLineReport.getPeriod() != null) {
    this.addParams("String_Node_Str",moveLineReport.getPeriod());
  }
  if (moveLineReport.getAccountSet() != null && !moveLineReport.getAccountSet().isEmpty()) {
    this.addParams("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str",moveLineReport.getAccountSet());
  }
  if (moveLineReport.getPartnerSet() != null && !moveLineReport.getPartnerSet().isEmpty()) {
    this.addParams("String_Node_Str",moveLineReport.getPartnerSet());
  }
  if (moveLineReport.getYear() != null) {
    this.addParams("String_Node_Str",moveLineReport.getYear());
  }
  if (moveLineReport.getPaymentMode() != null) {
    this.addParams("String_Node_Str",moveLineReport.getPaymentMode());
  }
  if (moveLineReport.getTypeSelect() == 5) {
    this.addParams("String_Node_Str");
  }
  if (moveLineReport.getTypeSelect() == 4) {
    this.addParams("String_Node_Str");
  }
  this.addParams("String_Node_Str");
  if (moveLineReport.getTypeSelect() > MoveLineReportRepository.EXPORT_SALES) {
    this.addParams("String_Node_Str",moveLineReport);
  }
  if (moveLineReport.getTypeSelect() >= MoveLineReportRepository.EXPORT_SALES) {
    this.addParams("String_Node_Str");
  }
  if (moveLineReport.getTypeSelect() > MoveLineReportRepository.EXPORT_SALES) {
    this.addParams("String_Node_Str",this.getJournalType(moveLineReport));
  }
  log.debug("String_Node_Str",this.query);
  return this.query;
}