|
|
@ -174,7 +174,7 @@ public class FormDataController { |
|
|
* 必输项检查 |
|
|
* 必输项检查 |
|
|
*/ |
|
|
*/ |
|
|
Map<String,Object> formDataMap=BaseUtils.toMap(formData); |
|
|
Map<String,Object> formDataMap=BaseUtils.toMap(formData); |
|
|
for (FormField field : formFields) { |
|
|
|
|
|
|
|
|
for (FormField field : formFields.stream().filter(k-> !"row".equals(k.getExtType())&&!"card".equals(k.getExtType()) && !"tabs".equals(k.getExtType())).collect(Collectors.toList())) { |
|
|
Object pkValue= formDataMap.get(field.getIdCamel()); |
|
|
Object pkValue= formDataMap.get(field.getIdCamel()); |
|
|
if("1".equals(field.getReq()) && ObjectTools.isEmpty(pkValue)){ |
|
|
if("1".equals(field.getReq()) && ObjectTools.isEmpty(pkValue)){ |
|
|
return Result.error("field-required","%s不能为空",field.getTitle()); |
|
|
return Result.error("field-required","%s不能为空",field.getTitle()); |
|
|
|