update commons

This commit is contained in:
Efstratios Giannopoulos 2024-05-03 13:30:47 +03:00
parent 892a41455e
commit e3a9e552a7
2 changed files with 4 additions and 4 deletions

View File

@ -818,8 +818,8 @@ public class WordBuilderImpl implements WordBuilder {
return String.join(", ", values); return String.join(", ", values);
} }
case BOOLEAN_DECISION: case BOOLEAN_DECISION:
if (fieldValueModel.getTextValue() != null && fieldValueModel.getTextValue().equals("true")) return "Yes"; if (fieldValueModel.getBooleanValue() != null && fieldValueModel.getBooleanValue()) return "Yes";
if (fieldValueModel.getTextValue() != null && fieldValueModel.getTextValue().equals("false")) return "No"; if (fieldValueModel.getBooleanValue() != null && !fieldValueModel.getBooleanValue()) return "No";
return null; return null;
case RADIO_BOX: case RADIO_BOX:
RadioBoxDataModel radioBoxDataModel = (RadioBoxDataModel) field.getData(); RadioBoxDataModel radioBoxDataModel = (RadioBoxDataModel) field.getData();
@ -831,7 +831,7 @@ public class WordBuilderImpl implements WordBuilder {
return null; return null;
case CHECK_BOX: case CHECK_BOX:
LabelDataModel checkBoxData = (LabelDataModel) field.getData(); LabelDataModel checkBoxData = (LabelDataModel) field.getData();
if (fieldValueModel.getTextValue() == null || fieldValueModel.getTextValue().equals("false")) return null; if (fieldValueModel.getBooleanValue() == null || !fieldValueModel.getBooleanValue()) return null;
return checkBoxData != null ? checkBoxData.getLabel() : null; return checkBoxData != null ? checkBoxData.getLabel() : null;
case DATE_PICKER: { case DATE_PICKER: {
return fieldValueModel.getDateValue() != null ? DateTimeFormatter.ofPattern("yyyy-MM-dd").withZone(ZoneId.systemDefault()).format(fieldValueModel.getDateValue()) : ""; return fieldValueModel.getDateValue() != null ? DateTimeFormatter.ofPattern("yyyy-MM-dd").withZone(ZoneId.systemDefault()).format(fieldValueModel.getDateValue()) : "";

View File

@ -25,7 +25,7 @@
<dependency> <dependency>
<groupId>org.opencdmp</groupId> <groupId>org.opencdmp</groupId>
<artifactId>file-transformer-base</artifactId> <artifactId>file-transformer-base</artifactId>
<version>0.0.16</version> <version>0.0.18</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.yaml</groupId> <groupId>org.yaml</groupId>