|
@@ -247,6 +247,20 @@ public class ActivitiProcessController {
|
|
|
if(element instanceof StartEvent){
|
|
|
|
|
|
node.setType(0);
|
|
|
+
|
|
|
+
|
|
|
+ ActZprocess actZprocess=actZprocessService.getById(id);
|
|
|
+ if(actZprocess!=null){
|
|
|
+
|
|
|
+ QueryWrapper<TbTableInfo> queryWrapper=new QueryWrapper<>();
|
|
|
+ queryWrapper.lambda().eq(TbTableInfo::getDelFlag,"0");
|
|
|
+ queryWrapper.lambda().eq(TbTableInfo::getBusinessTable,actZprocess.getBusinessTable());
|
|
|
+ queryWrapper.lambda().eq(TbTableInfo::getIsInitial,"1");
|
|
|
+ TbTableInfo tbTableInfo= tbTableInfoService.getOne(queryWrapper);
|
|
|
+ if(tbTableInfo!=null){
|
|
|
+ node.setTbTableInfoId(tbTableInfo.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
}else if(element instanceof UserTask){
|
|
|
|
|
|
node.setType(1);
|