Ver código fonte

后管-清表-关联元素表
1、添加元素根据指定表去添加

LHB 1 semana atrás
pai
commit
bd056add2a

+ 2 - 2
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsFormElementServiceImpl.java

@@ -809,7 +809,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
 
                 //获取表单下的元素信息
                 List<WbsFormElement> wbsFormElements = baseMapper.selectList(Wrappers.<WbsFormElement>query().lambda()
-                        .eq(WbsFormElement::getFId, formElementDTO.getId()));
+                        .eq(WbsFormElement::getFId, wbsTree.getInitTableId()));
 
                 WbsFormElement firstWbsFormElement;
                 List<WbsFormElement> newList;
@@ -838,7 +838,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
                     //新增元素到当前表中
                     wbsFormElementInfo.setEKey(key);
                     wbsFormElementInfo.setId(SnowFlakeUtil.getId());
-                    wbsFormElementInfo.setFId(String.valueOf(formElementDTO.getId()));
+                    wbsFormElementInfo.setFId(String.valueOf(wbsTree.getInitTableId()));
                     wbsFormElementInfo.setStatus(1);
                     wbsFormElementInfo.setELength(Integer.parseInt(WbsElementUtil.setDefaultElementLength(wbsFormElementInfo.getEType())));