|
|
@ -393,12 +393,26 @@ public class ScmVehicleGressionService extends MybatisBaseService<ScmVehicleGres |
|
|
|
String sid = dto.getSid(); |
|
|
|
//机构sid
|
|
|
|
String orgPath = dto.getOrgPath(); |
|
|
|
String orgSidPath = dto.getOrgPath(); |
|
|
|
if (StringUtils.isBlank(orgPath)) { |
|
|
|
orgPath = sysStaffOrgFeign.getPathSidByUserSid(userSid).getData(); |
|
|
|
}else{ |
|
|
|
//切换机构
|
|
|
|
orgPath = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData(); |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(orgSidPath)){ |
|
|
|
//根据用户sid获取staffSid
|
|
|
|
ResultBean<SysUserVo> userVoResultBean = sysUserFeign.fetchBySid(dto.getUserSid()); |
|
|
|
if (!userVoResultBean.getSuccess()) { |
|
|
|
return rb.setMsg(userVoResultBean.getMsg()); |
|
|
|
} |
|
|
|
//根据staffSid获取用户的组织全路径
|
|
|
|
ResultBean<SysStaffOrg> staffOrgResultBean = sysStaffOrgFeign.getOrgByStaffSid(userVoResultBean.getData().getStaffSid()); |
|
|
|
if (!staffOrgResultBean.getSuccess()) { |
|
|
|
return rb.setMsg(staffOrgResultBean.getMsg()); |
|
|
|
} |
|
|
|
orgSidPath = staffOrgResultBean.getData().getOrgSidPath(); |
|
|
|
} |
|
|
|
//获取用户信息
|
|
|
|
ResultBean<SysUserVo> userVoResultBean = sysUserFeign.fetchBySid(userSid); |
|
|
|
if (!userVoResultBean.getSuccess()) { |
|
|
@ -422,6 +436,7 @@ public class ScmVehicleGressionService extends MybatisBaseService<ScmVehicleGres |
|
|
|
//申请编号
|
|
|
|
String billNo = getApplyCode(dto); |
|
|
|
scmVehicleGression.setApplicantNo(billNo); |
|
|
|
scmVehicleGression.setOrgSidPath(orgSidPath); |
|
|
|
int i = baseMapper.insert(scmVehicleGression); |
|
|
|
sid = scmVehicleGression.getSid(); |
|
|
|
if (i > 0) { |
|
|
@ -712,8 +727,10 @@ public class ScmVehicleGressionService extends MybatisBaseService<ScmVehicleGres |
|
|
|
String orgSidPath = staffOrgResultBean.getData().getOrgSidPath(); |
|
|
|
//用户的部门全路径sid
|
|
|
|
bv.setOrgSidPath(orgSidPath); |
|
|
|
dto.setOrgPath(orgSidPath); |
|
|
|
} else { |
|
|
|
bv.setOrgSidPath(orgPath); |
|
|
|
dto.setOrgPath(orgPath); |
|
|
|
} |
|
|
|
|
|
|
|
ScmVehicleGression scmVehicleGression = fetchBySid(dto.getSid()); |
|
|
@ -890,6 +907,7 @@ public class ScmVehicleGressionService extends MybatisBaseService<ScmVehicleGres |
|
|
|
appMap.put("sid", bv.getBusinessSid()); |
|
|
|
variables.put("app", appMap); |
|
|
|
bv.setFormVariables(variables); |
|
|
|
bv.setOrgSidPath(scmVehicleGression.getOrgSidPath()); |
|
|
|
//===============================添加多线程开始======================
|
|
|
|
if (bv.getTaskId().equals(scmVehicleGression.getTaskId())) { |
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.handleProsess(bv); |
|
|
|