|
|
@ -37,7 +37,6 @@ import com.yxt.anrui.flowable.api.flowtask.LatestTaskVo; |
|
|
|
import com.yxt.anrui.flowable.api.sysformlink.SysFormLinkFeign; |
|
|
|
import com.yxt.anrui.flowable.api.sysformlink.SysFormLinkFlowStateEnum; |
|
|
|
import com.yxt.anrui.flowable.api.sysprourl.SysProUrlFeign; |
|
|
|
import com.yxt.anrui.flowable.api.sysprourl.SysProUrlVo; |
|
|
|
import com.yxt.anrui.flowable.api.utils.ProcessStateEnum; |
|
|
|
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessTaskParam; |
|
|
|
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessTaskQuery; |
|
|
@ -493,12 +492,15 @@ public class FlowableService extends MybatisBaseService<FlowableMapper, Flowable |
|
|
|
} |
|
|
|
taskQuery.setFields(taskParamList); |
|
|
|
taskQueryPagerQuery.setParams(taskQuery); |
|
|
|
ResultBean<Page<FlowTaskDto>> resultBean = flowTaskFeign.businessTodoList(userSid, taskQueryPagerQuery); |
|
|
|
// ResultBean<Page<FlowTaskDto>> resultBean = flowTaskFeign.businessTodoList(userSid, taskQueryPagerQuery);
|
|
|
|
ResultBean<Page<FlowTaskDto>> resultBean = flowTaskFeign.businessTodoListForApp(userSid, taskQueryPagerQuery); |
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
return rb.setMsg("流程错误"); |
|
|
|
} |
|
|
|
PagerVo<FlowTaskDoVo> page = new PagerVo<>(); |
|
|
|
List<FlowTaskDoVo> voList = Optional.ofNullable(resultBean.getData().getRecords()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), FlowTaskDoVo.class)).collect(Collectors.toList()); |
|
|
|
voList.removeAll(Collections.singleton(null)); |
|
|
|
Map<String, List<Integer>> appVer = new HashMap<>(); |
|
|
|
Map<String, List<Integer>> jsonMap = new HashMap<>(); |
|
|
|
for (int i = 0; i < voList.size(); i++) { |
|
|
|
FlowTaskDoVo f = voList.get(i); |
|
|
|
Map<String, Object> flowMap = f.getProcessVariables(); |
|
|
@ -507,17 +509,23 @@ public class FlowableService extends MybatisBaseService<FlowableMapper, Flowable |
|
|
|
System.out.println(json); |
|
|
|
//根据节点id和流程定义id以及类型查询地址以及版本号等:待定,需要流程返回。
|
|
|
|
//========================================================================
|
|
|
|
String procDefId = f.getProcDefId(); |
|
|
|
String taskDefKey = f.getTaskDefKey(); |
|
|
|
ResultBean<SysProUrlVo> resultBean1 = sysProUrlFeign.selectUrlByKey(procDefId, taskDefKey, "1","2"); |
|
|
|
// String procDefId = f.getProcDefId();
|
|
|
|
// String taskDefKey = f.getTaskDefKey();
|
|
|
|
// ResultBean<SysProUrlVo> resultBean1 = sysProUrlFeign.selectUrlByKey(procDefId, taskDefKey, "1","2");
|
|
|
|
//========================================================================
|
|
|
|
AppVo appVo = new AppVo(); |
|
|
|
appVo.setJson(json); |
|
|
|
String appSid = "";//app版本的sid
|
|
|
|
String type = "";//app版本的类型
|
|
|
|
if (resultBean1.getData() != null) { |
|
|
|
//app版本的sid
|
|
|
|
String appSid = ""; |
|
|
|
//app版本的类型
|
|
|
|
String type = ""; |
|
|
|
/* if (resultBean1.getData() != null) { |
|
|
|
appVo.setModuleAction(resultBean1.getData().getUrl()); |
|
|
|
appSid = resultBean1.getData().getModulePluginName(); |
|
|
|
}*/ |
|
|
|
if(f.getSysProUrlVo() != null){ |
|
|
|
appVo.setModuleAction(f.getSysProUrlVo().getUrl()); |
|
|
|
appSid = f.getSysProUrlVo().getModulePluginName(); |
|
|
|
} |
|
|
|
//根据appSid查询最新版本的app插件包:以及类型:2插件,1框架
|
|
|
|
if (StringUtils.isNotBlank(appSid)) { |
|
|
|