| | |
| | | |
| | | } |
| | | //递归把主表和子表的字段属性添加进去,如果没有配表单,则取表数据结构进行展示 |
| | | |
| | | /** |
| | | * |
| | | * @param ls查出来的表单信息 |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 数据库表字段定义转换成表单定义 |
| | | * @param table_uuid |
| | |
| | | for (FieldSetEntity setEntity : parentGroup) { |
| | | //找到属性名称= __vModel__ |
| | | String propertyName = setEntity.getString("property_name"); |
| | | if ("componentType".equals(propertyName)) { |
| | | continue; |
| | | } |
| | | if ("parentType".equals(propertyName) && "subTable".equals(setEntity.getString("property_value")) && subTableField != null) { |
| | | //子表字段 |
| | | subTableField.add(parentGroup); |
| | |
| | | } |
| | | propertyName = StrUtil.toCamelCase(propertyName); |
| | | if (ReflectUtil.hasField(FaceFieldEntity.class, propertyName) && !"field".equals(setEntity.getString("property_name")) && !"prompt".equals(setEntity.getString("property_name"))) { |
| | | if("prompt".equals(propertyName)){ |
| | | System.out.println(1); |
| | | } |
| | | ReflectUtil.setFieldValue(faceFieldEntity, propertyName, setEntity.getObject("property_value")); |
| | | |
| | | } else if (!StringUtils.isEmpty(setEntity.getObject("property_value"))) { |
| | |
| | | for (FieldSetEntity setEntity : configGroup) { |
| | | //找到属性名称= __vModel__ |
| | | String propertyName = setEntity.getString("property_name"); |
| | | if ("componentType".equals(propertyName)) { |
| | | continue; |
| | | } |
| | | if ("tag".equals(propertyName)) { |
| | | propertyName = "component_type"; |
| | | } else if ("field".equals(propertyName)) { |