update commons
This commit is contained in:
parent
892a41455e
commit
e3a9e552a7
|
@ -818,8 +818,8 @@ public class WordBuilderImpl implements WordBuilder {
|
|||
return String.join(", ", values);
|
||||
}
|
||||
case BOOLEAN_DECISION:
|
||||
if (fieldValueModel.getTextValue() != null && fieldValueModel.getTextValue().equals("true")) return "Yes";
|
||||
if (fieldValueModel.getTextValue() != null && fieldValueModel.getTextValue().equals("false")) return "No";
|
||||
if (fieldValueModel.getBooleanValue() != null && fieldValueModel.getBooleanValue()) return "Yes";
|
||||
if (fieldValueModel.getBooleanValue() != null && !fieldValueModel.getBooleanValue()) return "No";
|
||||
return null;
|
||||
case RADIO_BOX:
|
||||
RadioBoxDataModel radioBoxDataModel = (RadioBoxDataModel) field.getData();
|
||||
|
@ -831,7 +831,7 @@ public class WordBuilderImpl implements WordBuilder {
|
|||
return null;
|
||||
case CHECK_BOX:
|
||||
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;
|
||||
case DATE_PICKER: {
|
||||
return fieldValueModel.getDateValue() != null ? DateTimeFormatter.ofPattern("yyyy-MM-dd").withZone(ZoneId.systemDefault()).format(fieldValueModel.getDateValue()) : "";
|
||||
|
|
Loading…
Reference in New Issue