|
|
@ -26,6 +26,7 @@ |
|
|
|
package com.yxt.anrui.base.biz.baseoutsourcingapplication; |
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.thread.ThreadUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
@ -529,24 +530,9 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu |
|
|
|
appMap.put("sid",bv.getBusinessSid()); |
|
|
|
bv.getFormVariables().put("app",appMap); |
|
|
|
//================添加app相关参数
|
|
|
|
/* BaseOutsourcingApplicationDto dto = baseMapper.getBySid(bv.getBusinessSid()); |
|
|
|
ResultBean<List<GetNodeVo>> nextNodesForSubmit = getNextNodesForSubmit(dto); |
|
|
|
List<GetNodeVo> datas = nextNodesForSubmit.getData(); |
|
|
|
GetNodeVo getNodeVo = datas.get(0); |
|
|
|
List<String> candidateGroups = getNodeVo.getCandidateGroups(); |
|
|
|
UserQuery userQuery = new UserQuery(); |
|
|
|
userQuery.setRoleSid(candidateGroups.get(0)); |
|
|
|
userQuery.setOrgSidPath(bv.getOrgSidPath()); |
|
|
|
List<SysUserVo> sysUserVos = sysUserFeign.getUserByRole(userQuery).getData(); |
|
|
|
ResultBean<UpdateFlowFieldVo> rb = flowableFeign.handleProsess(bv); |
|
|
|
if(sysUserVos.size()==0){ |
|
|
|
bv.setTaskDefKey(rb.getData().getTaskDefKey()); |
|
|
|
bv.setTaskId(rb.getData().getTaskId()); |
|
|
|
return complete(bv); |
|
|
|
}*/ |
|
|
|
BaseOutsourcingApplicationDto dto= baseMapper.getBySid(bv.getBusinessSid()); |
|
|
|
ResultBean<UpdateFlowFieldVo> rb = complete_handleProsess(bv,dto); |
|
|
|
/* String taskDefKey = rb.getData().getTaskDefKey(); |
|
|
|
String taskDefKey = rb.getData().getTaskDefKey(); |
|
|
|
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(rb.getData()); |
|
|
|
updateFlowFiled(stringObjectMap); |
|
|
|
if ("Event_end".equals(taskDefKey)) { |
|
|
@ -573,12 +559,12 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu |
|
|
|
return rb.setMsg("验车单业务模块的数据推送失败!"); |
|
|
|
} |
|
|
|
} |
|
|
|
try{ |
|
|
|
/*try{ |
|
|
|
StkInStock stkInStock= createStkInStock(booad); |
|
|
|
finKingDeeFeign.draftStkInStock(stkInStock); |
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
} |
|
|
|
}*/ |
|
|
|
}else{ |
|
|
|
//======================添加消息推送开始
|
|
|
|
UpdateFlowFieldVo uff = rb.getData(); |
|
|
@ -597,7 +583,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu |
|
|
|
// String msgSid = getMessage(uff, appMap, baseOutsourcingApplication);
|
|
|
|
//======================添加消息推送结束
|
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
return rb; |
|
|
|
} else { |
|
|
|
return ResultBean.fireFail().setMsg("操作失败,提交的数据不一致!"); |
|
|
@ -605,10 +591,6 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<UpdateFlowFieldVo> complete_handleProsess(BusinessVariables bv, BaseOutsourcingApplicationDto dto) { |
|
|
|
ResultBean<List<GetNodeVo>> nextNodesForSubmit = getNextNodesForSubmit(dto); |
|
|
|
List<GetNodeVo> datas = nextNodesForSubmit.getData(); |
|
|
|
GetNodeVo getNodeVo = datas.get(0); |
|
|
|
List<String> candidateGroups = getNodeVo.getCandidateGroups(); |
|
|
|
ResultBean<UpdateFlowFieldVo> rb = flowableFeign.handleProsess(bv); |
|
|
|
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(rb.getData()); |
|
|
|
updateFlowFiled(stringObjectMap); |
|
|
|