|
|
@@ -103,7 +103,7 @@ public class ModelFormHelper { |
|
|
|
} |
|
|
|
|
|
|
|
//必填字段 |
|
|
|
if (pdf.isNotNull() == MapUtil.readBool(field, "required")) { |
|
|
|
if (pdf.isFieldNotNull() == MapUtil.readBool(field, "required")) { |
|
|
|
field.remove("required"); |
|
|
|
} |
|
|
|
|
|
|
@@ -202,7 +202,7 @@ public class ModelFormHelper { |
|
|
|
} |
|
|
|
//必填字段 |
|
|
|
if (!field.containsKey("required")) { |
|
|
|
field.put("required", pdf.isNotNull()); |
|
|
|
field.put("required", pdf.isFieldNotNull()); |
|
|
|
} |
|
|
|
|
|
|
|
if (!field.containsKey("maxlength")) { |
|
|
|