update commons
This commit is contained in:
parent
892a41455e
commit
e3a9e552a7
|
@ -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()) : "";
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue