|
|
@ -44,6 +44,7 @@ import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables; |
|
|
|
import com.yxt.anrui.flowable.sqloperationsymbol.SQLOperationSymbol; |
|
|
|
import com.yxt.anrui.portal.api.appsubsetversion.AppSubsetVersionVo; |
|
|
|
import com.yxt.anrui.portal.api.flow.*; |
|
|
|
import com.yxt.anrui.portal.api.flow.app.AppDoVo; |
|
|
|
import com.yxt.anrui.portal.api.flow.app.AppVo; |
|
|
|
import com.yxt.anrui.portal.api.flow.app.FlowTaskDoQuery; |
|
|
|
import com.yxt.anrui.portal.api.flow.app.FlowTaskDoVo; |
|
|
@ -511,14 +512,14 @@ public class FlowableService extends MybatisBaseService<FlowableMapper, Flowable |
|
|
|
Map<String, Object> appMap = ConstantUtils.getMap(flowMap, "app"); |
|
|
|
String json = JSONObject.toJSONString(appMap); |
|
|
|
System.out.println(json); |
|
|
|
AppVo appVo = new AppVo(); |
|
|
|
appVo.setJson(json); |
|
|
|
AppDoVo appDoVo = new AppDoVo(); |
|
|
|
appDoVo.setJson(json); |
|
|
|
//app版本的sid
|
|
|
|
String appSid = ""; |
|
|
|
//app版本的类型
|
|
|
|
String type = ""; |
|
|
|
if (f.getSysProUrlVo() != null) { |
|
|
|
appVo.setModuleAction(f.getSysProUrlVo().getUrl()); |
|
|
|
appDoVo.setModuleAction(f.getSysProUrlVo().getUrl()); |
|
|
|
appSid = f.getSysProUrlVo().getModulePluginName(); |
|
|
|
} |
|
|
|
//根据appSid查询最新版本的app插件包:以及类型:2插件,1框架
|
|
|
@ -540,7 +541,7 @@ public class FlowableService extends MybatisBaseService<FlowableMapper, Flowable |
|
|
|
integers.add(i); |
|
|
|
appVer.put(appSid2, integers); |
|
|
|
} |
|
|
|
voList.get(i).setAppVariables(appVo); |
|
|
|
voList.get(i).setAppDoVo(appDoVo); |
|
|
|
} |
|
|
|
// 循环取map:若为同一个app版本,则只查询一次
|
|
|
|
for (String key : appVer.keySet()) { |
|
|
@ -553,7 +554,7 @@ public class FlowableService extends MybatisBaseService<FlowableMapper, Flowable |
|
|
|
appVo.setType("2"); |
|
|
|
appVo.setModulePluginName(appSubsetVersions.getModulePluginName()); |
|
|
|
for (int i = 0; i < integers.size(); i++) { |
|
|
|
BeanUtil.copyProperties(voList.get(i).getAppVariables(), appVo); |
|
|
|
BeanUtil.copyProperties(voList.get(i).getAppDoVo(), appVo); |
|
|
|
voList.get(i).setAppVariables(appVo); |
|
|
|
} |
|
|
|
} |
|
|
|